From: Patrick K. <pat...@uc...> - 2003-04-16 19:21:16
|
I am trying to install htdig 3.1.6 on Solaris 2.6 using gcc 3.1. The first problem I ran into was during ./configuration, at the part where it checking for fstream.h it returned a configuration error telling me to install libstdc++ (which is installed). There are several suggestions relating to that problem in the archives. The one that got me thru the ./configuration step was to set environmental variables (sh shell) as follows: CXXFLAGS="-Wno-deprecated" CPPFLAGS="-Wno-deprecated" export CPPFLAGS CXXFLAGS ./configuration completed after that, but 'make' failed as follows: (I deleted the first few dozon lines) gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../txn/txn.c gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../txn/txn_auto.c gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../txn/txn_rec.c gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../xa/xa.c gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../xa/xa_db.c gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../xa/xa_map.c gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../clib/strsep.c /usr/bin/rm -f libdb.a /usr/ccs/bin/ar cr libdb.a bt_compare.o bt_conv.o bt_curadj.o bt_cursor.o bt_delete.o bt_open.o bt_page.o bt_put.o bt_rec.o bt_recno.o bt_rsearch.o bt_search.o bt_split.o bt_stat.o btree_auto.o db.o db_appinit.o db_am.o db_apprec.o db_auto.o db_byteorder.o db_conv.o db_dispatch.o db_dup.o db_err.o db_iface.o db_join.o db_log2.o db_overflow.o db_pr.o db_rec.o db_region.o db_ret.o db_salloc.o db_shash.o dbm.o hash.o hash_auto.o hash_conv.o hash_dup.o hash_func.o hash_page.o has h_rec.o hash_stat.o hsearch.o lock.o lock_conflict.o lock_deadlock.o lock_util.o lock_region.o log.o log_archive.o log_auto.o log_compare.o log_findckp.o log_ge t.o log_put.o log_rec.o log_register.o mp_bh.o mp_fget.o mp_fopen.o mp_fput.o mp_fset.o mp_open.o mp_pr.o mp_region.o mp_sync.o mutex.o os_abs.o os_alloc.o os_c onfig.o os_dir.o os_fid.o os_fsync.o os_map.o os_oflags.o os_open.o os_rpath.o os_rw.o os_seek.o os_sleep.o os_spin.o os_stat.o os_tmpdir.o os_unlink.o txn.o tx n_auto.o txn_rec.o xa.o xa_db.o xa_map.o strsep.o test ! -f /usr/ccs/bin/ranlib || /usr/ccs/bin/ranlib libdb.a gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../db_archive/db_archive.c gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../clib/err.c gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../clib/getlong.c gcc -o db_archive db_archive.o err.o getlong.o libdb.a -lthread gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../db_checkpoint/db_checkpoint.c gcc -o db_checkpoint db_checkpoint.o err.o getlong.o libdb.a -lthread gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../db_deadlock/db_deadlock.c gcc -o db_deadlock db_deadlock.o err.o getlong.o libdb.a -lthread gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../db_dump/db_dump.c gcc -o db_dump db_dump.o err.o getlong.o libdb.a -lthread gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../db_load/db_load.c gcc -o db_load db_load.o err.o getlong.o libdb.a -lthread gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../db_printlog/db_printlog.c gcc -o db_printlog db_printlog.o err.o getlong.o libdb.a -lthread gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../db_recover/db_recover.c gcc -o db_recover db_recover.o err.o getlong.o libdb.a -lthread gcc -c -O -I. -I./../include -D_REENTRANT -Wno-deprecated ../db_stat/db_stat.c gcc -o db_stat db_stat.o err.o getlong.o libdb.a -lthread make[1]: Leaving directory `/opt/htdig-3.1.6/db/dist' make[1]: Entering directory `/opt/htdig-3.1.6/htlib' c++ -c -DDEFAULT_CONFIG_FILE=\"/opt/htdig/conf/htdig.conf\" -I../htlib -I../htcommon -I../db/dist -I../include -Wno-deprecated Configuration.cc c++ -c -DDEFAULT_CONFIG_FILE=\"/opt/htdig/conf/htdig.conf\" -I../htlib -I../htcommon -I../db/dist -I../include -Wno-deprecated Connection.cc Connection.cc: In member function `int Connection::connect(int)': Connection.cc:298: `sleep' undeclared (first use this function) Connection.cc:298: (Each undeclared identifier is reported only once for each function it appears in.) make[1]: *** [Connection.o] Error 1 make[1]: Leaving directory `/opt/htdig-3.1.6/htlib' make: *** [all] Error 1 I am a dummy at reading config.log, but here it is..... This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:580: checking for a BSD compatible install configure:636: checking whether build environment is sane configure:693: checking whether make sets ${MAKE} configure:739: checking for working aclocal configure:752: checking for working autoconf configure:765: checking for working automake configure:778: checking for working autoheader configure:791: checking for working makeinfo configure:944: checking for gcc configure:1057: checking whether the C compiler (gcc ) works configure:1073: gcc -o conftest -Wno-deprecated conftest.c 1>&5 configure:1099: checking whether the C compiler (gcc ) is a cross-compiler configure:1104: checking whether we are using GNU C configure:1113: gcc -E conftest.c configure:1132: checking whether gcc accepts -g configure:1168: checking for c++ configure:1200: checking whether the C++ compiler (c++ -Wno-deprecated ) works configure:1216: c++ -o conftest -Wno-deprecated -Wno-deprecated conftest.C 1>&5 configure:1242: checking whether the C++ compiler (c++ -Wno-deprecated ) is a cross-compiler configure:1247: checking whether we are using GNU C++ configure:1256: c++ -E conftest.C configure:1275: checking whether c++ accepts -g configure:1309: checking for ranlib configure:1339: checking for ar configure:1375: checking for sh configure:1411: checking for sed configure:1447: checking for sort configure:1483: checking for find configure:1519: checking for gunzip configure:1557: checking for tar configure:1590: checking for acroread configure:1626: checking for sendmail configure:1661: checking how to run the C preprocessor configure:1682: gcc -E -Wno-deprecated conftest.c >/dev/null 2>conftest.out configure:1741: checking for AIX configure:1766: checking for socket in -lsocket configure:1785: gcc -o conftest -g -O2 -Wno-deprecated conftest.c -lsocket 1>&5 configure:1813: checking for t_accept in -lnsl configure:1832: gcc -o conftest -g -O2 -Wno-deprecated conftest.c -lnsl -lsocket 1>&5 configure:1861: checking for deflate in -lz configure:1880: gcc -o conftest -g -O2 -Wno-deprecated conftest.c -lz -lnsl -lsocket 1>&5 configure:1911: checking for ANSI C header files configure:1924: gcc -E -Wno-deprecated conftest.c >/dev/null 2>conftest.out configure:2015: checking whether time.h and sys/time.h may both be included configure:2029: gcc -c -g -O2 -Wno-deprecated conftest.c 1>&5 configure:2058: checking how to run the C++ preprocessor configure:2076: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for fcntl.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for limits.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for malloc.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for sys/file.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for sys/ioctl.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for sys/time.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for unistd.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for getopt.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2110:20: getopt.h: No such file or directory configure: failed program was: #line 2109 "configure" #include "confdefs.h" #include <getopt.h> configure:2104: checking for strings.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for zlib.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for alloca.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for sys/select.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for wait.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for sys/wait.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for malloc.h configure:2104: checking for ostream.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2104: checking for iostream.h configure:2114: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2142: checking for fstream.h configure:2152: c++ -E -Wno-deprecated conftest.C >/dev/null 2>conftest.out configure:2186: checking for working const configure:2240: gcc -c -g -O2 -Wno-deprecated conftest.c 1>&5 configure:2261: checking whether struct tm is in sys/time.h or time.h configure:2274: gcc -c -g -O2 -Wno-deprecated conftest.c 1>&5 configure:2298: checking for strdup configure:2326: gcc -o conftest -g -O2 -Wno-deprecated conftest.c -lz -lnsl -lsocket 1>&5 configure:2298: checking for strerror configure:2326: gcc -o conftest -g -O2 -Wno-deprecated conftest.c -lz -lnsl -lsocket 1>&5 configure:2298: checking for strstr configure:2326: gcc -o conftest -g -O2 -Wno-deprecated conftest.c -lz -lnsl -lsocket 1>&5 configure:2310: warning: conflicting types for built-in function `strstr' configure:2353: checking for localtime_r configure:2381: gcc -o conftest -g -O2 -Wno-deprecated conftest.c -lz -lnsl -lsocket 1>&5 configure:2408: checking for timegm configure:2436: gcc -o conftest -g -O2 -Wno-deprecated conftest.c -lz -lnsl -lsocket 1>&5 Undefined first referenced symbol in file timegm /var/tmp//ccgpo9NR.o ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure: failed program was: #line 2413 "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:2408: checking for mkstemp configure:2436: gcc -o conftest -g -O2 -Wno-deprecated conftest.c -lz -lnsl -lsocket 1>&5 configure:2502: checking if we should use the included regex? configure:2522: gcc -o conftest -g -O2 -I./htlib -Wno-deprecated conftest.c -lz -lnsl -lsocket 1>&5 configure: failed program was: #line 2513 "configure" #include "confdefs.h" #include "./htlib/regex.c" int main() { regex_t re; return regcomp(&re, "ht.*Dig", REG_ICASE); } configure:2549: checking whether we need gethostname() prototype? configure:2569: c++ -c -Wno-deprecated -Wno-deprecated conftest.C 1>&5 configure:2591: checking how to call getpeername? configure:2603: gcc -c -Wno-deprecated conftest.c 1>&5 configure: In function `main': configure:2600: conflicting types for `getpeername' /usr/include/sys/socket.h:336: previous declaration of `getpeername' configure:2600: warning: extern declaration of `getpeername' doesn't match global one configure: failed program was: #line 2595 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/socket.h> int main() { extern getpeername(int, struct sockaddr *, size_t *) ; return 0; } configure:2603: gcc -c -Wno-deprecated conftest.c 1>&5 |