Subject: xsrc/13824: XF 4.0.x linking errors when running (fatal)
To: None <gnats-bugs@gnats.netbsd.org>
From: Reinoud Zandijk <imago@kabel208245.kabel.utwente.nl>
List: netbsd-bugs
Date: 08/30/2001 00:00:05
>Number:         13824
>Category:       xsrc
>Synopsis:       XF 4.0.x linking errors when running (fatal)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 29 14:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Reinoud Zandijk
>Release:        1.5X aprox 24 aug 2001
>Organization:
NetBSD
>Environment:
NetBSD starbuck 1.5X NetBSD 1.5X (config.starbuck) #0: Wed Aug 29 11:40:42 CEST 2001     
root@starbuck:/usr/sources/cvs.netbsd.org/syssrc/sys/arch/alpha/compile/config.starbuck alpha

XF 4.0.1/4.0.2 from Xsrc aprox 25 mar. 2001 ?

>Description:

When X is started with `startx' it boots up perfectly. However when a 
program is run that needs a symbol - say in libm - the dynamic loader loads 
resolves that symbol (my hypothesis). It can't find it and then bombs out 
.. From observations it looks that it isnt the internal ELF loader in X 
that is breaking... 

>How-To-Repeat:
Start a dynamically linked XFree86 binary build from xsrc. If it isnt 
failing when you move the mouse pointer to a window start a program like Xv 
or so ... it will bomb out.

>Fix:
Add the -static flag when linking the XFree86 binary in
../xsrc/xfree/xc/programs/XServer or just delete and relink the XFree86
binary with :

make LOCAL_LDFLAGS="-static"
make install

The resulting statically linked XFree86 wont bomb out anymore due to 
linking errors.

	
>Release-Note:
>Audit-Trail:
>Unformatted: