🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6357

[Q] ld: req shared library `libc.so.4'

#6357
From: Matthew Au
Date: Mon, 04 Dec 1995 00:00
29 lines
1390 bytes
Has anyone experienced problem when compiling an X prog with -g option
using the gcc in Slackware 2.2?  Originally I have Slackware 2.1 
installed on my PC. Recently I upgrade the gcc, g++, binutil, and 
other programming tools to those in Slackware 2.2.

I am now running gcc 2.6.3 with libc.so.4.6.27

Now when I compile an X app. with debugging info on, I get the
following error message.

>gcc prog.c -L/usr/X11/lib -lX11 -g

ld: Output file requires shared library `libc.so.4'
gcc: Internal compiler error: program ld got fatal signal 6

If I compile it without the "-g" option, there is no problem.

>gcc prog.c -L/usr/X11/lib -lX11
>ldd a.out

        libX11.so.6 (DLL Jump 6.0) => /usr/X11/lib/libX11.so.6.0
        libc.so.4 (DLL Jump 4.6pl27) => /lib/libc.so.4.6.27

For a non-X app, it compiles fine with/without the "-g" option.

Can anyone please help. Thanks in advance.

Matthew
Technical Details
Message-ID: <49vuti$g78@bright.ecs.soton.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,d26d06616798b7e2,start
X-Google-Attributes: gid113d02,public
From: M.H.Y.AU@ecs.soton.ac.uk (Matthew Au)
Subject: [Q] ld: req shared library `libc.so.4'
Date: 1995/12/04
Message-ID: <49vuti$g78@bright.ecs.soton.ac.uk>
X-Deja-AN: 120864064
distribution: gnu
sender: daemon@cis.ohio-state.edu
organization: Electronics and Computer Science, University of Southampton
newsgroups: gnu.gcc.bug