This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

linker error on shared object: sleep: invalid version 3 (max 0)


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/ sleep: invalid version 3 (max 0)
./bin/../sobin/ 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, gsc and gsx
(a shared object version of GhostScript and two example 
programs which use that shared object)

The built without error but the linker failed as above.

Is something wrong in the way the was built?

This is what I noticed is the differnce between the reference to
the sleep in executable gs and the

$ /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/|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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]