Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243 - XFree 4.2.0 fails to build for some users (and me).
Summary: XFree 4.2.0 fails to build for some users (and me).
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-20 09:18 UTC by Mikael Hallendal (hallski) (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Hallendal (hallski) (RETIRED) gentoo-dev 2002-01-20 09:18:41 UTC
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 .
Comment 1 Mikael Hallendal (hallski) (RETIRED) gentoo-dev 2002-01-20 09:24:58 UTC
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':
Comment 2 Mikael Hallendal (hallski) (RETIRED) gentoo-dev 2002-01-20 09:39:00 UTC
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.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-01-20 09:52:50 UTC
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
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-01-20 10:14:07 UTC
Bad paste, sorry.  Use xfree-4.2.0-r1.ebuild rather.
Comment 5 Mikael Hallendal (hallski) (RETIRED) gentoo-dev 2002-01-20 10:36:19 UTC
4.2.0-r1 worked fine.
Comment 6 Mikael Hallendal (hallski) (RETIRED) gentoo-dev 2002-01-20 15:58:09 UTC
that is the solution pasted here, works, the stuff that actually got into -r1
doesn't work.
Comment 7 Chad Huneycutt (RETIRED) gentoo-dev 2002-01-21 15:42:24 UTC
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.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2002-01-21 16:27:09 UTC
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.
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2002-01-23 17:41:45 UTC
fixed in -r3