This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
setup.exe MD5 snapshot from 0504 compile error
- From: Pavel Tsekov <ptsekov at syntrex dot com>
- To: cygwin-apps at cygwin dot com
- Date: Sun, 5 May 2002 11:08:32 +0200
- Subject: setup.exe MD5 snapshot from 0504 compile error
- Organization: Syntrex, Inc.
- Reply-to: Pavel Tsekov <ptsekov at syntrex dot com>
The compilation breaks like this:
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_
STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"setup\" -DVERSION=\"0\" -DSTDC_
HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRI
NG_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -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 -g -O2 -c -o package_db.o `test -
f package_db.cc || echo './'`package_db.cc
package_db.cc: In method `int packagedb::flush()':
package_db.cc:132: `errno' undeclared (first use this function)
package_db.cc:132: (Each undeclared identifier is reported only once
package_db.cc:132: for each function it appears in.)
cc1plus.exe: warnings being treated as errors
package_db.cc:161: warning: control reaches end of non-void function `packagedb:
:flush()'
make[2]: *** [package_db.o] Error 1
make[2]: Leaving directory `/usr/src/setup-0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/setup-0'
make: *** [all] Error 2
This is because the #include <errno.h> is guarded by
#ifdef HAVE_ERRNO_H directive which is missing from the
g++ command line. I greped the config.log and there is
no indication that the configure script tries to detect the
presence of errno.h.