link problem on AIX
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > link problem on AIX




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    link problem on AIX  
Sheth Raxit


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-17-07 12:19 PM

while compiling the program against my library on AIX 5.3, i got this,
not able to understand what it means ? and what i am trying to do
wrong.

how to cope up with this (and why it is giving the error ?)


gcc -Wall main.c -o bin_name -L/libpath/ -lMy_static_lib

ld: 0711-203 SEVERE ERROR: Archive file PATH/libMy_static_lib.a cannot
be processed.
The length of the archive member table (0) is less than 20
or is not consistent with the length of the archive.
collect2: ld returned 12 exit status
make: 1254-004 The error code from the last command is 1.


--Raxit






[ Post a follow-up to this message ]



    Re: link problem on AIX  
Gary R. Hook


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-17-07 06:21 PM

Sheth Raxit wrote:
>
> gcc -Wall main.c -o bin_name -L/libpath/ -lMy_static_lib
>
> ld: 0711-203 SEVERE ERROR: Archive file PATH/libMy_static_lib.a cannot
> be processed.
>         The length of the archive member table (0) is less than 20
>         or is not consistent with the length of the archive.
> collect2: ld returned 12 exit status
> make: 1254-004 The error code from the last command is 1.

A) A tool complains about a file, which leads to the logical next step:
B) Go examine/investigate the file.

What _do_ they teach in schools these days?

Or put another way:
It likely means the archive (libMy_static_lib.a) is corrupt.
Reconstruct the archive using the ar command.  If ar doesn't like
it you'll need to start from scratch with the archive members.





[ Post a follow-up to this message ]



    Re: link problem on AIX  
David J Dachtera


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-18-07 06:19 AM

"Gary R. Hook" wrote:
> [snip]
> What _do_ they teach in schools these days?

WhineBloze.

--
David J Dachtera
dba DJE Systems
http://www.djesys.com/

Unofficial OpenVMS Marketing Home Page
http://www.djesys.com/vms/market/

Unofficial Affordable OpenVMS Home Page:
http://www.djesys.com/vms/soho/

Unofficial OpenVMS-IA32 Home Page:
http://www.djesys.com/vms/ia32/

Unofficial OpenVMS Hobbyist Support Page:
http://www.djesys.com/vms/support/





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:56 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register