This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
RE: setup.exe MD5 snapshot from 0504 compile error
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- To: "Pavel Tsekov" <ptsekov at syntrex dot com>,<cygwin-apps at cygwin dot com>
- Date: Sun, 5 May 2002 19:17:35 +1000
- Subject: RE: setup.exe MD5 snapshot from 0504 compile error
Yep, that was corrected in my last checkin - about 3 hours ago :}.
It should build correctly now if you update.
Rob
> -----Original Message-----
> From: Pavel Tsekov [mailto:ptsekov@syntrex.com]
> Sent: Sunday, May 05, 2002 7:09 PM
> To: cygwin-apps@cygwin.com
> Subject: setup.exe MD5 snapshot from 0504 compile error
>
>
> The compilation breaks like this:
>
> g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
> g++ -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.
>
>