Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps AT cygwin DOT com Delivered-To: mailing list cygwin-apps AT cygwin DOT com Date: Sun, 5 May 2002 11:08:32 +0200 From: Pavel Tsekov Reply-To: Pavel Tsekov Organization: Syntrex, Inc. X-Priority: 3 (Normal) Message-ID: <1902258447.20020505110832@syntrex.com> To: cygwin-apps AT cygwin DOT com Subject: setup.exe MD5 snapshot from 0504 compile error MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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.