GNOME Bugzilla – Bug 132234
Libraries included in CFLAGS ....
Last modified: 2004-12-22 21:47:04 UTC
Compiling at-spi-1.3.9, I notice that the CFLAGS are clobbered with link-directives, thus libtool borks ...
more detail on 'b0rks' needed. you are the first reporter, and this has not changed recently.
Created attachment 23850 [details] The config.log file
An example of a bork: /bin/bash ../libtool --mode=compile gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DORBIT2=1 -I/opt/gnome-2.6/include/libbonobo-2.0 -I/opt/gnome-2.6/include/glib-2.0 -I/opt/gnome-2.6/lib/glib-2.0/include -I/opt/gnome-2.6/include/orbit-2.0 -I/opt/gnome-2.6/include/bonobo-activation-2.0 -I/opt/gnome-2.6/include/atk-1.0 -I/opt/gnome-2.6/include/gtk-2.0 -I/opt/gnome-2.6/lib/gtk-2.0/include -I/opt/gnome-2.6/include -I/usr/X11R6/include -I/opt/gnome-2.6/include/pango-1.0 -I/opt/gnome-2.6/include/freetype2 -I/opt/gnome-2.6/include/gail-1.0 -I/opt/gnome-2.6/include/libgnomecanvas-2.0 -I/opt/gnome-2.6/include/libart-2.0 -I/opt/gnome-2.6/include -I/usr/X11R6/include -I/usr/local/include -I/opt/csw/include -I/opt/sfw/include -g -O2 -pipe -mcpu=pentium3 -falign-functions=4 -fomit-frame-pointer -funroll-loops -mfancy-math-387 -D_REENTRANT -g -I/opt/gnome-2.6/include -I/usr/X11R6/include -I/usr/local/include -I/opt/csw/include -I/opt/sfw/include -L/opt/gnome-2.6/lib -L/usr/X11R6/lib -L/opt/gnu/gnu-gcc-3.3/lib -L/usr/local/lib -L/opt/csw/lib -L/opt/sfw/lib -O2 -pipe -L/usr/X11R6/lib -R/usr/X11R6/lib -lSM -lICE -lX11 -lsocket -lnsl -c action.c gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DORBIT2=1 -I/opt/gnome-2.6/include/libbonobo-2.0 -I/opt/gnome-2.6/include/glib-2.0 -I/opt/gnome-2.6/lib/glib-2.0/include -I/opt/gnome-2.6/include/orbit-2.0 -I/opt/gnome-2.6/include/bonobo-activation-2.0 -I/opt/gnome-2.6/include/atk-1.0 -I/opt/gnome-2.6/include/gtk-2.0 -I/opt/gnome-2.6/lib/gtk-2.0/include -I/opt/gnome-2.6/include -I/usr/X11R6/include -I/opt/gnome-2.6/include/pango-1.0 -I/opt/gnome-2.6/include/freetype2 -I/opt/gnome-2.6/include/gail-1.0 -I/opt/gnome-2.6/include/libgnomecanvas-2.0 -I/opt/gnome-2.6/include/libart-2.0 -I/opt/gnome-2.6/include -I/usr/X11R6/include -I/usr/local/include -I/opt/csw/include -I/opt/sfw/include -g -O2 -pipe -mcpu=pentium3 -falign-functions=4 -fomit-frame-pointer -funroll-loops -mfancy-math-387 -D_REENTRANT -g -I/opt/gnome-2.6/include -I/usr/X11R6/include -I/usr/local/include -I/opt/csw/include -I/opt/sfw/include -L/opt/gnome-2.6/lib -L/usr/X11R6/lib -L/opt/gnu/gnu-gcc-3.3/lib -L/usr/local/lib -L/opt/csw/lib -L/opt/sfw/lib -O2 -pipe -L/usr/X11R6/lib -R/usr/X11R6/lib -lSM -lICE -lX11 -lsocket -lnsl -c action.c -fPIC -DPIC -o .libs/action.o gnu-gcc: -lSM: linker input file unused because linking not done gnu-gcc: -lICE: linker input file unused because linking not done gnu-gcc: -lX11: linker input file unused because linking not done gnu-gcc: -lsocket: linker input file unused because linking not done gnu-gcc: -lnsl: linker input file unused because linking not done I don't understand why this happens!?!?!?! Something obvious is lurking around here, but ......
I believe these messages are harmless.
Is this a duplicate of bug #134332?
One could say that the warnings are harmless, but as stated in 134332, some versions of libtool crash when libs enters the realms of cflags ... The problem is that the libs required for linking X11-stuff gets into the CFLAGS. I'm not a good enough autoconf-hacker to figure out how to do this right. In a way this bug is a dup of 134332. But: I use XFree 4.3 on my Solaris x86 machine at home. Configuring at-spi always fail when testing for Xi and Xtst, since they both require Xext. (That in it's turn requires X11, nsl & socket). The fix would be to rewrite the part that looks for Xi and Xtst so that it handles these dependencies, but I'm afraid I can't do it. I haven't tried the last version of at-spi, but I guess it will fail. I usually have to do some carving in the Makefiles, then it'll work.
*** This bug has been marked as a duplicate of 134332 ***