LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   Error creating library file from object files using xlc (https://www.linuxquestions.org/questions/aix-43/error-creating-library-file-from-object-files-using-xlc-305434/)

montylee 03-24-2005 06:18 AM

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!!!

crabboy 04-06-2005 10:55 PM

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

montylee 04-07-2005 07:44 AM

Thanks, the issue is resolved now.
Basically, i removed a line of code from my source file and it worked.

NevemTeve 03-04-2024 11:21 AM

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.



All times are GMT -5. The time now is 01:25 PM.