os/libos.a(auth.o): In function `LoadAuthorization': auth.o(.text+0x14b): undefined reference to `XauDisposeAuth' auth.o(.text+0x15a): undefined reference to `XauReadAuth' collect2: ld returned 1 exit status make[3]: *** [XFree86] Error 1 make[3]: Leaving directory `/usr/portage-tmp/xfree-4.2.0/work/xc/programs/Xserver' make[2]: *** [install] Error 2 make[2]: Leaving directory `/usr/portage-tmp/xfree-4.2.0/work/xc/programs' make[1]: *** [install] Error 2 make[1]: Leaving directory `/usr/portage-tmp/xfree-4.2.0/work/xc' make: *** [install] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_install, Line 2, Exitcode 2 !!! (no error message) !!! emerge aborting on /usr/portage/x11-base/xfree/xfree-4.2.0.ebuild .
gcc -o XFree86 -mcpu=i686 -march=i686 -O3 -pipe -ansi -L../../exports/lib ../../programs/Xserver/hw/xfree86/common/xf86Init.o ../../programs/Xserver/hw/xfree86/common/xf86IniExt.o ../../programs/Xserver/hw/xfree86/common/libxf86.a ../../programs/Xserver/hw/xfree86/parser/libxf86config.a ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a ../../programs/Xserver/hw/xfree86/loader/libloader.a ../../programs/Xserver/hw/xfree86/common/libxf86.a miext/shadow/libshadow.a dix/libdix.a os/libos.a ../../exports/lib/libXdmcp.a ../../lib/font/fontbase.o ../../lib/font/libfontbase.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a lbx/liblbx.a ../../lib/lbxutil/liblbxutil.a ../../programs/Xserver/hw/xfree86/common/libxf86.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a lbx/liblbx.a ../../lib/lbxutil/liblbxutil.a render/librender.a dix/libxpstubs.a mi/libmi.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a lbx/liblbx.a ../../lib/lbxutil/liblbxutil.a render/librender.a ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a ../../programs/Xserver/hw/xfree86/ddc/libddc.a -lz -lm -rdynamic -ldl -Wl,-rpath-link,../../exports/lib os/libos.a(auth.o): In function `LoadAuthorization':
adding ../../lib/Xau/libXau.a to the linking solved the problem, why does it build for some and not for others? reassigning to azarah for now.
Try adding the following to src_unpack(): cp ${S}/programs/Xserver/os/Imakefile \ ${S}/programs/Xserver/os/Imakefile.orig sed -e \''s:NormalLibraryTarget(os,$(OBJS)):NormalLibraryTarget(os,$(OBJS) \ ../../lib/Xau/libXau.a):\'' ${S}/programs/Xserver/os/Imakefile.orig > \ ${S}/programs/Xserver/os/Imakefile
Bad paste, sorry. Use xfree-4.2.0-r1.ebuild rather.
4.2.0-r1 worked fine.
that is the solution pasted here, works, the stuff that actually got into -r1 doesn't work.
we should either mark bug #259 as a duplicate (based on summary) or close this one out. The first problem below seems to be fixed, but the xmkmf issue in bug #259 needs to be addressed.
Sure, but it would not really have been a bug if rsync/cvs havent decided to drop out on us between the broken one and the working one. It is/was fixed in cvs ... dont know what the status is now with the problems at chiba.
fixed in -r3