This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: libtool error while building setup as a Cygwin app
Igor Pechtchanski wrote:
>>> I was attempting to build setup as a Cygwin app. I gave the
>>> following configure command:
>>>
>>> /usr/src/setup-cvs/setup/configure -C --enable-dependencies
>>> --disable-shared --enable-maintainer-mode
>>> and then did "make". Make failed with the following error:
>>>
>>> Making all in libgetopt++
>>> make[2]: Entering directory
>>> `/usr/src/setup-cvs/build-cygwin/libgetopt++'
>>> if /bin/bash ./libtool --mode=compile g++ -DHAVE_CONFIG_H -I.
>>> -I/usr/src/setup-cvs/setup/libgetopt++ -I./include
>>> -I/usr/src/setup-cvs/setup/libgetopt++/include -g -O2 -MT
>>> src/GetOption.lo -MD -MP -MF "src/.deps/GetOption.Tpo" \
>>> -c -o src/GetOption.lo `test -f 'src/GetOption.cc' || echo
>>> '/usr/src/setup-cvs/setup/libgetopt++/'`src/GetOption.cc; \
>>> then mv "src/.deps/GetOption.Tpo" "src/.deps/GetOption.Plo"; \
>>> else rm -f "src/.deps/GetOption.Tpo"; exit 1; \
>>> fi
>>> libtool: compile: unable to infer tagged configuration
>>> libtool: compile: specify a tag with `--tag'
>>> make[2]: *** [src/GetOption.lo] Error 1
>>> make[2]: Leaving directory
>>> `/usr/src/setup-cvs/build-cygwin/libgetopt++'
>>>
>>> I'm using
>>>
>>> $ cygcheck -c cygwin gcc libtool libtool-devel
>>> Cygwin Package Information
>>> Package Version
>>> cygwin 1.3.20-1
>>> gcc 3.2-3
>>> libtool 20020705-1
>>> libtool-devel 20030103-1
> Hmm, this *was* from a clean source tree, in a separate build
> directory...
> A workaround I found on the 'net is to append "--tag=CC" to the value
> of $(LIBTOOL) in the Makefiles, and this allowed the build to
> proceed. I'm
> afraid this is an ugly hack, though. Could it be that my versions of
> autoconf/automake are old?
>
> $ cygcheck -c autoconf autoconf-devel autoconf-stable automake
> automake-devel automake-stable
> Cygwin Package Information
> Package Version
> autoconf 2.54-1
> autoconf-devel 2.57-1
> autoconf-stable 2.13-4
> automake 1.7.1-1
> automake-devel 1.7.2-1
> automake-stable 1.4p5-5
Me too. Those are the [curr] versions.
I'm really confused what could be causing this.
Max.