Assembler error under Solaris 2.6 x86

Manfred Hollstein manfred@s-direktnet.de
Thu Feb 11 11:16:00 GMT 1999


On Thu, 11 February 1999, 09:45:24, mh@exept.de wrote:

 > On Wed, 10 February 1999, 14:48:06, ford@vss.fsi.com wrote:
 > 
 >  > I have found the following bug in ld version 2.9.1 on Sparc Solaris 2.6.
 >  > The bug does not exist in ld version 2.8.1.
 >  > 
 >  > If you compile and link the following program:
 >  > 
 >  > #include <X11/Xlib.h>
 >  > 
 >  > int main(void)
 >  > {
 >  > 	XOpenDisplay(NULL);
 >  > }
 >  > 
 >  > With just -lX11 everything is ok in all cases.  If however, you add
 >  > -lxnet, the resulting program will Segmentation fault and core dump when
 >  > linked with ld version 2.9.1, but run fine when linked with ld version
 >  > 2.8.1.
 >  > 
 >  > Please let me know if a similar problem or fix is known.  Thank you.
 > 
 > Looks like this library doesn't exist on 2.5.1; I'll try tonight on my
 > i386-pc-solaris2.7 system.
 > 

FWIW, your program doesn't segfault when linked with GNU ld 2.9.1 on
PC Solaris 2.7!  I'd say, look into Sun's list of recommended patches,
perhaps there is anything related with this...

I don't have access to a Sparc running Solaris 2.6 anymore, but I'll
try it via an old collegue of mine. We'll see.

manfred


More information about the Gcc-bugs mailing list