bug-libtool
[Top][All Lists]
Advanced

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

config.status (or something) writes out a crippled libtool script


From: Peter Ekberg
Subject: config.status (or something) writes out a crippled libtool script
Date: Wed, 24 Aug 2005 15:40:42 +0200

Hi!

Something is very broken on cvs HEAD, at least for me.

I have autoconf and automake from cvs as of yesterday after the
mail by Ralf saying that you need bleeding edge.

This is what I try to do, exactly:

1. Using Cygwin
2. Get a clean cvs copy.
3. do a s,/@/,/, on doc/libtool.texi, don't know what's up with my
makeinfo...
4. ./bootstrap
5. Switch to MinGW
6. mkdir mingw
7. cd mingw
8. ../configure

## ------------------------------------------------------------ ##
## Configuring libtool (Build: 1.2031 2005/08/24 11:13:18) 2.1a ##
## ------------------------------------------------------------ ##

checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
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... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/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- or MS-compatible name lister (nm)... /mingw/bin/nm
checking the name lister (/mingw/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
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... yes
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 strlcat... no
checking for strlcpy... no
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 gfortran... no
checking for g95... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for g77... g77
checking whether we are using the GNU Fortran 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... no
checking for windres... windres
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing tests/atconfig commands
config.status: executing depfiles commands
config.status: executing libtool commands

9. ls -l libtool
-rwxr-xr-x    1 peda     Administ   242626 Aug 24 15:23 libtool

        Here, the libtool script seems fine.

10. make
set dummy `/bin/sh ../libltdl/config/mkstamp < ../ChangeLog`; shift;
case 2.1a in *[acegikmoqsuwy]) TIMESTAMP=" $1 $2 $3" ;; *) TIMESTAMP=""
;; esac; \
cd ..; \
rm -f libltdl/config/ltmain.in libltdl/config/ltmain.tmp \
    libltdl/config/ltmain.sh; \
autom4te --language=m4sh -B libltdl/config libltdl/config/ltmain.m4sh \
    > libltdl/config/ltmain.in; \
input="ltmain.m4sh"; \
sed -e 's,@EGREP\@,/bin/grep -E,g' -e 's,@FGREP\@,/bin/grep -F,g' -e
's,@GREP\@,/bin/grep,g' -e 's,@LN_S\@,ln -s,g' -e
's,@MACRO_VERSION\@,2.1a,g' -e 's,@PACKAGE\@,libtool,g' -e
's,@PACKAGE_BUGREPORT\@,address@hidden,g' -e
's,@PACKAGE_NAME\@,libtool,g' -e 's,@PACKAGE_STRING\@,libtool 2.1a,g' -e
's,@PACKAGE_TARNAME\@,libtool,g' -e 's,@PACKAGE_VERSION\@,2.1a,g' -e
's,@SED\@,/bin/sed,g' -e 's,@VERSION\@,2.1a,g' -e
's,@aclocaldir\@,/usr/local/share/aclocal,g' -e
's,@datadir\@,/usr/local/share,g' -e
's,@pkgdatadir\@,/usr/local/share/libtool,g' -e
's,@host_triplet\@,i686-pc-mingw32,g' -e 's,@prefix\@,/usr/local,g' -e
"s,@configure_input\@,Generated from $input; do not edit by hand,g" -e
"s,@TIMESTAMP\@,$TIMESTAMP,g" \
        -e "s,@package_revision\@,$1,g" \
        libltdl/config/ltmain.in > libltdl/config/ltmain.tmp; \
