08-30-2005 03:14 AM
This problem is related to archiving 64bit object files.
I have a static library of 64bit compiled object files. Now when I use this library to built a shared library / executable(using 64bit CC flags) linker throws following error.
ld: (Warning) Cannot load library symbol table in /project/lib/libasn.a, it might be missing or corrupted. Skipping library /project/lib/libasn.a.
When I did "nm /project/lib/libasn.a" it gives following error:
nm: bits.o: File format not recognized
I guess this is common issue, most of you must have faced while trying to build 64bit executables. Do reply if you have any clue or pointers on this.
Thanks & Regards,
09-01-2005 08:36 PM
You should try a
mkdir /tmp/extract;cd /tmp/extract
ar x /project/lib/libasn.a
I think probably bits.o will not be of the right type.
09-01-2005 09:11 PM
What were the tags you used to build library.
Either the library is corrupted or symbol table is not available.
You can check for library corruption by