Message from discussion
linker error on shared object: sleep: invalid version 3 (max 0)
Path: g2news2.google.com!postnews.google.com!h2g2000yqg.googlegroups.com!not-for-mail
From: Amitava <ad_...@yahoo.com>
Newsgroups: comp.unix.programmer
Subject: linker error on shared object: sleep: invalid version 3 (max 0)
Date: Sat, 4 Jul 2009 11:02:18 -0700 (PDT)
Organization: http://groups.google.com
Lines: 51
Message-ID: <f5943cf9-97ef-4d48-b758-f9144638ba3a@h2g2000yqg.googlegroups.com>
NNTP-Posting-Host: 72.82.252.231
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1246730538 22124 127.0.0.1 (4 Jul 2009 18:02:18 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 4 Jul 2009 18:02:18 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: h2g2000yqg.googlegroups.com; posting-host=72.82.252.231;
posting-account=yRvbGAkAAACpCj3qPjv3fJdUBZ3sC4bk
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR
3.0.04506),gzip(gfe),gzip(gfe)
Hello,
I'd appreciate your help in solving this.
The error message I'm getting is from the GNU linker:
=========== begin quote ============
gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_MKSTEMP64 -
DHAVE_FONTCONFIG -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-
declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing
-Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H
-DGX_COLOR_INDEX_TYPE="unsigned long long" -I./obj/../soobj -I./
base -g -o ./bin/../sobin/gsc ./psi/dxmainc.c -L./bin/../sobin -lgs
/usr/local/bin/ld: ./bin/../sobin/libgs.so: sleep: invalid version 3
(max 0)
./bin/../sobin/libgs.so: could not read symbols: Bad value
collect2: ld returned 1 exit status
=========== end quote ============
I'm building GhostScript 8.64 using GCC 4.4.0 on Solaris 10 / Sparc.
The build of gs went through fine.
Next, I executed
make so
which is supposed to build libgs.so, gsc and gsx
(a shared object version of GhostScript and two example
programs which use that shared object)
The libgs.so built without error but the linker failed as above.
Is something wrong in the way the libgs.so was built?
This is what I noticed is the differnce between the reference to
the sleep in executable gs and the libgs.so:
$ /usr/ccs/bin/nm bin/gs|egrep 'Size.*Type|sleep'
[Index] Value Size Type Bind Other Shndx Name
[12970] | 4745700| 0|FUNC |GLOB |0 |UNDEF |sleep@@SUNW_0.9
$ /usr/ccs/bin/nm sobin/libgs.so|egrep 'Size.*Type|sleep'
[Index] Value Size Type Bind Other Shndx Name
[8684] | 0| 0|FUNC |GLOB |0 |ABS |sleep@@SUNW_0.9
What is wrong and how do I correct it?
Thanks for all the help.
Best regards