rm -f libltdl/config/ltmain.in; \
chmod a-w libltdl/config/ltmain.tmp; \
mv -f libltdl/config/ltmain.tmp libltdl/config/ltmain.sh
/bin/sh: autom4te: command not found
cd . && /bin/sh ./config.status libtool
config.status: executing libtool commands
cp ../libltdl/argz_.h libltdl/argz.h-t
mv libltdl/argz.h-t libltdl/argz.h
make  all-recursive
make[1]: Entering directory
`/c/cygwin/home/peda/libtool/head2/libtool/mingw'
make[2]: Entering directory
`/c/cygwin/home/peda/libtool/head2/libtool/mingw'
test -f doc/.dirstamp || make  doc/.dirstamp
make[3]: Entering directory
`/c/cygwin/home/peda/libtool/head2/libtool/mingw'
make[3]: Leaving directory
`/c/cygwin/home/peda/libtool/head2/libtool/mingw'
Updating ../doc/version.texi
restore=: && backupdir=".am$$" && \
am__cwd=`pwd` && cd .. && \
rm -rf $backupdir && mkdir $backupdir && \
if (/bin/sh
/c/cygwin/home/peda/libtool/head2/libtool/libltdl/config/missing --run
makeinfo --version) >/dev/null 2>&1; then \
  for f in ../doc/libtool.info ../doc/libtool.info-[0-9]
../doc/libtool.info-[0-9][0-9] ../doc/libtool.i[0-9]
../doc/libtool.i[0-9][0-9]; do \
    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
  done; \
else :; fi && \
cd "$am__cwd"; \
if /bin/sh
/c/cygwin/home/peda/libtool/head2/libtool/libltdl/config/missing --run
makeinfo   -I doc -I ../doc \
 -o ../doc/libtool.info ../doc/libtool.texi; \
then \
  rc=0; \
  cd ..; \
else \
  rc=$?; \
  cd .. && \
  $restore $backupdir/* `echo "./../doc/libtool.info" | sed
's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
if /bin/sh ./libtool --tag=CC   --mode=compile gcc
-DHAVE_CONFIG_H="<config.h>" -DLTDL -I. -I.. -I.  -DLTDLOPEN=libltdl -I.
-I.. -Ilibltdl -I../libltdl -I../libltdl/libltdl   -g -O2 -MT
libltdl/loaders/libltdl_libltdl_la-preopen.lo -MD -MP -MF
"libltdl/loaders/.deps/libltdl_libltdl_la-preopen.Tpo" -c -o
libltdl/loaders/libltdl_libltdl_la-preopen.lo `test -f
'libltdl/loaders/preopen.c' || echo '../'`libltdl/loaders/preopen.c; \
then mv -f "libltdl/loaders/.deps/libltdl_libltdl_la-preopen.Tpo"
"libltdl/loaders/.deps/libltdl_libltdl_la-preopen.Plo"; else rm -f
"libltdl/loaders/.deps/libltdl_libltdl_la-preopen.Tpo"; exit 1; fi
mv: cannot stat `libltdl/loaders/.deps/libltdl_libltdl_la-preopen.Tpo':
No such file or directory
make[2]: *** [libltdl/loaders/libltdl_libltdl_la-preopen.lo] Error 1
make[2]: Leaving directory
`/c/cygwin/home/peda/libtool/head2/libtool/mingw'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/c/cygwin/home/peda/libtool/head2/libtool/mingw'
make: *** [all] Error 2

11. ls -l libtool
-rwxr-xr-x    1 peda     Administ    35924 Aug 24 15:23 libtool

        This libtool script is way too small, I've attached it.
        The broken libtool script is also the cause of the failure.

12. cd ..
13. mkdir mingw2
14. cd mingw2
15. ../configure

## ------------------------------------------------------------ ##
## Configuring libtool (Build: 1.2031 2005/08/24 11:13:18) 2.1a ##
## ------------------------------------------------------------ ##

checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
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... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/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- or MS-compatible name lister (nm)... /mingw/bin/nm
checking the name lister (/mingw/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
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... yes
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 strlcat... no
checking for strlcpy... no
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 gfortran... no
checking for g95... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for g77... g77
checking whether we are using the GNU Fortran 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... no
checking for windres... windres
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing tests/atconfig commands
config.status: executing depfiles commands
config.status: executing libtool commands

16. ls -l libtool
-rwxr-xr-x    1 peda     Administ    35924 Aug 24 15:29 libtool
17. diff libtool ../mingw/libtool

        No difference. So this second configure fails to produce
        a working configure.


PS. Should not Makefile.am be added to libltdl/Makefile.am?

Cheers,
Peter

Attachment: libtool
Description: libtool


reply via email to

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