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: Sun, 3 Jun 2001 02:43:23 +1000

Scratch my prior problem: adding AC_LIBTOOL_WIN32_DLL to configure.in
(missed that step in the autobook ) worked wonders.

however, back to the failing tests.

the first failure, demo-make.test fails because ar is called with no
object files.

Here, pointers would be useful. This test works on at least one other
cygwin machine, with the 1.4 libtool. (I'm running CVS HEAD).

Rob

$ make
/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
mkdir .libs
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  -
DDLL_EXPORT -o .libs/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  -DD
LL_EXPORT -o .libs/foo.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
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin
shared libraries
ar cru .libs/libhello.a
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
main.o: In function `main':
/usr/src/libtool/tests/../demo/main.c:32: undefined reference to
`nothing'
/usr/src/libtool/tests/../demo/main.c:35: undefined reference to `foo'
/usr/src/libtool/tests/../demo/main.c:38: undefined reference to `hello'
collect2: ld returned 1 exit status
make: *** [hell.exe] Error 1




reply via email to

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