Hi, I am trying to build gtk+-2.24.24 with my custom toolchain. I have the following environment variables set : export LDFLAGS="-Wl,--rpath-link,/usr/share/ custom-toolchain-fwd /lib -Wl,--rpath-link,/usrr/share/custom-toolchain/lib -Wl,--dynamic-linker, ,/usr/share/custom-toolchain/lib/ld-linux.so.2" All the latest&greatest X11 libraries are installed in the path
“/usr/share/ custom-toolchain-fwd /” However, the dependent packages (like cairo, pango, atk) are installed at
“/usr/share/custom-toolchain/”. This path also has an older version of X11 libraries, which is used by these packages(cairo, pango, etc…) The other environment variables are: export CC=custom-gcc export CXX=custom-g++ export NM=custom-nm export RANLIB= custom-ranlib export AR= custom-ar export STRIP= custom-strip export OBJDUMP= custom-objdump export ADDR2LINE= custom-addr2line export CPP= custom-cpp export LD= custom-ld export OBJCOPY= custom-objcopy export READELF= custom-readelf export SIZE= custom-size export STRINGS= custom-strings export PKG_CONFIG_PATH="/usr/share/custom-toolchain-fwd /lib/pkgconfig: /usr/share/custom-toolchain /lib/pkgconfig" export PATH="/usr/share/custom-toolchain /bin":$PATH I want all the X11 libraries for this package (gtk+2) to be picked from “/usr/share/ custom-toolchain-fwd /lib”
path and not the other “/usr/share/ custom-toolchain/lib” I configured the build with : ./configure --prefix=/usr/share/custom-toolchain --oldincludedir=/usr/share/ custom -toolchain/include --x-includes=/usr/share/ custom -toolchain-fwd/include --x-libraries=/usr/share/ custom -toolchain-fwd/lib However, I am getting the following errors: /bin/sh ../../libtool --tag=CC --mode=link custom-gcc -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -Wl,--rpath-link,/usr/share/custom-toolchain-fwd/lib -Wl,--rpath-link,/usr/share/custom-toolchain/lib -Wl,--dynamic-linker,/usr/share/custom-toolchain/lib/ld-linux.so.2
-o doc-shooter shadow.o shooter.o widgets.o ../../gdk/libgdk-x11-2.0.la ../../gtk/libgtk-x11-2.0.la -pthread -L/usr/share/custom-toolchain-fwd/lib -L/usr/share/custom-toolchain/lib -lpangocairo-1.0 -lX11 -lXcomposite -lXdamage -lXfixes -latk-1.0 -lcairo -lgdk_pixbuf-2.0
-lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lm -pthread -L/usr/share/custom-toolchain-fwd/lib -L/usr/share/custom-toolchain/lib -lpangocairo-1.0 -lpango-1.0 -lgmodule-2.0 -lgio-2.0 -lfontconfig -lXext
-lXrender -lXinerama -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lX11 -lm -lm libtool: link: custom-gcc -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -Wl,--rpath-link -Wl,/usr/share/custom-toolchain-fwd/lib -Wl,--rpath-link -Wl,/usr/share/custom-toolchain/lib -Wl,--dynamic-linker -Wl,/usr/share/custom-toolchain/lib/ld-linux.so.2
-o .libs/doc-shooter shadow.o shooter.o widgets.o -pthread -pthread ../../gdk/.libs/libgdk-x11-2.0.so -L/usr/share/custom-toolchain-fwd/lib -L/usr/share/custom-toolchain/lib ../../gtk/.libs/libgtk-x11-2.0.so /home/mk7/chromium/gtk+-2.24.24/gdk/.libs/libgdk-x11-2.0.so
/usr/share/custom-toolchain/lib/libXcomposite.so /usr/share/custom-toolchain/lib/libXext.so /usr/share/custom-toolchain/lib/libXdamage.so /usr/share/custom-toolchain/lib/libXfixes.so /usr/share/custom-toolchain/lib/libatk-1.0.so /usr/share/custom-toolchain/lib/libpangocairo-1.0.so
/usr/share/custom-toolchain/lib/libpangoft2-1.0.so /usr/share/custom-toolchain/lib/libstdc++.so /usr/share/custom-toolchain/lib/libpango-1.0.so /usr/share/custom-toolchain-fwd/lib/libXinerama.so /usr/share/custom-toolchain-fwd/lib/libXrandr.so /usr/share/custom-toolchain-fwd/lib/libXext.so
/usr/share/custom-toolchain-fwd/lib/libXcursor.so /usr/share/custom-toolchain-fwd/lib/libXrender.so /usr/share/custom-toolchain-fwd/lib/libXcomposite.so /usr/share/custom-toolchain-fwd/lib/libXdamage.so /usr/share/custom-toolchain-fwd/lib/libXfixes.so /usr/share/custom-toolchain/lib/libgdk_pixbuf-2.0.so
/usr/share/custom-toolchain/lib/libgio-2.0.so /usr/share/custom-toolchain/lib/libgmodule-2.0.so -lresolv /usr/share/custom-toolchain/lib/libgobject-2.0.so /usr/share/custom-toolchain/lib/libffi.so /usr/share/custom-toolchain/lib/libglib-2.0.so -lpthread /usr/share/custom-toolchain/lib/libcairo.so
/usr/share/custom-toolchain/lib/libpixman-1.so /usr/share/custom-toolchain/lib/libfontconfig.so /usr/share/custom-toolchain/lib/libfreetype.so /usr/share/custom-toolchain/lib/libxml2.so /usr/share/custom-toolchain/lib/libpng12.so /usr/share/custom-toolchain/lib/libXrender.so
/usr/share/custom-toolchain/lib/libX11.so /usr/share/custom-toolchain/lib/libXau.so /usr/share/custom-toolchain/lib/libXdmcp.so -lz /usr/share/custom-toolchain-fwd/lib/libX11.so /usr/share/custom-toolchain-fwd/lib/libxcb.so /usr/share/custom-toolchain-fwd/lib/libXau.so
/usr/share/custom-toolchain-fwd/lib/libXdmcp.so -ldl -lm -pthread -Wl,-rpath -Wl,/usr/share/custom-toolchain/lib -Wl,-rpath -Wl,/usr/share/custom-toolchain-fwd/lib ../../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `_XGetRequest' When I do ldd on “gdk/.libs/libgdk-x11-2.0.so”, I get: linux-gate.so.1 (0xffffe000) libpangocairo-1.0.so.0 => /usr/share/custom-toolchain/lib/libpangocairo-1.0.so.0 (0xb7630000) libpangoft2-1.0.so.0 => /usr/share/custom-toolchain/lib/libpangoft2-1.0.so.0 (0xb7608000) libstdc++.so.6 => /usr/share/custom-toolchain/lib/libstdc++.so.6 (0xb7520000) libpango-1.0.so.0 => /usr/share/custom-toolchain/lib/libpango-1.0.so.0 (0xb74d7000) libXinerama.so.1 => /usr/share/custom-toolchain/lib/libXinerama.so.1 (0xb74d4000) libXrandr.so.2 => /usr/share/custom-toolchain/lib/libXrandr.so.2 (0xb74cc000) libXext.so.6 => /usr/share/custom-toolchain/lib/libXext.so.6 (0xb74bb000) libXcursor.so.1 => /usr/share/custom-toolchain/lib/libXcursor.so.1 (0xb74b0000) libXrender.so.1 => /usr/share/custom-toolchain/lib/libXrender.so.1 (0xb74a7000) libXcomposite.so.1 => /usr/share/custom-toolchain/lib/libXcomposite.so.1 (0xb74a4000) libXdamage.so.1 => /usr/share/custom-toolchain/lib/libXdamage.so.1 (0xb74a1000) libXfixes.so.3 => /usr/share/custom-toolchain/lib/libXfixes.so.3 (0xb749c000) libgdk_pixbuf-2.0.so.0 => /usr/share/custom-toolchain/lib/libgdk_pixbuf-2.0.so.0 (0xb7479000) libgio-2.0.so.0 => /usr/share/custom-toolchain/lib/libgio-2.0.so.0 (0xb72ef000) libgmodule-2.0.so.0 => /usr/share/custom-toolchain/lib/libgmodule-2.0.so.0 (0xb72eb000) libresolv.so.2 => /usr/share/custom-toolchain/lib/libresolv.so.2 (0xb72d4000) libgobject-2.0.so.0 => /usr/share/custom-toolchain/lib/libgobject-2.0.so.0 (0xb7283000) libffi.so.6 => /usr/share/custom-toolchain/lib/libffi.so.6 (0xb727b000) libglib-2.0.so.0 => /usr/share/custom-toolchain/lib/libglib-2.0.so.0 (0xb7145000) libpthread.so.0 => /usr/share/custom-toolchain/lib/libpthread.so.0 (0xb7129000) libcairo.so.2 => /usr/share/custom-toolchain/lib/libcairo.so.2 (0xb70aa000) libpixman-1.so.0 => /usr/share/custom-toolchain/lib/libpixman-1.so.0 (0xb6ffe000) libfontconfig.so.1 => /usr/share/custom-toolchain/lib/libfontconfig.so.1 (0xb6fc9000) libfreetype.so.6 => /usr/share/custom-toolchain/lib/libfreetype.so.6 (0xb6f46000) libxml2.so.2 => /usr/share/custom-toolchain/lib/libxml2.so.2 (0xb6e00000) libpng12.so.0 => /usr/share/custom-toolchain/lib/libpng12.so.0 (0xb6dd9000)
libX11.so.6 => /usr/share/custom-toolchain/lib/libX11.so.6 (0xb6cd0000) libXau.so.6 => /usr/share/custom-toolchain/lib/libXau.so.6 (0xb6ccc000) libXdmcp.so.6 => /usr/share/custom-toolchain/lib/libXdmcp.so.6 (0xb6cc6000) libz.so.1 => /usr/share/custom-toolchain/lib/libz.so.1 (0xb6cb0000) libxcb.so.1 => /usr/share/custom-toolchain-fwd/lib/libxcb.so.1 (0xb6c90000) libdl.so.2 => /usr/share/custom-toolchain/lib/libdl.so.2 (0xb6c8b000) libm.so.6 => /usr/share/custom-toolchain/lib/libm.so.6 (0xb6c44000) libc.so.6 => /usr/share/custom-toolchain/lib/libc.so.6 (0xb6a99000) /usr/share/custom-toolchain/lib/ld-linux.so.2 (0xb76e9000) libgcc_s.so.1 => /usr/share/custom-toolchain/lib/libgcc_s.so.1 (0xb6a7e000) I don’t understand why the X11 libraries are still picked from the path “/usr/share/custom-toolchain/lib/”.
Can anyone help in this ? IMPORTANT CONFIDENTIALITY NOTICE: |
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list