LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  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
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
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.
 
Old 03-04-2024, 11:21 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,864
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Now I have this problem with gcc-8.3.0 and gas-2.36.1
Code:
  Fileset                      Level  State      Description
  ----------------------------------------------------------------------------
Path: /usr/lib/objrepos
  bos.rte.bind_cmds          7.2.5.0  COMMITTED  Binder and Loader Commands
sample:
Code:
ld: 0711-596 SEVERE ERROR: Object obj-64/.libs/sockets.o
        An RLD for section 2 (.data) refers to symbol 490,
        but the storage class of the symbol is not C_EXT or C_HIDEXT.
 
  


Reply



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



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

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 06:21 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration