This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
linker error on shared object: sleep: invalid version 3 (max 0)
- From: Amitava Dutta <ad_101 at yahoo dot com>
- To: binutils at sourceware dot org
- Date: Thu, 2 Jul 2009 20:09:54 -0700 (PDT)
- Subject: linker error on shared object: sleep: invalid version 3 (max 0)
- Reply-to: ad_101 at yahoo dot com
Hello,
I'd appreciate your help in solving this.
The error message I'm getting is:
=========== 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
Amitava