libtool
[Top][All Lists]
Advanced

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

Re: cygwin libtool breakage


From: Robert Collins
Subject: Re: cygwin libtool breakage
Date: Mon, 4 Jun 2001 21:41:51 +1000

----- Original Message -----
From: "Gary V. Vaughan" <address@hidden>
To: "Robert Collins" <address@hidden>; <address@hidden>
Sent: Monday, June 04, 2001 11:25 AM
Subject: Re: cygwin libtool breakage


> On Saturday 02 June 2001  5:43 pm, Robert Collins wrote:
> > Scratch my prior problem: adding AC_LIBTOOL_WIN32_DLL to
configure.in
> > (missed that step in the autobook ) worked wonders.
>
> :-o
>
> > however, back to the failing tests.
> >
> > the first failure, demo-make.test fails because ar is called with no
> > object files.
>
> There was a bug in ltmain.in for a day where I had mismerged the
> pic-objects-in-.libs patch, perhaps you are seeing this.  Anyway, with
a
> freshly setup.exe'ed cygwin-1.3.2 and a freshly pservered libtool
HEAD, I get
> the following:

> address@hidden ~/libtool$ export CC=gcc

I suspect my nothaving run this as much as anything. ltmain was working
for me on a test hellolib pacakge.


This is what I get now: - unable to make hell-static -. I'm running
automake CVS HEAD - could that be related?

Rob

$ make check TESTS='demo-static.test demo-make.test' VERBOSE=1
Making check in .
make[1]: Entering directory `/usr/src/libtool/build'
make[1]: Nothing to be done for `check-am'.
make[1]: Leaving directory `/usr/src/libtool/build'
Making check in libltdl
make[1]: Entering directory `/usr/src/libtool/build/libltdl'
make[1]: Leaving directory `/usr/src/libtool/build/libltdl'
Making check in doc
make[1]: Entering directory `/usr/src/libtool/build/doc'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/usr/src/libtool/build/doc'
Making check in tests
make[1]: Entering directory `/usr/src/libtool/build/tests'
make  check-TESTS
make[2]: Entering directory `/usr/src/libtool/build/tests'
=== Running demo-static.test
= Running make distclean in ../demo
make[3]: Entering directory `/usr/src/libtool/build/demo'
test -z "hell.exe hell.static helldl.exe" || rm -f hell.exe hell.static
helldl.exe
test -z "hc-direct hc-libflag hc-libpath hc-minusL libhell0.a
libhell1.la libhell2.la hell
0.exe" || rm -f hc-direct hc-libflag hc-libpath hc-minusL libhell0.a
libhell1.la libhell2.
la hell0.exe
test -z "libhello.la" || rm -f libhello.la
rm -rf .libs _libs
rm -f *.o core *.core
rm -f *.lo
rm -f *.tab.c
rm -f Makefile
rm -f config.cache config.log stamp-h stamp-h[0-9]*
rm -f libtool
rm -f TAGS ID
rm -f config.status
make[3]: Leaving directory `/usr/src/libtool/build/demo'
= Configuring in ../demo (prefix=/usr/src/libtool/build/tests/_inst)
with --disable-shared

creating cache ./config.cache
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for style of include used by make... GNU
checking dependency style of gcc... cp:
/usr/src/libtool/tests/../demo/../depcomp: No such
 file or directory
/usr/src/libtool/tests/../demo/configure: cannot open ./depcomp: no such
file
none
checking for working const... yes
checking for Cygwin environment... yes
checking for mingw32 environment... no
checking for executable suffix... .exe
checking host system type... i686-pc-cygwin
checking build system type... i686-pc-cygwin
checking for ld used by GCC... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object
files... -r
checking for BSD-compatible nm... /bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic file format
pei*-i386(.*archit
ecture: i386)?
checking for object suffix... o
checking command to parse /bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for gcc option to produce PIC... -DDLL_EXPORT
checking whether the linker (/usr/i686-pc-cygwin/bin/ld.exe) supports
shared libraries...
yes
checking command to parse /bin/nm -B output... (cached) ok
checking if gcc PIC flag -DDLL_EXPORT works... yes
checking if gcc static flag -static works... yes
checking the maximum length of command line arguments... 12289
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking if gcc supports -c -o file.o... yes
checking for objdir... .libs
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
creating libtool
checking if libtool supports shared libraries... yes
./libtool: not found
checking for string.h... yes
checking for math.h... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
PASS: demo-static.test
=== Running demo-make.test
Making in ../demo
make[3]: Entering directory `/usr/src/libtool/build/demo'
/bin/sh ./libtool --mode=compile
gcc -DPACKAGE=\"hell\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1
 -DHAVE_STRING_H=1 -DHAVE_MATH_H=1  -I. -I/usr/src/libtool/tests/../demo
     -g -O2 -c -o
hello.lo `test -f /usr/src/libtool/tests/../demo/hello.c || echo
'/usr/src/libtool/tests/.
./demo/'`/usr/src/libtool/tests/../demo/hello.c
gcc -DPACKAGE=\"hell\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1 -DHAVE_STRING_
H=1 -DHAVE_MATH_H=
1 -I. -I/usr/src/libtool/tests/../demo -g -O2 -c
/usr/src/libtool/tests/../demo/hello.c -o
 hello.o
/bin/sh ./libtool --mode=compile
gcc -DPACKAGE=\"hell\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1
 -DHAVE_STRING_H=1 -DHAVE_MATH_H=1  -I. -I/usr/src/libtool/tests/../demo
     -g -O2 -c -o
foo.lo `test -f /usr/src/libtool/tests/../demo/foo.c || echo
'/usr/src/libtool/tests/../de
mo/'`/usr/src/libtool/tests/../demo/foo.c
gcc -DPACKAGE=\"hell\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1 -DHAVE_STRING_
H=1 -DHAVE_MATH_H=
1 -I. -I/usr/src/libtool/tests/../demo -g -O2 -c
/usr/src/libtool/tests/../demo/foo.c -o f
oo.o
/bin/sh ./libtool --mode=link gcc  -g -O2   -o libhello.la -rpath
/usr/src/libtool/build/t
ests/_inst/lib -version-info 3:12:1 hello.lo foo.lo
mkdir .libs
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin
shared libraries
ar cru .libs/libhello.a  hello.o foo.o
ranlib .libs/libhello.a
creating libhello.la
(cd .libs && rm -f libhello.la && ln -s ../libhello.la libhello.la)
gcc -DPACKAGE=\"hell\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1 -DHAVE_STRING_
H=1 -DHAVE_MATH_H=
1  -I. -I/usr/src/libtool/tests/../demo     -g -O2 -c `test -f
/usr/src/libtool/tests/../d
emo/main.c || echo
'/usr/src/libtool/tests/../demo/'`/usr/src/libtool/tests/../demo/main.c

/bin/sh ./libtool --mode=link gcc  -g -O2   -o hell.exe  main.o
libhello.la
gcc -g -O2 -o hell.exe main.o  ./.libs/libhello.a
make[3]: *** No rule to make target `hell.static', needed by `all-am'.
Stop.
make[3]: Leaving directory `/usr/src/libtool/build/demo'
FAIL: demo-make.test
===================
1 of 2 tests failed
===================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/usr/src/libtool/build/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/usr/src/libtool/build/tests'
make: *** [check-recursive] Error 1





reply via email to

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