when trying to update torsmo it fails with multiple undefined references. Reproducible: Always Steps to Reproduce: 1.emerge torsmo (~x86) 2. 3. Actual Results: undefined reference to `XDrawString' torsmo.o(.text+0x27bf): In function `draw_string': : undefined reference to `XTextWidth' torsmo.o(.text+0x28d9): In function `draw_line': : undefined reference to `XSetLineAttributes' torsmo.o(.text+0x2907): In function `draw_line': : undefined reference to `XSetDashes' torsmo.o(.text+0x2947): In function `draw_line': : undefined reference to `XDrawLine' torsmo.o(.text+0x2996): In function `draw_line': : undefined reference to `XSetForeground' torsmo.o(.text+0x2a41): In function `draw_line': : undefined reference to `XSetLineAttributes' torsmo.o(.text+0x2a79): In function `draw_line': : undefined reference to `XDrawRectangle' torsmo.o(.text+0x2acd): In function `draw_line': : undefined reference to `XFillRectangle' torsmo.o(.text+0x2b38): In function `draw_line': : undefined reference to `XSetLineAttributes' torsmo.o(.text+0x2bc4): In function `draw_text': : undefined reference to `XSetLineAttributes' torsmo.o(.text+0x2c25): In function `draw_text': : undefined reference to `XDrawRectangle' torsmo.o(.text+0x2cc7): In function `draw_text': : undefined reference to `XSetLineAttributes' torsmo.o(.text+0x2cf5): In function `draw_text': : undefined reference to `XSetDashes' torsmo.o(.text+0x2d5d): In function `draw_stuff': : undefined reference to `XSetForeground' torsmo.o(.text+0x2da1): In function `draw_stuff': : undefined reference to `XSetForeground' torsmo.o(.text+0x2e03): In function `draw_stuff': : undefined reference to `XSetForeground' torsmo.o(.text+0x2e90): In function `clear_text': : undefined reference to `XClearArea' torsmo.o(.text+0x2ee2): In function `load_font': : undefined reference to `XLoadQueryFont' torsmo.o(.text+0x2f22): In function `load_font': : undefined reference to `XLoadQueryFont' torsmo.o(.text+0x2f65): In function `load_font': : undefined reference to `XFreeFont' torsmo.o(.text+0x2f91): In function `set_font': : undefined reference to `XSetFont' torsmo.o(.text+0x2fbe): In function `term_handler': : undefined reference to `XDestroyWindow' torsmo.o(.text+0x2fd4): In function `term_handler': : undefined reference to `XFreeGC' torsmo.o(.text+0x302a): In function `term_handler': : undefined reference to `XFlush' torsmo.o(.text+0x3f5e): In function `main': : undefined reference to `XMoveWindow' torsmo.o(.text+0x40c9): In function `main': There is alot more to this error if you need the rest I will see about getting it that should be more then sufficent tho. emerge info: Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1 i686) ================================================================= System uname: 2.6.10-gentoo-r1 i686 AMD Athlon(TM) XP2200+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 22 2004, 00:40:56)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.3, 1.8.5-r2, 1.6.3, 1.7.9, 1.4_p6, 1.8.5-r1 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X acl alsa apache2 avi berkdb bitmap-fonts cdr crypt cups dvd dvdr encode esd fam foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imap imlib ipv6 java javascript jpeg libwww mad maildir mikmod motif mpeg mysql ncurses nls nptl nptlonly oggvorbis opengl oss pam pdflib perl php png python quicktime readline sdl spell ssl svga tcltk tcpd tiff truetype userlocales xinerama xml2 xmms xv zlib"
There is a small bug in the configure.in/configure. The conftest for -lX11/XOpenDisplay is compiled with -L${x_libraries}, thus if you don't give --x-libraries=DIR to the configure-script, it will fail and you don't get the -lX11. This should fix the problem: src_compile() { econf --x-libraries=/usr/X11R6/lib/ || die "econf failed" emake || die "emake failed" }
Created attachment 46993 [details] fixes the configure to force check on /usr/X11R6/lib/ simple add the patches to the files dir and add the : src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}.patch } this corrects the problem with very little effort being added to ebuild. I tested the econf suggest it doesnt get passed to configure for some reason so here is next best solution for now.
the option using src_compile() will work dont mind me I am tired and typed it all in wrong LOL I ended up putting it under src_install :D but both ways do work so you choose what is easiest for ya :P
Thanks Emil done. Don't worry Jory we all have those days. Thanks for putting in the effort. Can you submit you patch upstream please.