Here's what happens without the --host switch on my machine: % ./configure (snip) Now you must run 'make' followed by 'make install' % make make[1]: Entering directory `/tmp_mnt/auto/caedm/local/apache/htdig-3.1.0b2/db-2.4.14/dist' gcc -c -O -I. -I./../include ../btree/bt_close.c In file included from /usr/include/sys/types.h:15, from ../btree/bt_close.c:54: /usr/include/sys/stdsyms.h:244: #error "Large Files (ILP32) not supported in strict ANSI mode." make[1]: *** [bt_close.o] Error 1 make[1]: Leaving directory `/tmp_mnt/auto/caedm/local/apache/htdig-3.1.0b2/db-2.4.14/dist' make: *** [all] Error 1 I have attached config.log as a mime attachment. By the way, another interesting thing. The file that caused the error was in the db-2.4.14 directory (it looks like the database package was written by a different author.) When I directly run the ../dist/configure from within the db-2.4.14/build.unix directory, followed by a make in the same spot, there is no error. After running this configure; make, I tried to run the htdig-3.1.0b2/make, but it still gives the same error I have also attached the db-2.4.14 config.log, so you can see where are the differences. Gordon Vadim Chekan wrote: > > -----Original Message----- > From: Gordon Hopper <[EMAIL PROTECTED]> > To: Defranould <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Date: 10 грудня 1998 р. 19:42 > Subject: Re: htdig: Configuration with HP > > >I had a similar problem with HP-UX 10.20 (hppa1.1, gcc/g++ version > >2.7.2.3). It looks like there is something wrong with the configure > >script (my error actually occured during the make). It compiled ok when > >I did: > > > >./configure --host=POSIX.2 > > > >I'm not enough of a guru to tell you _why_ this worked, but I think that > >the configure script incorrectly auto-detects something about HPUX. > > > > Can you post your config.log? > > Vadim Chekan.
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:553: checking for a BSD compatible install configure:606: checking whether build environment is sane configure:663: checking whether make sets ${MAKE} configure:709: checking for working aclocal configure:722: checking for working autoconf configure:735: checking for working automake configure:748: checking for working autoheader configure:761: checking for working makeinfo configure:786: checking for gcc configure:863: checking whether the C compiler (gcc ) works configure:877: gcc -o conftest conftest.c 1>&5 configure:897: checking whether the C compiler (gcc ) is a cross-compiler configure:902: checking whether we are using GNU C configure:911: gcc -E conftest.c configure:926: checking whether gcc accepts -g configure:958: checking for c++ configure:989: checking whether the C++ compiler (c++ ) works configure:1003: c++ -o conftest conftest.C 1>&5 configure:1029: checking whether the C++ compiler (c++ ) is a cross-compiler configure:1034: checking whether we are using GNU C++ configure:1043: c++ -E conftest.C configure:1058: checking whether c++ accepts -g configure:1088: checking for ranlib configure:1117: checking for ar configure:1149: checking for sh configure:1181: checking for sed configure:1213: checking for sort configure:1245: checking for find configure:1277: checking for gunzip configure:1311: checking for tar configure:1343: checking for acroread configure:1375: checking for sendmail configure:1406: checking how to run the C preprocessor configure:1427: gcc -E conftest.c >/dev/null 2>conftest.out configure:1467: checking for AIX configure:1492: checking for socket in -lsocket configure:1511: gcc -o conftest -g -O2 conftest.c -lsocket 1>&5 collect2: ld returned 1 exit status /bin/ld: Can't find library for -lsocket configure: failed program was: #line 1500 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char socket(); int main() { socket() ; return 0; } configure:1532: checking for t_accept in -lnsl configure:1551: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5 collect2: ld returned 1 exit status /bin/ld: Can't find library for -lnsl configure: failed program was: #line 1540 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char t_accept(); int main() { t_accept() ; return 0; } configure:1574: checking for ANSI C header files configure:1587: gcc -E conftest.c >/dev/null 2>conftest.out configure:1654: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1678: checking whether time.h and sys/time.h may both be included configure:1692: gcc -c -g -O2 conftest.c 1>&5 configure:1721: checking how to run the C++ preprocessor configure:1739: c++ -E conftest.C >/dev/null 2>conftest.out configure:1761: checking for fcntl.h configure:1771: c++ -E conftest.C >/dev/null 2>conftest.out configure:1761: checking for limits.h configure:1771: c++ -E conftest.C >/dev/null 2>conftest.out configure:1761: checking for malloc.h configure:1771: c++ -E conftest.C >/dev/null 2>conftest.out configure:1761: checking for sys/file.h configure:1771: c++ -E conftest.C >/dev/null 2>conftest.out configure:1761: checking for sys/ioctl.h configure:1771: c++ -E conftest.C >/dev/null 2>conftest.out configure:1761: checking for sys/time.h configure:1771: c++ -E conftest.C >/dev/null 2>conftest.out configure:1761: checking for unistd.h configure:1771: c++ -E conftest.C >/dev/null 2>conftest.out configure:1799: checking for fstream.h configure:1809: c++ -E conftest.C >/dev/null 2>conftest.out configure:1843: checking for working const configure:1897: gcc -c -g -O2 conftest.c 1>&5 configure:1918: checking whether struct tm is in sys/time.h or time.h configure:1931: gcc -c -g -O2 conftest.c 1>&5 configure:1955: checking for strdup configure:1983: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1955: checking for strerror configure:1983: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1955: checking for strstr configure:1983: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2010: checking for localtime_r configure:2038: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2063: checking for timegm configure:2091: gcc -o conftest -g -O2 conftest.c 1>&5 collect2: ld returned 1 exit status /bin/ld: Unsatisfied symbols: timegm (code) configure: failed program was: #line 2068 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char timegm(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char timegm(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_timegm) || defined (__stub___timegm) choke me #else timegm(); #endif ; return 0; } configure:2112: checking whether we need gethostname() prototype? configure:2132: gcc -c -g -O2 conftest.c 1>&5 configure:2126: parse error before string constant configure: failed program was: #line 2114 "configure" #include "confdefs.h" #include <unistd.h> #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/ioctl.h> #include <sys/uio.h> #include <sys/file.h> #include <fcntl.h> #include <netdb.h> #include <stdlib.h> extern "C" int gethostname(char *, int); int main() { gethostname("sdsu.edu", (int) 8); ; return 0; } configure:2162: checking for tsort
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:568: checking for a BSD compatible install configure:624: checking host system type configure:688: checking if --enable-debug option specified configure:712: checking for gcc configure:789: checking whether the C compiler (gcc -O ) works configure:803: gcc -o conftest -O conftest.c 1>&5 configure:823: checking whether the C compiler (gcc -O ) is a cross-compiler configure:828: checking whether we are using GNU C configure:852: checking whether gcc accepts -g configure:881: checking if --enable-diagnostic option specified configure:899: checking if --enable-cxx option specified configure:1053: checking if --enable-compat185 option specified configure:1069: checking if --enable-dump185 option specified configure:1086: checking for ar configure:1121: checking for chmod configure:1156: checking for cp configure:1191: checking for mkdir configure:1226: checking for ranlib configure:1258: checking for rm configure:1293: checking for sh configure:1328: checking for strip configure:1362: checking how to run the C preprocessor configure:1423: checking for ANSI C header files configure:1527: checking for ssize_t configure:1560: checking whether byte ordering is bigendian configure:1578: gcc -c -O conftest.c 1>&5 configure: In function `main': configure:1573: `bogus' undeclared (first use this function) configure:1573: (Each undeclared identifier is reported only once configure:1573: for each function it appears in.) configure:1573: parse error before `endian' configure: failed program was: #line 1567 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/param.h> int main() { #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN bogus endian macros #endif ; return 0; } configure:1626: gcc -o conftest -O conftest.c 1>&5 configure: failed program was: #line 1613 "configure" #include "confdefs.h" main () { /* Are we little or big endian? From Harbison&Steele. */ union { long l; char c[sizeof (long)]; } u; u.l = 1; exit (u.c[sizeof (long) - 1] == 1); } configure:1650: checking for working const configure:1725: checking for st_blksize in struct stat configure:1738: gcc -c -O conftest.c 1>&5 configure:1759: checking whether stat file-mode macros are broken configure:1815: checking for mode_t configure:1848: checking for off_t configure:1881: checking for pid_t configure:1914: checking for size_t configure:1952: checking for dirent.h that defines DIR configure:1965: gcc -c -O conftest.c 1>&5 configure:1990: checking for opendir in -ldir configure:2009: gcc -o conftest -O conftest.c -ldir 1>&5 collect2: ld returned 1 exit status /bin/ld: Can't find library for -ldir configure: failed program was: #line 1998 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char opendir(); int main() { opendir() ; return 0; } configure:2076: checking for sys/select.h configure:2086: gcc -E conftest.c >/dev/null 2>conftest.out configure:2082: sys/select.h: No such file or directory configure: failed program was: #line 2081 "configure" #include "confdefs.h" #include <sys/select.h> configure:2116: checking for sys/time.h configure:2156: checking for getcwd configure:2184: gcc -o conftest -O conftest.c 1>&5 configure:2156: checking for getopt configure:2184: gcc -o conftest -O conftest.c 1>&5 configure:2156: checking for memcmp configure:2184: gcc -o conftest -O conftest.c 1>&5 configure:2168: warning: conflicting types for built-in function `memcmp' configure:2156: checking for memcpy configure:2184: gcc -o conftest -O conftest.c 1>&5 configure:2168: warning: conflicting types for built-in function `memcpy' configure:2156: checking for memmove configure:2184: gcc -o conftest -O conftest.c 1>&5 configure:2213: checking for raise configure:2241: gcc -o conftest -O conftest.c 1>&5 configure:2213: checking for snprintf configure:2241: gcc -o conftest -O conftest.c 1>&5 configure:2213: checking for strerror configure:2213: checking for strsep configure:2241: gcc -o conftest -O conftest.c 1>&5 collect2: ld returned 1 exit status /bin/ld: Unsatisfied symbols: strsep (code) configure: failed program was: #line 2218 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strsep(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strsep(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strsep) || defined (__stub___strsep) choke me #else strsep(); #endif ; return 0; } configure:2213: checking for vsnprintf configure:2241: gcc -o conftest -O conftest.c 1>&5 configure:2385: checking for munmap configure:2413: gcc -o conftest -O conftest.c 1>&5 configure:2430: checking for mmap configure:2458: gcc -o conftest -O conftest.c 1>&5 configure:2490: checking for getuid configure:2518: gcc -o conftest -O conftest.c 1>&5 configure:2490: checking for select configure:2518: gcc -o conftest -O conftest.c 1>&5 configure:2490: checking for sysconf configure:2518: gcc -o conftest -O conftest.c 1>&5 configure:2551: checking for sigfillset configure:2563: gcc -o conftest -O conftest.c 1>&5 configure:2584: checking for int type sprintf return value configure:2596: gcc -o conftest -O conftest.c 1>&5 configure:2619: checking if --disable-bigfile option specified configure:2641: checking for spinlocks configure:2665: gcc -o conftest -O conftest.c 1>&5 configure:3092: checking for u_char configure:3104: gcc -c -O conftest.c 1>&5 configure:3123: checking for u_short configure:3135: gcc -c -O conftest.c 1>&5 configure:3154: checking for u_int configure:3166: gcc -c -O conftest.c 1>&5 configure:3185: checking for u_long configure:3197: gcc -c -O conftest.c 1>&5 configure:3216: checking for u_int8_t configure:3228: gcc -c -O conftest.c 1>&5 configure: In function `main': configure:3224: `u_int8_t' undeclared (first use this function) configure:3224: (Each undeclared identifier is reported only once configure:3224: for each function it appears in.) configure:3224: parse error before `foo' configure: failed program was: #line 3221 "configure" #include "confdefs.h" #include <sys/types.h> int main() { u_int8_t foo; ; return 0; } configure:3243: gcc -o conftest -O conftest.c 1>&5 configure:3269: checking for u_int16_t configure:3281: gcc -c -O conftest.c 1>&5 configure: In function `main': configure:3277: `u_int16_t' undeclared (first use this function) configure:3277: (Each undeclared identifier is reported only once configure:3277: for each function it appears in.) configure:3277: parse error before `foo' configure: failed program was: #line 3274 "configure" #include "confdefs.h" #include <sys/types.h> int main() { u_int16_t foo; ; return 0; } configure:3296: gcc -o conftest -O conftest.c 1>&5 configure:3341: checking for int16_t configure:3353: gcc -c -O conftest.c 1>&5 configure:3413: checking for u_int32_t configure:3425: gcc -c -O conftest.c 1>&5 configure: In function `main': configure:3421: `u_int32_t' undeclared (first use this function) configure:3421: (Each undeclared identifier is reported only once configure:3421: for each function it appears in.) configure:3421: parse error before `foo' configure: failed program was: #line 3418 "configure" #include "confdefs.h" #include <sys/types.h> int main() { u_int32_t foo; ; return 0; } configure:3440: gcc -o conftest -O conftest.c 1>&5 configure:3485: checking for int32_t configure:3497: gcc -c -O conftest.c 1>&5 configure:3556: checking if --enable-test option specified