question about "invalid string offset" & "could not read symbols: Malformed archive" linker errors

2008-08-19 Thread Roger Moore
Hi,

Presently I am attempting to build an application on Linux with GNU ld 
version 2.17.50.0.6-5.el5 20061020.  When I execute make, it compiles but 
when it reaches the linker I receive the following error messages,

make[1]: Entering directory 
`/mnt/hgfs/pclinux/trunk/branches/testapp-xvt5.8update/testappwin'
make[1]: Warning: File `../outdir/debug/libtestappwin.a' has modification 
time 1.7e+03 s in the future
g++ -g ../outdir/debug/testappwin/testappwin.o -o 
../outdir/debug/testappwin.exe -L../outdir/debug -L../winport 
-L../outdir/debug/xvtlib -L/usr/X11R6/lib -L../license/lib/license -lflow 
-ltestappwin -lcompress -lgeom3d -ltape -ltiff -lfreetype -lwinport 
-lxispread -lpwr -lrw -lxvtxmapi -lxvtxmhb500 -lxvtxmba500 -lxvtxmhi500 
-lnxpro -lm -lGL -lGLU -lX11 -lXm -llicense -lpthread -lstdc++   
/usr/bin/ld: ../outdir/debug/libxvtxmapi.a(tapp.o): invalid string offset 
369098752 >= 0 for section `'
/usr/bin/ld: ../outdir/debug/libxvtxmapi.a(tapp.o): invalid string offset 
33554432 >= 0 for section `'
/usr/bin/ld: ../outdir/debug/libxvtxmapi.a(tapp.o): invalid string offset 
134217728 >= 0 for section `'
/usr/bin/ld: ../outdir/debug/libxvtxmapi.a(tapp.o): invalid string offset 
352321536 >= 0 for section `'
../outdir/debug/libxvtxmapi.a: could not read symbols: Malformed archive
collect2: ld returned 1 exit status
make[1]: *** [../outdir/debug/testappwin.exe] Error 1
make[1]: Leaving directory 
`/mnt/hgfs/pclinux/trunk/branches/testapp-xvt5.8update/testappwin'
make: *** [debug] Error 2
[EMAIL PROTECTED] testapp-xvt5.8update]$ 

Do you have any suggestions as to what may the cause of the problem?  
Please let me know if you want to see some of the source from tapp.c.

Any help at all would be greately appreciated.  Thank you for your time 
and I look forward to hearing from you.

Sincerely,

Roger




___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


Re: question about "invalid string offset" & "could not read symbols: Malformed archive" linker errors

2008-08-19 Thread Nick Clifton

Hi Roger,

Presently I am attempting to build an application on Linux with GNU ld 
version 2.17.50.0.6-5.el5 20061020.


Please see if you can reproduce this problem using a linker built from 
the head of the binutils CVS sources.  (I have a feeling that this is a 
problem that has already been fixed).  If it is still present please 
file a bug report at http://sourceware.org/bugzilla/.  Please include a 
small test case that can reproduce the problem, and please also tell us 
which version of gcc you used to compile the tapp.o file.  (This problem 
could also theoretically be caused by gcc).


Cheers
  Nick



___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils