GNU bug report logs - #19893
GNU libtool-2.4.6 released [stable]

Previous Next

Package: libtool;

Reported by: Michael Felt <aixtools <at> gmail.com>

Date: Wed, 18 Feb 2015 08:20:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Michael Felt <aixtools <at> gmail.com>
To: Nick Bowler <nbowler <at> elliptictech.com>
Cc: 19893 <at> debbugs.gnu.org
Subject: bug#19893: GNU libtool-2.4.6 released [stable]
Date: Wed, 25 Feb 2015 16:52:15 +0100
[Message part 1 (text/plain, inline)]
OK - it took awhile to understand this test - and I think it does indicate
a bug.

If I understand the test it is expecting the directory
addrunpath=`pwd`/foobar to be added to the .la file (and now I understand
the name of the test :)) -- tests/runpath-in-lalib.at

I expect this is to 'happen' with this statement

AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo -rpath
$libdir -R$addrunpath],
         [], [ignore], [ignore])

At the end of the test - this is the contents of the .la files regarding
libraries:
root <at> x064:[/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070]tail
-3 liba.la

# Directory that this library needs to be installed in:
libdir='/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070/inst/lib'

root <at> x064:[/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070]tail
-3 libb.la
# Directory that this library needs to be installed in:
libdir='/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070/inst/lib'
relink_command="(cd
/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070; /bin/sh
\"/data/prj/gnu/libtool/libtool-2.4.6/libtool\"  --mode=relink cc -O2
-qlanglvl=extc99 -o libb.la b.lo -rpath
/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070/inst/lib liba.la
@inst_prefix_dir@)"

Looking at the .so.0 files though...

root <at> x064:[/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070]dump
-H .libs/liba.so.0 | tail -3
                        ***Import File Strings***
INDEX  PATH                          BASE
MEMBER
0
/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070/foobar:/usr/vac/lib:/usr/lib:/lib


root <at> x064:[/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070]dump
-H .libs/libb.so.0 | tail -4
                        ***Import File Strings***
INDEX  PATH                          BASE
MEMBER
0
/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070/inst/lib:/usr/vac/lib:/usr/lib:/lib

1                                    liba.a
liba.so.0

We see that .../foobar has been added to the internal LIBPATH variable.

I am a bit surprised by this because -R is suppossed to be a NULL op unless
the -bsvr4 flag is also specified - maybe that is also heppening in the
background - will look more carefully for that.

In any case, .../foobar is getting added to the shared object, but not the
.la text.

I have no clue where to look beyond this - hints/patch is welcome!

Michael





On Thu, Feb 19, 2015 at 7:09 PM, Michael Felt <aixtools <at> gmail.com> wrote:

> thanks.
> On Feb 18, 2015 3:46 PM, "Nick Bowler" <nbowler <at> elliptictech.com> wrote:
>
>> Hi,
>>
>> I don't know about the specific failure but I can answer your
>> questions...
>>
>> On 2015-02-18 09:18 +0100, Michael Felt wrote:
>> > Test 70, e.g., proceeds fine but at line 61 - it fails
>> [...]
>> > in the test file runpath-in-lalib.at
>> >
>> >    +61  AT_CHECK([$GREP /foobar $libdir/liba.la], [], [ignore])
>> >    +62  AT_CHECK([$GREP /foobar $libdir/libb.la], [], [ignore])
>> >    +63
>> >    +64  # TODO: check that m gets -R, too.
>> >    +65
>> >    +66  AT_CLEANUP
>> [...]
>> > Two questions:
>> >
>> > 1. the word [ignore] at the end does not mean to ignore exit status - I
>> am
>> > guessing. So what does it mean?
>>
>> It means to ignore the standard output of the command (not completely;
>> it is still recorded in the testsuite log file).
>>
>> > 2. How can I easily run a (verbose) single-test (and maybe have it echo
>> the
>> > values of things like $GREP)
>>
>> You can pass flags to the testsuite by setting TESTSUITEFLAGS, e.g.,
>>
>>   make check TESTSUITEFLAGS='70'
>>
>> to run just test 70.  See ./tests/testsuite --help for more testsuite
>> options; perhaps --trace will be helpful for you.
>>
>> Regards,
>> --
>> Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)
>>
>
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 115 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.