[Xfc-dev] Compilation failure on IRIX
Jeff Franks
jcfranks at tpg.com.au
Sat Apr 16 16:47:25 CEST 2005
Daichi Kawahata wrote:
>Hi,
>
>I've compiled Xfc in latest SVN on IRIX 6.5, at that time I had
>encountered compilation error as follows (manually new-lined),
>
> in libXFCui/xfc/gdk
>
> spawn.cc: In function
> `char** <unnamed>::make_environment_for_screen(GdkScreen*, char**)':
> spawn.cc:67: error: `environ' undeclared (first use this function)
> spawn.cc:67: error: (Each undeclared identifier is reported only
> once for each function it appears in.)
>
> in tests/core/mainloop
>
> mainloop.cc: In static member function
> `static void MainLoopTest::io_pipe(Xfc::G::IOChannel**)':
> mainloop.cc:209: error: `pipe' undeclared (first use this function)
> mainloop.cc:209: error: (Each undeclared identifier is reported only
> once for each function it appears in.)
>
>Without an attached patch compilation never succeed, but as you know
>it's a just workaround, so please fix above errors by your way/style.
>
>Regards,
>
>
>------------------------------------------------------------------------
>
>Index: tests/core/mainloop/mainloop.cc
>===================================================================
>--- tests/core/mainloop/mainloop.cc (revision 13599)
>+++ tests/core/mainloop/mainloop.cc (working copy)
>@@ -22,6 +22,8 @@
> #include <glib.h>
> #include <glib/gutils.h>
>
>+#include <unistd.h>
>+
> namespace {
>
> const unsigned int NTHREADS = 4;
>Index: libXFCui/xfc/gdk/spawn.cc
>===================================================================
>--- libXFCui/xfc/gdk/spawn.cc (revision 13599)
>+++ libXFCui/xfc/gdk/spawn.cc (working copy)
>@@ -26,6 +26,10 @@
> #include <glib/gshell.h>
> #include <glib/gstrfuncs.h>
>
>+#ifndef HAVE_ENVIRON_DECL
>+extern char **environ;
>+#endif
>+
> using namespace Xfc;
>
> /* Gdk::Spawn
>
>
>
Thanks for the patch. I will apply it tomorrow.
Regards,
Jeff.
More information about the Xfc-dev
mailing list