This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Assembler error under Solaris 2.6 x86
On Wed, 10 February 1999, 14:48:06, ford@vss.fsi.com wrote:
> Since you seem to know something about Solaris and the GNU binutils, if
> you have access to a sparc Solaris machine, could you confirm or check out
> my previous GNU ld 2.9.1 bug report? It follows:
>
> >From ford@vss.fsi.com Wed Feb 10 14:44:56 1999
> Date: Fri, 11 Dec 1998 11:09:49 -0600
> From: Brian Ford <ford@vss.fsi.com>
> To: bug-gnu-utils@gnu.org
> Cc: egcs@cygnus.com
> Subject: Sparc Solaris 2.6 ld 2.9.1 bug
>
> 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.
I just tried on the sparc-sun-solaris2.5.1 system I have access to:
$ LD_RUN_PATH=/usr/openwin/lib gcc -g bug-sol-ld.c -L/usr/openwin/lib -lX11 -lxnet
/tools/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.60/real-ld: cannot open -lxnet: No such file or directory
collect2: ld returned 1 exit status
Looks like this library doesn't exist on 2.5.1; I'll try tonight on my
i386-pc-solaris2.7 system.
>
> --
> Brian Ford
> Software Engineer
> Vital Visual Simulation Systems
> FlightSafety International
> Phone: 314-551-8460
> Fax: 314-551-8444
>
manfred