LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
LinkBack Search this Thread
Old 03-24-2005, 06:18 AM   #1
montylee
Member
 
Registered: May 2003
Location: India
Distribution: Ubuntu 7.04, Fedora Core 9
Posts: 168

Rep: Reputation: 30
Error creating library file from object files using xlc


Hi,

I am compiling an application having multiple object files. All the object files are created successfully. But when the object files are being linked for creating library (.so) file, the following error occurs:

ld: 0711-596 SEVERE ERROR: Object /home1/oie/obj/winx11.o
An RLD for section 2 (.data) refers to symbol 0,
but the storage class of the symbol is not C_EXT or C_HIDEXT.
ld: 0711-596 SEVERE ERROR: Object /home1/oie/obj/winx11.o
An RLD for section 2 (.data) refers to symbol 0,
but the storage class of the symbol is not C_EXT or C_HIDEXT.
make: 1254-004 The error code from the last command is 12.


Stop.


I am using AIX machine. The output of 'uname -a' is:

AIX rook 1 5 0007831C4C00


Please help!!!
 
Old 04-06-2005, 10:55 PM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,822

Rep: Reputation: 120Reputation: 120
What flags are you using to build the .o files and what flags are you using for the shared objects.

For the shared objects you should use -G and -qmkshrobj
 
Old 04-07-2005, 07:44 AM   #3
montylee
Member
 
Registered: May 2003
Location: India
Distribution: Ubuntu 7.04, Fedora Core 9
Posts: 168

Original Poster
Rep: Reputation: 30
Thanks, the issue is resolved now.
Basically, i removed a line of code from my source file and it worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
glibc in capter 6 -- error: cannot compute suffix of object files Yoyo302 Linux From Scratch 23 05-21-2010 08:28 AM
unable to step through function in shared object library using gdb markhod Programming 2 01-03-2009 02:00 AM
Command to Finding Source files for a library file jonty_11 Programming 1 03-23-2005 05:17 PM
shared object library won't load (libstdc++) sleepylight Linux - General 4 04-27-2004 04:24 PM
gnome-session...shared object file error kylerebbe Slackware 2 04-20-2003 02:32 PM


All times are GMT -5. The time now is 05:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration