GNOME Bugzilla – Bug 331021
dev libs/system libs link conflict.
Last modified: 2006-02-13 21:31:29 UTC
Please describe the problem: I build a development gnome desktop on the side of a system gnome desktop using jhbuild. /usr/X11R6 is a symlink to /usr in the setup of the modular X.org 7.0. Then the libs search path "-L/usr/X11R6/lib -L/opt/gnome2/lib" is equalent to "-L/usr/lib -L/opt/gnome2/lib" which gives link priority to system libs and not dev libs. The configure.in LIBS contains the x11 libs search path causing the pb above. Indeed, X_LIBS should be use instead and should be located in order to make x11 libs search path of lower priority thant dev libs search path. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 59274 [details] [review] vte configure.in patch Remove X_LIBS from LIBS. Then x11 libs search path does not override dev libs search path.
I don't understand. Why are you removing X_LIBS instead of moving it?
I removed X_LIBS from LIBS because X_LIBS is used directly. LIBS introduces redondancy, and moreover create the linking issue. In src/Makefile.am, you can see the following automake target: libvte_la_LIBADD = @LIBS@ @VTE_LIBS@ @X_LIBS@ Since LIBS does already contains X_LIBS, the x11 libs search path appear at the beginning of the libtool(link mode) command line, making then vte link against the system libs in /usr/lib and not the dev libs in /opt/gnome2/lib.
2006-02-13 Behdad Esfahbod <behdad@gnome.org> * configure.in: Do not prepend X_LIBS and X_CFLAGS to LIBS and CFLAGS. (bug #331021, Sylvain BERTRAND)