🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49882

Re: undefined symbol __lib_version

#49882
From: David E. Brown
Date: Tue, 14 Dec 1993 20:30
43 lines
2287 bytes
tom@clark.dgim.doc.ca (Thomas Erskine) writes:

>I've been trying to compile Ghostscript (version 2.61) and it's getting close.
>Looks like it's almost done, but can't quite finish it.  Usually gcc has
>been well behaved, but there have been a few programs (like Ghostscript)
>which won't link because they get this error.  Since it's not just with
>Ghostscript I thought I'd ask here:

>What did I do wrong in my gcc install?  I even went back, got a clean copy
>of the gcc sources and went through the whole install again, just to make sure
>I hadn't screwed up my stuff somehow.  I don't know what __lib_version is
>for and grep can only find it in the (non-functional) gs which gets produced.

>The tail-end of the output from make looks like:

>./echogs -n - gcc -Bstatic -lXmu -Bdynamic -I.   -o gs gs.o gsmain.o [...]
>[ previous line truncated removing lots of object names.]
>./echogs -x 205c >>_temp_
>cat ld.tr >>_temp_
>./echogs -  -lm >>_temp_
>/bin/sh <_temp_
>ld: Undefined symbol 
>   __lib_version 
>collect: /usr/bin/ld returned 2 exit status
>gcc: file path prefix `dynamic' never used
>gcc: file path prefix `static' never used
>*** Error code 1
>make: Fatal error: Command failed for target `gs'


>Which I hope means something to somebody.  Will some-one please tell me
>what I've done wrong?

	Well as far as __lib_version goes, I had that problem and fixed it
by commenting any other C compiler (Sun cc or whatever) out of my .cshrc
file.  Also I've heard it can be corrected by defining int __lib_version
but this didn't work for me.

	David 

>Thanks.
>-- 
>Thomas Erskine        <tom@clark.dgim.doc.ca>           (613) 998-2836
Technical Details
Message-ID: <1993Dec14.203034.28709@hubcap.clemson.edu>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!agate!headwall.Stanford.EDU!hubcap!debrown
References: <1993Dec14.185344.24024@clark.dgim.doc.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,b07884acad06f4be
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-19 01:48:06 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!agate!headwall.Stanford.EDU!hubcap!debrown
From: debrown@hubcap.clemson.edu (David E. Brown)
Subject: Re: undefined symbol __lib_version
Message-ID: <1993Dec14.203034.28709@hubcap.clemson.edu>
Organization: Clemson University
References: <1993Dec14.185344.24024@clark.dgim.doc.ca>
Date: Tue, 14 Dec 1993 20:30:34 GMT
Lines: 43