Error in libgetopt++ from the setup build directory [WAS: Re: Error in configuring setup.]
Earnie Boyd
earnie_boyd@yahoo.com
Wed May 1 13:59:00 GMT 2002
Earnie Boyd wrote:
>
> Upon Robert's insistance I've installed the autotools. :( Now after
> about 10 iterations of aclocal, libtoolize, autoconf I:
>
> mkdir bld
> cd bld
> ../configure
>
> And toward the configure ends with:
>
> configure: configuring in libgetopt++
> configure: running /bin/sh ../cfgaux/configure 'CFLAGS=-O0 -g'
> 'CXXFLAGS=-O0 -g' --cache-file=/dev/null --srcdir=../../libgetopt++
> ../cfgaux/configure: Can't open ../cfgaux/configure: No such file or
> directory
> configure: error: /bin/sh ../cfgaux/configure failed for libgetopt++
> sed: can't read confdefs.h: No such file or directory
>
Ok, I finally found the bootstrap.sh files in setup/ and
setup/libgetopt++ directories and executed them. I successfully
configured. However now from the build process for libgetopt++ I get:
g++ -DPACKAGE=\"setup\" -DVERSION=\"0\" -DHAVE_DLFCN_H=1
-DHAVE_ALLOCA_H=1 -I. -I.. -I../bz2lib -I../libgetopt++/include
-Werror -Winline -Wall -Wpointer-arith -Wcast-align -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wcomments -O0 -g -c -o desktop.o `test -f ../desktop.cc || echo
'../'`../desktop.cc
In file included from ../libgetopt++/include/getopt++/BoolOption.h:19,
from ../desktop.cc:54:
../libgetopt++/include/getopt++/Option.h:25: #error "<string> required"
make[2]: *** [desktop.o] Error 1
make[2]: Leaving directory `/prjz/cygwin/rt/src/cygwin-apps/setup/bld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/prjz/cygwin/rt/src/cygwin-apps/setup/bld'
make: *** [all] Error 2
It appears that the configure process missed setting HAVE_STRING.
Earnie.
More information about the Cygwin-apps
mailing list