Hello, I have recently updated my system, so now I have new versions of the Autotools:
autoconf 2.64-2 automake 1:1.11-1 libtool 2.2.6a-4 I have a simple testcase where libtool fails to do the linking of a tiny executable, here is the process: $ ls configure.ac Makefile.am test1.c $ autoreconf -vfi autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: running: /usr/bin/autoconf --force autoreconf: configure.ac: not using Autoheader autoreconf: running: automake --add-missing --copy --force-missing autoreconf: Leaving directory `.' $ mkdir build && cd build $ ../configure [...] skipped configure output $ ls config.log config.status libtool Makefile $ make gcc -DPACKAGE_NAME=\"test1\" -DPACKAGE_TARNAME=\"test1\" - DPACKAGE_VERSION=\"0.9.0\" -DPACKAGE_STRING=\"test1\ 0.9.0\" - DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"test1\" - DVERSION=\"0.9.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 - DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 - DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 - DLT_OBJDIR=\".libs/\" -I. -I.. -g -O2 -MT test1.o -MD -MP -MF .deps/test1.Tpo -c -o test1.o ../test1.c mv -f .deps/test1.Tpo .deps/test1.Po /bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -o test1 test1.o ./libtool: line 827: X--tag=CC: command not found ./libtool: line 860: libtool: ignoring unknown tag : command not found ./libtool: line 827: X--mode=link: command not found ./libtool: line 994: *** Warning: inferring the mode of operation is deprecated.: command not found ./libtool: line 995: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ./libtool: line 2239: X-g: command not found ./libtool: line 2239: X-O2: command not found ./libtool: line 2408: Xtest1: command not found X: user not authorized to run the X server, aborting. ./libtool: line 2420: Xtest1: command not found ./libtool: line 2428: mkdir /.libs: No such file or directory mkdir: cannot create directory `/.libs': Permission denied make: *** [test1] Error 1 I have searched on the web and it seems that the problem is a mismatch with the libtool templates. However, I haven't been able to find any outdated template on my system: $ cd .. $ aclocal --verbose 2>&1 | grep AC_PROG_LIBTOOL aclocal: found macro _AC_PROG_LIBTOOL in /usr/share/aclocal/lt~obsolete.m4: 71 aclocal: found macro AC_PROG_LIBTOOL in /usr/share/aclocal/libtool.m4: 102 $ dpkg -S /usr/share/aclocal/lt~obsolete.m4 libtool: /usr/share/aclocal/lt~obsolete.m4 $ dpkg -S /usr/share/aclocal/libtool.m4 libtool: /usr/share/aclocal/libtool.m4 How can I keep trying to know what is happening? I'm attaching the small testcase. Thank you, Alberto
AC_INIT([test1], [0.9.0]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_LIBTOOL AC_CONFIG_FILES([Makefile]) AC_OUTPUT
bin_PROGRAMS = test1 test1_SOURCES = test1.c
#include <stdio.h> int main() { printf("works!\n"); return 0; }
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool