bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool 2.2.8 build on OpenBSD 4.7 fails test suite


From: Ralf Wildenhues
Subject: Re: libtool 2.2.8 build on OpenBSD 4.7 fails test suite
Date: Sat, 19 Jun 2010 16:55:39 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

Hello Ken,

* Ken Dickey wrote on Fri, Jun 18, 2010 at 07:31:14PM CEST:
>        host-triplet:  i386-unknown-openbsd4.7
>         shell:                /bin/sh
>         compiler:             gcc
>         compiler flags:               -g -O2
>         linker:               /usr/bin/ld (gnu? no)
>         libtool:      (GNU libtool) 2.2.8
>         automake:     automake (GNU automake) 1.9.6
>         autoconf:     autoconf (GNU Autoconf) 2.62

FWIW, on OpenBSD 4.4 and with recent Autoconf and Automake, I can
reproduce these failures:

> PASS: tests/demo-shared.test
> PASS: tests/demo-make.test
> PASS: tests/demo-exec.test
> PASS: tests/demo-inst.test
> FAIL: tests/demo-hardcode.test
> PASS: tests/demo-relink.test
> FAIL: tests/demo-noinst-link.test
> PASS: tests/demo-unst.test

and all remaining ones you posted are due to the variable setting I
mentioned before.

The above failures are long-standing, and verbosely, look like below.

Cheers,
Ralf

demo-hardcode.test: ===  Running demo-hardcode.test
demo-hardcode.test: ===  Running `make hardcode' in demo
You may ignore any linking errors from the following command:
gcc -g -O2  -o hc-direct main.o ./.libs/libhello.so.3.12  -lm 
-Wl,-rpath,/tmp/build/_inst/lib || echo unsupported > hc-direct
gcc -g -O2  -o hc-libflag main.o -Wl,-rpath,/tmp/build/tests/demo/.libs 
-L/tmp/build/_inst/lib -lhello  -lm
You may ignore any linking errors from the following command:
LD_LIBRARY_PATH=./.libs gcc -g -O2  -o hc-libpath main.o -lhello  -lm 
-Wl,-rpath,/tmp/build/_inst/lib || echo unsupported > hc-libpath
/usr/bin/ld: cannot find -lhello
collect2: ld returned 1 exit status
gcc -g -O2  -o hc-minusL main.o -L./.libs -lhello  -lm 
-Wl,-rpath,/tmp/build/_inst/lib || echo unsupported > hc-minusL
demo-hardcode.test: ===  Finding libtool.m4's guesses at hardcoding values
= Searching for hardcoded library directories in each program
.libs was hardcoded in `hc-direct', as libtool expected
.libs was hardcoded in `hc-libflag', as libtool expected
`hc-libpath' was not linked properly, which fooled libtool
.libs was not hardcoded in `hc-minusL', as libtool expected

demo-noinst-link.test: ===  Running demo-noinst-link.test
cp: .libs/temp is a directory (not copied).
demo-noinst-link.test: ===  removing `libhello.la' and `hell' from demo
demo-noinst-link.test: ===  linking `hell' with a broken `demo/libhello.la'
/bin/sh ./libtool --tag=CC    --mode=link gcc  -g -O2  -no-undefined 
-version-info 3:12:1  -o libhello.la -rpath /tmp/build/_inst/lib hello.lo -lm 
libtool: link: rm -fr  .libs/libhello.la .libs/libhello.lai 
.libs/libhello.so.3.12
libtool: link: gcc -shared  -fPIC -DPIC -o .libs/libhello.so.3.12  
.libs/hello.o   -lm   
libtool: link: ( cd ".libs" && rm -f "libhello.la" && ln -s "../libhello.la" 
"libhello.la" )
/bin/sh ./libtool --tag=CC    --mode=link gcc  -g -O2    -o hell main.o 
libhello.la 
libtool: link: gcc -g -O2 -o .libs/hell main.o  -L./.libs -lhello -lm 
-Wl,-rpath,/tmp/build/_inst/lib
main.o(.text+0x20): In function `main':
/tmp/libtool-2.2.11a/tests/demo/main.c:34: undefined reference to `nothing'
main.o(.text+0x29):/tmp/libtool-2.2.11a/tests/demo/main.c:37: undefined 
reference to `foo'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /tmp/build/tests/demo (line 477 of Makefile).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]