Unix Programming - link problem on AIX

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 2007 > link problem on AIX





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author link problem on AIX
Sheth Raxit

2007-04-17, 7:19 am

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

Gary R. Hook

2007-04-17, 1: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.
David J Dachtera

2007-04-18, 1: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/
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com