[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ libtool build error?
From: |
Bruno Haible |
Subject: |
Re: C++ libtool build error? |
Date: |
Tue, 9 Mar 2010 00:17:19 +0100 |
User-agent: |
KMail/1.9.9 |
Hi Simon,
> Recently gnulib added some self-tests written in C++ for otherwise
> C-only modules. When imported into libidn (otherwise a strictly C
> library), this leads to an error message:
>
> /bin/bash ../libtool --preserve-dup-deps --mode=link g++ -o
> test-fcntl-h-c++ test-fcntl-h-c++.o libtests.a ../gl/libgnu.la libtests.a
> libtool: link: unable to infer tagged configuration
> libtool: link: specify a tag with `--tag'
> make[4]: *** [test-fcntl-h-c++] Error 1
> make[4]: Leaving directory `/home/jas/src/libidn/gltests'
Hmm. When I do
$ ./gnulib-tool --create-testdir --dir=/tmp/testdir --with-tests --libtool
fcntl-h
and configure and build that testdir, everything works fine, including these
commands:
...
g++ -DHAVE_CONFIG_H -I. -I. -I. -I.. -I./.. -I../gllib -I./../gllib -MT
test-fcntl-h-c++.o -MD -MP -MF .deps/test-fcntl-h-c++.Tpo -c -o
test-fcntl-h-c++.o test-fcntl-h-c++.cc
mv -f .deps/test-fcntl-h-c++.Tpo .deps/test-fcntl-h-c++.Po
/bin/sh ./libtool --mode=link g++ -o test-fcntl-h-c++ test-fcntl-h-c++.o
../gllib/libgnu.la
libtool: link: g++ -o test-fcntl-h-c++ test-fcntl-h-c++.o
../gllib/.libs/libgnu.a
...
This is for both --disable-shared and --enable-shared, with or without
--preserve-dup-deps. So I guess you have an older version of libtool?
The version that works for me is 2.2.6.
Or maybe you have other options as part of the LT_INIT invocation in
configure.ac?
Bruno
- C++ libtool build error?, Simon Josefsson, 2010/03/08
- Re: C++ libtool build error?,
Bruno Haible <=
- Re: C++ libtool build error?, Ludovic Courtès, 2010/03/11
- Re: C++ libtool build error?, Bruno Haible, 2010/03/12
- Re: [bug-libunistring] Re: C++ libtool build error?, Simon Josefsson, 2010/03/12
- Re: C++ libtool build error?, Bruno Haible, 2010/03/13
- Re: C++ libtool build error?, Bruno Haible, 2010/03/13
- Re: C++ libtool build error?, Jim Meyering, 2010/03/13
- Re: C++ libtool build error?, Bruno Haible, 2010/03/13