[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SCO/bugfix patch 8 of 10: ltmain.in -L handling for SCO platforms
From: |
Tim Rice |
Subject: |
Re: SCO/bugfix patch 8 of 10: ltmain.in -L handling for SCO platforms |
Date: |
Sun, 6 Nov 2005 14:41:39 -0800 (PST) |
On Sun, 6 Nov 2005, Ralf Wildenhues wrote:
> Hi Tim,
>
> * Tim Rice wrote on Sun, Nov 06, 2005 at 09:28:59PM CET:
> > On Sat, 5 Nov 2005, Ralf Wildenhues wrote:
> > >
> > > Hmm. The original bug report (that added the sco3.2v5 line) is here:
> > > http://savannah.gnu.org/patch/index.php?func=detailitem&item_id=298
> > > I don't quite understand it, though. What exactly is going wrong here?
> >
> > Here is an example on UnixWare 7.1.1
> > [snip]
> > /usr/bin/ksh88 ./libtool --tag=CC --mode=link cc -g -o depdemo main.o
> > ./l1/libl1.la ./l2/libl2.la ./l4/libl4.la
> > mkdir .libs
> > LD_RUN_PATH="/usr/local/src/gnu/libtool-1.5.21a/tests/_inst/lib:$LD_RUN_PATH"
> > cc -g -o .libs/depdemo main.o ./l1/.libs/libl1.so ./l2/.libs/libl2.so
> > ./l4/.libs/libl4.so
> > /usr/local/src/gnu/libtool-1.5.21a/depdemo/l3/.libs/libl3.so
> > /usr/local/src/gnu/libtool-1.5.21a/depdemo/l2/.libs/libl2.so
> > /usr/local/src/gnu/libtool-1.5.21a/depdemo/l1/.libs/libl1.so -lm
> > UX:ld: ERROR: fatal error: library libl1.so.0, which is NEEDED by
> > ./l2/.libs/libl2.so, is not found
>
> OK. Could you post the link line and output creating ./l2/libl2.la,
...
/usr/bin/ksh88 ../libtool --tag=CC --mode=link cc -g -o libl2.la -rpath
/usr/local/src/gnu/libtool-1.5.21a/tests/_inst/lib -no-undefined l2.lo
../l1/libl1.la
cc -G -Wl,-h -Wl,libl2.so.0 -o .libs/libl2.so.0.0.0 .libs/l2.o
../l1/.libs/libl1.so
(cd .libs && rm -f libl2.so.0 && ln -s libl2.so.0.0.0 libl2.so.0)
(cd .libs && rm -f libl2.so && ln -s libl2.so.0.0.0 libl2.so)
ar cru .libs/libl2.a l2.o
: .libs/libl2.a
creating libl2.la
(cd .libs && rm -f libl2.la && ln -s ../libl2.la libl2.la)
...
> further `objdump -p ./l2/.libs/libl2.so', and also, with the patch
...
$ dump -Lv ./l2/.libs/libl2.so
/l2/.libs/libl2.so:
**** DYNAMIC SECTION INFORMATION ****
dynamic :
[INDEX] Tag Value
[1] NEEDED libl1.so.0
[2] INIT 0x710
[3] FINI 0x720
[4] SONAME libl2.so.0
[5] HASH 0x94
[6] STRTAB 0x48c
[7] SYMTAB 0x1dc
[8] STRSZ 0xea
[9] SYMENT 0x10
[10] PLTGOT 0x1728
[11] PLTSZ 0x18
[12] PLTREL 0x11
[13] JMPREL 0x590
[14] REL 0x578
[15] RELSZ 0x18
[16] RELENT 0x8
...
> applied, `objdump -p .libs/depdemo'? Please replace `objdump -p' with
...
$ dump -Lv .libs/depdemo
libs/depdemo:
**** DYNAMIC SECTION INFORMATION ****
dynamic :
[INDEX] Tag Value
[1] NEEDED libl1.so.0
[2] NEEDED libl2.so.0
[3] NEEDED libl4.so.0
[4] NEEDED libl3.so.0
[5] NEEDED libl2.so.0
[6] NEEDED libl1.so.0
[7] NEEDED /usr/lib/libc.so.1
[8] INIT 0x8048750
[9] FINI 0x8048760
[10] RPATH /usr/local/src/gnu/libtool-1.5.21a/tests/_inst/lib:
[11] HASH 0x80480e8
[12] STRTAB 0x8048328
[13] SYMTAB 0x8048198
[14] STRSZ 0x14e
[15] SYMENT 0x10
[16] DEBUG 0
[17] PLTGOT 0x8049828
[18] PLTSZ 0x48
[19] PLTREL 0x11
[20] JMPREL 0x8048498
[21] REL 0x8048478
[22] RELSZ 0x20
[23] RELENT 0x8
...
> the appropriate UnixWare tool, probably spelled `dump -Lv'?
>
> Thanks,
> Ralf
>
--
Tim Rice Multitalents (707) 887-1469
address@hidden