Web Images Videos Maps News Shopping Google Mail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
linker error on shared object: sleep: invalid version 3 (max 0)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Amitava  
View profile   Translate to Translated (View Original)
 More options 4 July, 19:02
Newsgroups: comp.unix.programmer
From: Amitava <ad_...@yahoo.com>
Date: Sat, 4 Jul 2009 11:02:18 -0700 (PDT)
Local: Sat 4 July 2009 19:02
Subject: linker error on shared object: sleep: invalid version 3 (max 0)
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google