i just encounter a 'little' compile problem when trying to emerge xfree (xfree4.2.0-r12). - the command : emerge xfree it just segfaults. here is the error : [...] LD_LIBRARY_PATH=../../exports/lib/ ../../../exports/bin/mkfontdir -x bdf . make[4]: *** [fonts.dir] Segmentation fault make[4]: Leaving directory '/var/tmp/portage/xfree-4.0.2-r12/work/xc/fonts/bdf/misc' [...] System : I got an amd athlon xp 1900 (no oc) kernel is vanilla sources no obscure compilation flags ( -O -pipe )
what gcc version
Try the following: # SANDBOX_DISABLED=1 emerge xfree and let me know.
Disabling sandbox had no effect on the build. Same symptoms here as the original committer, btw.
For the original submitter of this bug: you mention -O -pipe as CFLAGS for the X build. Did you start from bootstrap with those CFLAGS? A mismatch in my case between X and zlib in terms of compiler optimizations caused mkfontdir to crash chronically as you described.
Should be fixed in xfree-4.2.1 when it hits CVS.
Azarah, this may be causing problems. I'm using the 4.2.1 ebuild and i came across the problem described here: http://lists.kde.org/?l=kde-devel&m=103169078001226&w=2. Here is a summary of the problem and solution from that thread: 1. The compile error: /bin/sh ../../libtool --silent --mode=link gcc -ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOUCE=500 -D_BSD_SOURCE -O2 -o make_driver_db_cups -L/usr/X11R6/lib -L/usr/lib/qt3/lib -L/opt/kdecvs/lib make_driver_db_cups.o ../libdriverparse. ../../kdecore/libkdefakes.la -ldl -lz make_driver_db_cups.o: In function `parsePpdFile': make_driver_db_cups.o(.text+0x63a): undefined reference to `gzgets' 2. Solution: > I had recently a private thread with David Faure about that problem. Your CUPS > installation is not the problem. The cause seems to be that X11 also > provides its own version of libz, which does not contain the function "gzgets", > and the linker is using that library instead of the regular one. > > Now for the solution... David? rm /usr/X11R6/lib/libz.a XFree86 installs that lib when being installed from sources (afaik no binary package contains it). Someone should report this to the XFree developers. ------ I'm gettig this when trying to compile cvs kdelibs. Moving /usr/X11r6/lib/libz.a aside indeed fixed the compile issue. I don't know about the problem dscribed in this bugreport, but as I understand it you should use libz.a in the xfre compile process but not install it. It wasn't installed in 4.2.0-r12, I checked.
Thanks Dan! I changed it to use the native, and not system zlib to try and fix this bug ... I had no idea it could cause problems.
Fixed on CVS.