libtool
[Top][All Lists]
Advanced

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

building libtool in MinGW


From: S James S Stapleton
Subject: building libtool in MinGW
Date: Mon, 9 Jul 2007 10:40:57 -0400

Please cc me a copy of any replies as I am not on the list. Thank you.


I downloaded the latest MinGW friday, and libtool's source today, both from stable:

MinGW 5.1.3 installer
libtool-1.9f

I cannot get libtool to compile (I need it for OpenSSL I think), during the make process I get an error about not being able to find a .la file (libltdl/libdlloader.la, which has been created and is 911 bytes)

address@hidden /c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f
$ ls -lh libltdl/ | grep \.la
-rw-r--r--    1 stapleto Administ      911 Jul  9 10:29 libdlloader.la
-rw-r--r-- 1 stapleto Administ 320 Jul 9 10:29 libltdl_la-lt_dlloader.lo -rw-r--r-- 1 stapleto Administ 12k Jul 9 10:29 libltdl_la-lt_dlloader.o
-rw-r--r--    1 stapleto Administ      299 Jul  9 10:29 libltdl_la-ltdl.lo
-rw-r--r--    1 stapleto Administ      60k Jul  9 10:29 libltdl_la-ltdl.o
-rw-r--r-- 1 stapleto Administ 308 Jul 9 10:30 libltdl_la-preopen.lo
-rw-r--r--    1 stapleto Administ      15k Jul  9 10:30 libltdl_la-preopen.o

To get make to work, I symlinked make.exe to mingw32-make
$ ln -s /bin/mingw32-make.exe make.exe

And my build command was:
$ ./configure &> log.configure; make &> log.make

The log files are at the end of the email.

Thank you,
-Jim Stapleton


