bug-gnulib
[Top][All Lists]
Advanced

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

Re: C++ libtool build error?


From: Simon Josefsson
Subject: Re: C++ libtool build error?
Date: Tue, 09 Mar 2010 09:02:56 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Bruno Haible <address@hidden> writes:

>> 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:

That works fine for me as well.

> 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.

No, I have version '2.2.6b' from debian.

I noticed one thing: if I add AC_PROG_CXX to libidn/configure.ac
everything works.  So I believe this is a bug in gnulib, it is adding
C++ files to my project so it should make sure that a C++ compiler is
available.  I see the ansi-c++-opt module, maybe it is missing some
libtool magic?

/Simon




reply via email to

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