Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4777 - xfree segfault at compile
Summary: xfree segfault at compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-09 18:25 UTC by gourdin
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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 gourdin 2002-07-09 18:25:59 UTC
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 )
Comment 1 SpanKY gentoo-dev 2002-08-04 09:12:48 UTC
what gcc version
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-08-12 18:09:12 UTC
Try the following:

# SANDBOX_DISABLED=1 emerge xfree

and let me know.
Comment 3 Brad Laue (RETIRED) gentoo-dev 2002-09-03 08:53:29 UTC
Disabling sandbox had no effect on the build. Same symptoms here as the original
committer, btw.
Comment 4 Brad Laue (RETIRED) gentoo-dev 2002-09-04 10:25:57 UTC
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. 
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-08 03:50:23 UTC
Should be fixed in xfree-4.2.1 when it hits CVS.
Comment 6 Dan Armak (RETIRED) gentoo-dev 2002-09-13 09:22:24 UTC
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.  
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-13 19:14:22 UTC
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.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-29 08:56:44 UTC
Fixed on CVS.