[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ***UNCHECKED*** Re: ***UNCHECKED*** Re: question about "invalid stri
From: |
Roger Moore |
Subject: |
Re: ***UNCHECKED*** Re: ***UNCHECKED*** Re: question about "invalid string offset" & "could not read symbols: Malformed archive" linker errors (fwd) |
Date: |
Fri, 12 Sep 2008 15:19:07 -0600 (MDT) |
Hi Nick,
I think I was having some problems before with the libxvtmapi.a file
because I was mixing some of the XVT 5.50 code with the XVT 5.80 code.
Please find on my web-site the complete archive with all source and object
files,
http://www.ece.ualberta.ca/~rmoore/linux.xvt5.8update.12.sept.2008.no.malformed.tar.bz2
Please find below the output from make. First you have to type,
$ ccmake .
To properly configure the project and set it up with the proper
directories. Then in the text UI type 'c' and 'g' which should exit for
you automatically if it was successfuly. Otherwise, if you don't want to
bother with the ccmake, you can simply set you directory structure to be
the following and place the files in there,
/mnt/hgfs/pclinux/trunk/branches/xvt5.8update
And simply type,
$ make
Here is the output I'm getting,
g++ -g ../outdir/debug/vistawin/vistawin.o -o ../outdir/debug/vistawin.exe
-L../outdir/debug -L../outdir/debug/xvtlib -L/usr/X11R6/lib -lvistawin
-lxvtxmapid -lxvtxmhb580d -lxvtxmba580d -lxvtxmhi580d -lnxpro -lm -lGL
-lGLU -lX11 -lXm -lpthread -lstdc++
/usr/local/bin/ld: skipping incompatible
../outdir/debug/xvtlib/libnxpro.so when searching for -lnxpro
/usr/local/bin/ld: cannot find -lnxpro
collect2: ld returned 1 exit status
make[1]: *** [../outdir/debug/vistawin.exe] Error 1
make[1]: Leaving directory
`/mnt/hgfs/pclinux/trunk/branches/xvt5.8update/vistawin'
make: *** [debug] Error 2
address@hidden xvt5.8update]$ pushd
/mnt/hgfs/pclinux/trunk/branches/xvt5.8update/outdir/debug/xvtlib
/mnt/hgfs/pclinux/trunk/branches/xvt5.8update
address@hidden xvtlib]$ !objd
objdump -p libnxpro.so
libnxpro.so: file format elf32-i386
Program Header:
LOAD off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**12
filesz 0x00068894 memsz 0x00068894 flags r-x
LOAD off 0x00069000 vaddr 0x00069000 paddr 0x00069000 align 2**12
filesz 0x00002280 memsz 0x00003920 flags rw-
DYNAMIC off 0x0006ab50 vaddr 0x0006ab50 paddr 0x0006ab50 align 2**2
filesz 0x000000b8 memsz 0x000000b8 flags rw-
Dynamic Section:
NEEDED libpthread.so.0
HASH 0x00000094
STRTAB 0x0000558c
SYMTAB 0x0000181c
STRSZ 0x00002fe6
SYMENT 0x00000010
PLTGOT 0x0006ac08
PLTRELSZ 0x00000bb8
PLTREL 0x00000011
JMPREL 0x00014838
REL 0x00008d50
RELSZ 0x0000bae8
RELENT 0x00000008
TEXTREL 0x00000000
VERNEED 0x00008d20
VERNEEDNUM 0x00000001
VERSYM 0x00008572
RELCOUNT 0x0000122a
Version References:
required from libpthread.so.0:
0x0d696911 0x00 03 GLIBC_2.1
0x0d696910 0x00 02 GLIBC_2.0
address@hidden xvtlib]$
Could you please tell me, how do I link in the libnxpro.so file found in
outdir/debug/xvtlib? Sorry, I'm sure I'm missing something obvious.
Thank you,
Roger
On Tue, 2 Sep 2008, Nick Clifton wrote:
> Hi Roger,
>
> > Okay, you don't really need to reproduce the build process. Packed in the
> > archive I sent you is the file libxvtxmapi.a. It should be located in
> > both the ~/lib and the ~/outdir/debug directories. If you perform ar on
> > this library, it should mention something about tapp.o.
>
> It does. ("Malformed archive" etc etc).
>
> Now - how do I build this library ? Ie I want to take an uncorrupt
> tapp.o file and put it into a library and in the process corrupt it, so
> that I can try to locate exactly where the corruption is happening.
>
> Cheers
> Nick
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: ***UNCHECKED*** Re: ***UNCHECKED*** Re: question about "invalid string offset" & "could not read symbols: Malformed archive" linker errors (fwd),
Roger Moore <=