[lfs-dev] More on static libs

Fernando de Oliveira famobr at yahoo.com.br
Fri Mar 13 08:22:31 PDT 2015


On 13-03-2015 01:08, Bruce Dubbs wrote:
> Bruce Dubbs wrote:
>> Ken Moffat wrote:
>>> On Wed, Mar 11, 2015 at 08:13:02PM -0500, Bruce Dubbs wrote:
>>>>
>>>> 103-libtool-2.4.6: 70: Runpath in libtool library files    FAILED
>>>> 103-libtool-2.4.6:117: enforced lib prefix                 FAILED
>>>> 103-libtool-2.4.6:170: Run tests with low max_cmd_len      FAILED
> 
> I'm pretty suere these fail because the tests do something like:
> 
>   $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file
> 
> and missing libc_nonshared.a causes gcc to fail.
> 
>   -- Bruce

Rerun the libtool tests today, with Chapter 6 completed but not stripped:

ERROR: 138 tests were run,
8 failed (5 expected failures).
32 tests were skipped.

Failures are the same as for Bruce:

 70: Runpath in libtool library files FAILED (runpath-in-lalib.at:61)
117: enforced lib prefix              FAILED (need_lib_prefix.at:183)
170: Run tests with low max_cmd_len   FAILED (cmdline_wrap.at:48)

I could analyse 70, couldn't 114, and gave up.

70:
Line 61 of runpath-in-lalib.at:
AT_CHECK([$GREP /foobar $libdir/liba.la], [], [ignore])

Execution
./runpath-in-lalib.at:61: $GREP /foobar $libdir/liba.la
stdout:
./runpath-in-lalib.at:61: exit code was 1, expected 0
70. runpath-in-lalib.at:25: 70. Runpath in libtool library files
(runpath-in-lalib.at:25): FAILED (runpath-in-lalib.at:61)

I believe it fails to find /foobar:

# grep /foobar ./tests/testsuite.dir/070/.libs/liba.la; echo $?
1

There are many liba.la, none has /foobar.

117:
Line 183 of need_lib_prefix.a:
LT_AT_NOINST_EXEC_CHECK([./main], [-dlopen foo1.la -dlopen libfoo2.la],
	      [], [expout], [])

Execution
./need_lib_prefix.at:183: if $LIBTOOL --mode=execute -dlopen foo1.la
-dlopen libfoo2.la "$lt_exe" ; then :; else lt_status=$?; 	   	   test
"X$host" != "X$build" && test -x "$lt_exe" && exit 77; 	   exit
$lt_status; fi
--- /dev/null	2015-03-12 06:52:29.944457312 -0300
+++
/tmp/libtool-2.4.6-build-2015.03.13-10h50m05s/libtool-2.4.6/tests/testsuite.dir/at-groups/117/stderr
2015-03-13 10:56:38.976710807 -0300
@@ -0,0 +1,2 @@
+function 'f' not found:
/tmp/libtool-2.4.6-build-2015.03.13-10h50m05s/libtool-2.4.6/tests/testsuite.dir/117/.libs/libfoo1.so:
undefined symbol: i
+error during preloading.
--- expout	2015-03-13 10:56:38.072710777 -0300
+++
/tmp/libtool-2.4.6-build-2015.03.13-10h50m05s/libtool-2.4.6/tests/testsuite.dir/at-groups/117/stdout
2015-03-13 10:56:38.976710807 -0300
@@ -1,2 +1 @@
-libfoo1: 2
 libfoo2: 3
./need_lib_prefix.at:183: exit code was 1, expected 0
117. need_lib_prefix.at:25: 117. enforced lib prefix
(need_lib_prefix.at:25): FAILED (need_lib_prefix.at:183)

It seems related to X.

Here, I gave up.

-- 
[]s,
Fernando


More information about the lfs-dev mailing list