Geoff,
I updated the htString.h file in /opt/htdig-3.1.6/htlib to remove the .h
from the #include lines. I reran the make and ended up with the following
errors.
Thanks,
Dan
# make
make[1]: Entering directory `/opt/htdig-3.1.6/db/dist'
/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 hash_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_get.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_config.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 txn_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 -o db_archive db_archive.o err.o getlong.o libdb.a -lthread
gcc -o db_checkpoint db_checkpoint.o err.o getlong.o libdb.a -lthread
gcc -o db_deadlock db_deadlock.o err.o getlong.o libdb.a -lthread
gcc -o db_dump db_dump.o err.o getlong.o libdb.a -lthread
gcc -o db_load db_load.o err.o getlong.o libdb.a -lthread
gcc -o db_printlog db_printlog.o err.o getlong.o libdb.a -lthread
gcc -o db_recover db_recover.o err.o getlong.o libdb.a -lthread
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/www/htdig/conf/htdig.conf\" -I../htlib
-I../htcommon -I../db/dist -I../include -g -O2 Configuration.cc
In file included from Configuration.cc:13:
htString.h:15:18: Object: No such file or directory
htString.h:16:18: stdarg: No such file or directory
htString.h:17:17: stdio: No such file or directory
In file included from Configuration.cc:13:
htString.h:139: `ostream' was not declared in this scope
htString.h:139: `o' was not declared in this scope
htString.h:139: invalid data member initialization
htString.h:139: (use `=' to initialize static data members)
htString.h:139: variable or field `debug' declared void
htString.h:152: ISO C++ forbids declaration of `ostream' with no type
htString.h:152: `ostream' is neither function nor member function; cannot be
declared friend
htString.h:152: parse error before `&' token
htString.h:154: `FILE' was not declared in this scope
htString.h:154: `in' was not declared in this scope
htString.h:154: invalid data member initialization
htString.h:195: type specifier omitted for parameter `va_list'
Configuration.cc: In member function `int Configuration::Read(char*)':
Configuration.cc:305: `ifstream' undeclared (first use this function)
Configuration.cc:305: (Each undeclared identifier is reported only once for
each function it appears in.)
Configuration.cc:305: parse error before `(' token
Configuration.cc:307: `in' undeclared (first use this function)
make[1]: *** [Configuration.o] Error 1
make[1]: Leaving directory `/opt/htdig-3.1.6/htlib'
make: *** [all] Error 1
-----Original Message-----
From: Geoff Hutchison [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 10:49 AM
To: Sixbury, Dan
Cc: '[EMAIL PROTECTED]'
Subject: Re: [htdig] make error on new htdig install
On Tue, 24 Sep 2002, Sixbury, Dan wrote:
> I have recently been trying to install htdig on a solaris 9 server with
the
> updated gcc. I was told about the issue with fstream.h and fstream, so I
> updated the configuration files to change it to fstream (no .h) and the
> configure worked, but now the make is getting an error.
Well, previous reports had suggested that the fstream/fstream.h issues
were given as warnings by g++. Here, it seems like the warnings are now
genuine errors.
So until we can whip up a patch and test it on a gcc-3.2 system, I'd
suggest trying this as a first step. Change the #include <> lines in
htString.h to remove the .h suffix. If that works, let me know and I'll
see if I can whip up a patch. (3.1.6, correct?)
--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html