log.config
========================================
## ------------------------ ##
## Configuring libtool 1.9f ##
## ------------------------ ##
checking for a BSD-compatible install... /mingw/bin/install -c
checking whether build environment is sane... yes
/c/Documents: /c/Documents: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for a sed that does not truncate output... /mingw/bin/sed
checking for egrep... grep -E
checking for fgrep... grep -F
checking for ld used by gcc... c:/MinGW/mingw32/bin/ld.exe
checking if the linker (c:/MinGW/mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD-compatible nm... /mingw/bin/nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking for c:/MinGW/mingw32/bin/ld.exe option to reload object files... -r
checking how to recognise dependent libraries... file_magic file format pei*-i386(.*architecture: i386)?
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw/bin/nm output from object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for as... as
checking for dlltool... dlltool
checking for objdump... objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (c:/MinGW/mingw32/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for an ANSI C-conforming const... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking which extension is used for runtime loadable modules... .dll
checking which variable specifies run-time module search path... PATH
checking for the default library search path... /lib /usr/lib
checking for dlopen in -ldl... no
checking for dlopen in -lsvld... no
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dld_link in -ldld... no
checking for _ prefix in compiled symbols... yes
checking whether deplibs are loaded by dlopen... unknown
checking for argz.h... no
checking for error_t... no
checking for argz_append... no
checking for argz_create_sep... no
checking for argz_insert... no
checking for argz_next... no
checking for argz_stringify... no
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for memory.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dl.h... no
checking for sys/dl.h... no
checking for dld.h... no
checking for mach-o/dyld.h... no
checking for string.h... (cached) yes
checking for closedir... yes
checking for opendir... yes
checking for readdir... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... c:/MinGW/mingw32/bin/ld.exe
checking if the linker (c:/MinGW/mingw32/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (c:/MinGW/mingw32/bin/ld.exe) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (c:/MinGW/mingw32/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -DDLL_EXPORT
checking if g77 PIC flag -DDLL_EXPORT works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking if g77 supports -c -o file.o... (cached) yes
checking whether the g77 linker (c:/MinGW/mingw32/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for gcj... gcj
checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
checking for gcj option to produce PIC... -DDLL_EXPORT
checking if gcj PIC flag -DDLL_EXPORT works... no
checking if gcj static flag -static works... no
checking if gcj supports -c -o file.o... yes
checking if gcj supports -c -o file.o... (cached) yes
checking whether the gcj linker (c:/MinGW/mingw32/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for windres... windres
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libltdl/Makefile
config.status: creating libltdl/loaders/Makefile
config.status: creating doc/Makefile
config.status: creating tests/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
========================================



log.make
========================================
make all-recursive
make[1]: Entering directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f'
Making all in .
make[2]: Entering directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f'
rm -f libtoolize.tmp libtoolize
set -- `/bin/sh ./config/mkstamp < ./ChangeLog`; case 1.9f in *[acegikmoqsuwy]) TIMESTAMP=" $1 $2 $3" ;; *) TIMESTAMP="" ;; esac; \
input="libtoolize.m4sh"; \
sed -e 's,@EGREP\@,grep -E,g' -e 's,@FGREP\@,grep -F,g' -e 's,@GREP\@,grep,g' -e 's,@LN_S\@,ln -s,g' -e 's,@MACRO_VERSION\@,1.9f,g' -e 's,@PACKAGE\@,libtool,g' -e 's,@SED\@,/mingw/bin/sed,g' -e 's,@VERSION\@,1.9f,g' -e 's,@prefix\@,/usr/local,g' -e 's,@datadir\@,/usr/local/share,g' -e 's,@pkgdatadir\@,/usr/local/share/libtool,g' -e 's,@aclocaldir\@,/usr/local/share/aclocal,g' -e 's,@host_triplet\@,i686-pc-mingw32,g' -e "s,@configure_input\@,Generated from $input; do not edit by hand,g" -e "s,@TIMESTAMP\@,$TIMESTAMP,g" \
./libtoolize.in > libtoolize.tmp
chmod a+x libtoolize.tmp
chmod a-w libtoolize.tmp
mv -f libtoolize.tmp libtoolize
make[2]: Leaving directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f'
Making all in libltdl
make[2]: Entering directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl'
cp ./argz_.h argz.h-t
mv argz.h-t argz.h
make all-recursive
make[3]: Entering directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl'
Making all in loaders
make[4]: Entering directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl/loaders'
make all-am
make[5]: Entering directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl/loaders' if /bin/sh ../../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H="<config.h>" -DLTDL -I. -I. -I../.. -I../.. -I../.. -I.. -I./.. -g -O2 -MT loadlibrary.lo -MD -MP -MF ".deps/loadlibrary.Tpo" -c -o loadlibrary.lo loadlibrary.c; \ then mv -f ".deps/loadlibrary.Tpo" ".deps/loadlibrary.Plo"; else rm -f ".deps/loadlibrary.Tpo"; exit 1; fi gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I../.. -I../.. -I../.. -I.. -I./.. -g -O2 -MT loadlibrary.lo -MD -MP -MF .deps/loadlibrary.Tpo -c loadlibrary.c -DDLL_EXPORT -DPIC -o .libs/loadlibrary.o ../lt__private.h:121: warning: array 'lt__error_strings' assumed to have one element gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I../.. -I../.. -I../.. -I.. -I./.. -g -O2 -MT loadlibrary.lo -MD -MP -MF .deps/loadlibrary.Tpo -c loadlibrary.c -o loadlibrary.o >/dev/null 2>&1
cd ..; make libdlloader.la
make[6]: Entering directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl' if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H="<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT lt_error.lo -MD -MP -MF ".deps/lt_error.Tpo" -c -o lt_error.lo lt_error.c; \ then mv -f ".deps/lt_error.Tpo" ".deps/lt_error.Plo"; else rm -f ".deps/lt_error.Tpo"; exit 1; fi gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT lt_error.lo -MD -MP -MF .deps/lt_error.Tpo -c lt_error.c -DDLL_EXPORT -DPIC -o .libs/lt_error.o gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT lt_error.lo -MD -MP -MF .deps/lt_error.Tpo -c lt_error.c -o lt_error.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H="<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT lt__alloc.lo -MD -MP -MF ".deps/lt__alloc.Tpo" -c -o lt__alloc.lo lt__alloc.c; \ then mv -f ".deps/lt__alloc.Tpo" ".deps/lt__alloc.Plo"; else rm -f ".deps/lt__alloc.Tpo"; exit 1; fi gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT lt__alloc.lo -MD -MP -MF .deps/lt__alloc.Tpo -c lt__alloc.c -DDLL_EXPORT -DPIC -o .libs/lt__alloc.o lt__private.h:121: warning: array 'lt__error_strings' assumed to have one element gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT lt__alloc.lo -MD -MP -MF .deps/lt__alloc.Tpo -c lt__alloc.c -o lt__alloc.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H="<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT slist.lo -MD -MP -MF ".deps/slist.Tpo" -c -o slist.lo slist.c; \ then mv -f ".deps/slist.Tpo" ".deps/slist.Plo"; else rm -f ".deps/slist.Tpo"; exit 1; fi gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT slist.lo -MD -MP -MF .deps/slist.Tpo -c slist.c -DDLL_EXPORT -DPIC -o .libs/slist.o gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT slist.lo -MD -MP -MF .deps/slist.Tpo -c slist.c -o slist.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H="<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT argz.lo -MD -MP -MF ".deps/argz.Tpo" -c -o argz.lo argz.c; \ then mv -f ".deps/argz.Tpo" ".deps/argz.Plo"; else rm -f ".deps/argz.Tpo"; exit 1; fi gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT argz.lo -MD -MP -MF .deps/argz.Tpo -c argz.c -DDLL_EXPORT -DPIC -o .libs/argz.o gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -I.. -I.. -g -O2 -MT argz.lo -MD -MP -MF .deps/argz.Tpo -c argz.c -o argz.o >/dev/null 2>&1 /bin/sh ../libtool --mode=link --tag=CC gcc -g -O2 -no-undefined -o libdlloader.la -rpath /usr/local/lib -version-info 6:0:0 lt_error.lo lt__alloc.lo slist.lo argz.lo gcc -shared .libs/lt_error.o .libs/lt__alloc.o .libs/slist.o .libs/argz.o -o .libs/libdlloader-6.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libdlloader.dll.a
Creating library file: .libs/libdlloader.dll.a
ar cru .libs/libdlloader.a lt_error.o lt__alloc.o slist.o argz.o
ranlib .libs/libdlloader.a
libtool: link: creating libdlloader.la
(cd .libs && rm -f libdlloader.la && ln -s ../libdlloader.la libdlloader.la)
make[6]: Leaving directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl' /bin/sh ../../libtool --mode=link --tag=CC gcc -g -O2 -no-undefined -module -avoid-version -export-dynamic -o loadlibrary.la loadlibrary.lo ../libdlloader.la
ar cru .libs/loadlibrary.a .libs/loadlibrary.o
ranlib .libs/loadlibrary.a
libtool: link: creating loadlibrary.la
(cd .libs && rm -f loadlibrary.la && ln -s ../loadlibrary.la loadlibrary.la)
make[5]: Leaving directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl/loaders' make[4]: Leaving directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl/loaders'
Making all in .
make[4]: Entering directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl' if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H="<config.h>" -DLTDL -I. -I. -I.. -DLTDLOPEN=libltdl -I.. -I.. -g -O2 -MT libltdl_la-ltdl.lo -MD -MP -MF ".deps/libltdl_la-ltdl.Tpo" -c -o libltdl_la-ltdl.lo `test -f 'ltdl.c' || echo './'`ltdl.c; \ then mv -f ".deps/libltdl_la-ltdl.Tpo" ".deps/libltdl_la-ltdl.Plo"; else rm -f ".deps/libltdl_la-ltdl.Tpo"; exit 1; fi gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -DLTDLOPEN=libltdl -I.. -I.. -g -O2 -MT libltdl_la-ltdl.lo -MD -MP -MF .deps/libltdl_la-ltdl.Tpo -c ltdl.c -DDLL_EXPORT -DPIC -o .libs/libltdl_la-ltdl.o
ltdl.c: In function `lt_dlexit':
ltdl.c:286: warning: passing arg 1 of `lt_dlloader_remove' discards qualifiers from pointer target type
ltdl.c: At top level:
lt__private.h:121: warning: array 'lt__error_strings' assumed to have one element gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -DLTDLOPEN=libltdl -I.. -I.. -g -O2 -MT libltdl_la-ltdl.lo -MD -MP -MF .deps/libltdl_la-ltdl.Tpo -c ltdl.c -o libltdl_la-ltdl.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H="<config.h>" -DLTDL -I. -I. -I.. -DLTDLOPEN=libltdl -I.. -I.. -g -O2 -MT libltdl_la-lt_dlloader.lo -MD -MP -MF ".deps/libltdl_la-lt_dlloader.Tpo" -c -o libltdl_la-lt_dlloader.lo `test -f 'lt_dlloader.c' || echo './'`lt_dlloader.c; \ then mv -f ".deps/libltdl_la-lt_dlloader.Tpo" ".deps/libltdl_la-lt_dlloader.Plo"; else rm -f ".deps/libltdl_la-lt_dlloader.Tpo"; exit 1; fi gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -DLTDLOPEN=libltdl -I.. -I.. -g -O2 -MT libltdl_la-lt_dlloader.lo -MD -MP -MF .deps/libltdl_la-lt_dlloader.Tpo -c lt_dlloader.c -DDLL_EXPORT -DPIC -o .libs/libltdl_la-lt_dlloader.o lt__private.h:121: warning: array 'lt__error_strings' assumed to have one element gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -DLTDLOPEN=libltdl -I.. -I.. -g -O2 -MT libltdl_la-lt_dlloader.lo -MD -MP -MF .deps/libltdl_la-lt_dlloader.Tpo -c lt_dlloader.c -o libltdl_la-lt_dlloader.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H="<config.h>" -DLTDL -I. -I. -I.. -DLTDLOPEN=libltdl -I.. -I.. -g -O2 -MT libltdl_la-preopen.lo -MD -MP -MF ".deps/libltdl_la-preopen.Tpo" -c -o libltdl_la-preopen.lo `test -f 'loaders/preopen.c' || echo './'`loaders/preopen.c; \ then mv -f ".deps/libltdl_la-preopen.Tpo" ".deps/libltdl_la-preopen.Plo"; else rm -f ".deps/libltdl_la-preopen.Tpo"; exit 1; fi gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -DLTDLOPEN=libltdl -I.. -I.. -g -O2 -MT libltdl_la-preopen.lo -MD -MP -MF .deps/libltdl_la-preopen.Tpo -c loaders/preopen.c -DDLL_EXPORT -DPIC -o .libs/libltdl_la-preopen.o ./lt__private.h:121: warning: array 'lt__error_strings' assumed to have one element gcc "-DHAVE_CONFIG_H=<config.h>" -DLTDL -I. -I. -I.. -DLTDLOPEN=libltdl -I.. -I.. -g -O2 -MT libltdl_la-preopen.lo -MD -MP -MF .deps/libltdl_la-preopen.Tpo -c loaders/preopen.c -o libltdl_la-preopen.o >/dev/null 2>&1 /bin/sh ../libtool --mode=link --tag=CC gcc -g -O2 -no-undefined -o libltdl.la -rpath /usr/local/lib -version-info 6:0:0 -dlpreopen loaders/loadlibrary.la libltdl_la-ltdl.lo libltdl_la-lt_dlloader.lo libltdl_la-preopen.lo libdlloader.la libtool: link: cannot find the library `Documents/apps/mingw/src/libtool-1.9f/libltdl/libdlloader.la'
make[4]: *** [libltdl.la] Error 1
make[4]: Leaving directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f/libltdl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/Documents and Settings/stapleton.41/My Documents/apps/mingw/src/libtool-1.9f'
make: *** [all] Error 2
========================================




reply via email to

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