* Ilya Barygin <bary...@gmail.com> wrote: > Sat, 15 Jan 2011 15:16:40 -0500 > Jon Bernard <jbern...@debian.org>: > > > I just tried building this package in sid with a current toolchain and > > gold is able to link without error. -lX11 is added to $LIBS in > > configure and so all needed libs are defined at link-time. I suspect > > if you retry a build with the current ubuntu toolchain including > > gold, link will succeed. > > > > At least in sid, this seem to no longer be an issue. > > > > Hmm, when I build version 0.6-1 in pbuilder-sid, I get the following > linking line: > > gcc -g -O2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include > -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 > -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 > -I/usr/include/freetype2 -I/usr/include/libpng12 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o e16keyedit > ipc.o menus.o viewer.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 > -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lgio-2.0 > -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 > -lgthread-2.0 -lrt -lglib-2.0 > > So no -lX11 here, I'm not sure how it could sneak into LIBS. And the > package stops building when I add -Wl,--no-add-needed to LDFLAGS.
Here's the link line that I'm seeing: gcc -g -O2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o e16keyedit ipc.o menus.o viewer.o -lX11 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lgio-2.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 'grep -rn lX11 *' yields: configure:4280: LIBS="-lX11 $LIBS" Makefile:174:LDADD = $(X_LIBS) -lX11 Makefile.am:9:LDADD = $(X_LIBS) -lX11 Makefile.in:174:LDADD = $(X_LIBS) -lX11 'ld --version' yields: GNU gold (GNU Binutils for Debian 2.20.1-system.20100303) 1.9 It appears that automake injects -lX11 from Makefile.am. This is from a chroot created this evening with debootstrap and only e16keyedit's build deps and gold installed. What am I missing? Can you detail your steps to create your chroot/environment? -- Jon -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org