Re: Make check and htdig warnings
"Joe R. Jah" <[email protected]>
| Newsgroups | gmane.comp.web.htdig.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 11 Jun 2004 [email protected] wrote: > Date: Fri, 11 Jun 2004 10:32:32 +1000 > From: [email protected] > To: Joe R. Jah <[email protected]>, Lachlan Andrew <[email protected]> > Cc: [email protected] > Subject: Re: [htdig-dev] Make check and htdig warnings > > Thanks Joe. I'll apply patch 3 to CVS when I next get to my PC. The problem > with t_htdig has already been fixed. (I'm really not sure why it worked > under gnu/linux -- the script definitely had a bug.) Patch 3 has not been committed to 3.2.0b6: --- test/Makefile.orig Thu Jun 17 22:56:56 2004 +++ test/Makefile Thu Jun 17 22:54:30 2004 @@ -188,10 +188,10 @@ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htword/libhtword.la \ $(top_builddir)/htlib/libht.la \ - $(top_builddir)/htcommon/libcommon.la \ - $(top_builddir)/htword/libhtword.la \ - $(top_builddir)/db/libhtdb.la \ - $(top_builddir)/htlib/libht.la + $(top_builddir)/./htcommon/libcommon.la \ + $(top_builddir)/./htword/libhtword.la \ + $(top_builddir)/./db/libhtdb.la \ + $(top_builddir)/./htlib/libht.la Also t_htdig still fails: FAIL: t_htdig PASS: t_htsearch PASS: t_htmerge PASS: t_htnet PASS: t_htdig_local PASS: t_factors PASS: t_fuzzy PASS: t_parsing PASS: t_templates PASS: t_validwords ==================== 1 of 19 tests failed ==================== Regards, Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah [email protected] > >On Wed, 9 Jun 2004, Lachlan Andrew wrote: > > > >> Date: Wed, 9 Jun 2004 20:49:47 +1000 > >> From: Lachlan Andrew <[email protected]> > >> To: Joe R. Jah <[email protected]>, [email protected] > >> Subject: Re: [htdig-dev] Make check and htdig warnings > >> > >> On Wed, 9 Jun 2004 03:41 pm, Joe R. Jah wrote: > >> > Hi Folks, > >> > > >> > Make check errors on BSD/OS 4.3.1: > >> > > >> > ../htlib/.libs/libht.a(HtWordType.o): In function > >> > `HtStripPunctuation(String &)': > >> > /tmp/htdig-3.2.0b6/htlib/../htword/WordType.h:66: undefined > >> > reference to `WordType::instance' gmake[2]: *** [testnet] Error 1 > >> > >> Greetings Joe, > >> > >> This is the same problem as Jesse was getting on HP-UX... To hunt > >> this problem down, could you please > >> 1. Try the explicit g++ command I suggested in > >> <http://www.mail-archive.com/[email protected]/msg02078.html> > > > > cd test > > g++ -g -O2 -Wall -fno-rtti -fno-exceptions -o testnet testnet.o \ > > -L/opt/htdig/lib/zlib/lib ../htnet/.libs/libhtnet.a \ > > ../htcommon/.libs/libcommon.a ../htword/.libs/libhtword.a \ > > ../db/.libs/libhtdb.a ../htlib/.libs/libht.a \ > > ../htword/.libs/libhtword.a -lz > > gmake check > > > >../htlib/.libs/libht.a(HtWordType.o): In function `HtIsWordChar(char)': > >/usr/src/WWW/htdig/htdig-3.2.0b6/htlib/../htword/WordType.h:66: undefined > >reference to `WordType::instance' > >../htlib/.libs/libht.a(HtWordType.o): In function `HtIsStrictWordChar(char)': > >/usr/src/WWW/htdig/htdig-3.2.0b6/htlib/../htword/WordType.h:66: undefined > >reference to `WordType::instance' > >../htlib/.libs/libht.a(HtWordType.o): In function `HtWordNormalize(String > >&)': > >/usr/src/WWW/htdig/htdig-3.2.0b6/htlib/../htword/WordType.h:66: undefined > >reference to `WordType::instance' > >../htlib/.libs/libht.a(HtWordType.o): In function `HtStripPunctuation(String > >&)': > >/usr/src/WWW/htdig/htdig-3.2.0b6/htlib/../htword/WordType.h:66: undefined > >reference to `WordType::instance' > >gmake[1]: *** [url] Error 1 > >gmake[1]: Leaving directory `/usr/src/WWW/htdig/htdig-3.2.0b6/test' > >gmake: *** [check-am] Error 2 > > > >> 2. Replace '--mode=link' by '--mode=link --preserve-dup-deps' in > >> line 324 of test/Makefile and then try make check again. > > > >../htlib/.libs/libht.a(HtWordType.o): In function `HtIsWordChar(char)': > >/usr/src/WWW/htdig/htdig-3.2.0b6/htlib/../htword/WordType.h:66: undefined > >reference to `WordType::instance' > >../htlib/.libs/libht.a(HtWordType.o): In function `HtIsStrictWordChar(char)': > >/usr/src/WWW/htdig/htdig-3.2.0b6/htlib/../htword/WordType.h:66: undefined > >reference to `WordType::instance' > >../htlib/.libs/libht.a(HtWordType.o): In function `HtWordNormalize(String > >&)': > >/usr/src/WWW/htdig/htdig-3.2.0b6/htlib/../htword/WordType.h:66: undefined > >reference to `WordType::instance' > >../htlib/.libs/libht.a(HtWordType.o): In function `HtStripPunctuation(String > >&)': > >/usr/src/WWW/htdig/htdig-3.2.0b6/htlib/../htword/WordType.h:66: undefined > >reference to `WordType::instance' > >*** Error code 1 > > > >Stop. > >*** Error code 1 > > > >Stop. > > > >> 3. Replace the line something like > >> HTLIBS = $(top_builddir)/htnet/libhtnet.la \ > >> $(top_builddir)/htcommon/libcommon.la \ > >> $(top_builddir)/htword/libhtword.la \ > >> $(top_builddir)/htlib/libht.la \ > >> $(top_builddir)/htcommon/libcommon.la \ > >> $(top_builddir)/htword/libhtword.la \ > >> $(top_builddir)/db/libhtdb.la \ > >> $(top_builddir)/htlib/libht.la > >> in test/Makefile, by a line like > >> HTLIBS = $(top_builddir)/htnet/libhtnet.la \ > >> $(top_builddir)/htcommon/libcommon.la \ > >> $(top_builddir)/htword/libhtword.la \ > >> $(top_builddir)/htlib/libht.la \ > >> $(top_builddir)/./htcommon/libcommon.la \ > >> $(top_builddir)/./htword/libhtword.la \ > >> $(top_builddir)/./db/libhtdb.la \ > >> $(top_builddir)/./htlib/libht.la > >> (that is, for the repeated libraries, add a './' to the path) and > >> then rerun make check. > > > > > >PASS: t_wordkey > >PASS: t_wordlist > >PASS: t_wordskip > >PASS: t_wordbitstream > >PASS: t_search > >PASS: t_htdb > >PASS: t_rdonly > >PASS: t_trunc > >PASS: t_url > > > >dodoc: cannot open > >running htdig: expected > >http://localhost:7400/set1/ > >http://localhost:7400/set1/bad_local.htm > >http://localhost:7400/set1/script.html > >http://localhost:7400/set1/site%201.html > >http://localhost:7400/set1/site2.html > >http://localhost:7400/set1/site3.html > >http://localhost:7400/set1/site4.html > >http://localhost:7400/set1/sub%2520dir/ > >http://localhost:7400/set1/sub%2520dir/empty%20file.html > >http://localhost:7400/set1/title.html > >but got > > > >htpurge: Database is empty! > > > >FAIL: t_htdig > >PASS: t_htsearch > >PASS: t_htmerge > >PASS: t_htnet > >PASS: t_htdig_local > >PASS: t_factors > >PASS: t_fuzzy > >PASS: t_parsing > >PASS: t_templates > >PASS: t_validwords > >==================== > >1 of 19 tests failed > >*** Error code 1 > > > >Stop. > >*** Error code 1 > > > >Stop. > > > >> 4. Type > >> nm htword/.libs/libhtword.a | grep instance > > > > U _10WordDBInfo.instance > > U _11WordKeyInfo.instance > > U _11WordMonitor.instance > > U _14WordRecordInfo.instance > > U _8WordType.instance > > U _11WordKeyInfo.instance > > U _14WordRecordInfo.instance > > U _10WordDBInfo.instance > > U _11WordKeyInfo.instance > >0000039c D _10WordDBInfo.instance > > U _11WordKeyInfo.instance > > U _14WordRecordInfo.instance > > U _11WordKeyInfo.instance > >000008f8 D _11WordKeyInfo.instance > > U _10WordDBInfo.instance > > U _11WordKeyInfo.instance > > U _14WordRecordInfo.instance > >00000870 D _11WordMonitor.instance > >00000160 D _14WordRecordInfo.instance > > U _11WordKeyInfo.instance > > U _14WordRecordInfo.instance > >00000988 D _8WordType.instance > > > > > >> nm test/testnet.o | grep instance > > > >> 5. Type > >> cp /bin/true test/testnet > > > >It was actually cp /usr/bin/true test/testnet > > > >> make check > > > >PASS: t_wordkey > >PASS: t_wordlist > >PASS: t_wordskip > >PASS: t_wordbitstream > >PASS: t_search > >PASS: t_htdb > >PASS: t_rdonly > >PASS: t_trunc > >PASS: t_url > >running htdig: expected > >http://localhost:7400/set1/ > >http://localhost:7400/set1/bad_local.htm > >http://localhost:7400/set1/script.html > >http://localhost:7400/set1/site%201.html > >http://localhost:7400/set1/site2.html > >http://localhost:7400/set1/site3.html > >http://localhost:7400/set1/site4.html > >http://localhost:7400/set1/sub%2520dir/ > >http://localhost:7400/set1/sub%2520dir/empty%20file.html > >http://localhost:7400/set1/title.html > >but got > > > >FAIL: t_htdig > >PASS: t_htsearch > >PASS: t_htmerge > >Could not fetch URL > >FAIL: t_htnet > >PASS: t_htdig_local > >PASS: t_factors > >PASS: t_fuzzy > >PASS: t_parsing > >PASS: t_templates > >PASS: t_validwords > >==================== > >2 of 19 tests failed > >==================== > >gmake[1]: *** [check-TESTS] Error 1 > >gmake[1]: Leaving directory `/usr/src/WWW/htdig/htdig-3.2.0b6/test' > >gmake: *** [check-am] Error 2 > > > >> > Warnings from htdig: > >> > > >> > Warning: Configuration option heading_factor_1 is no longer supported > >> > Warning: Configuration option heading_factor_2 is no longer supported > >> > Warning: Configuration option heading_factor_3 is no longer supported > >> > Warning: Configuration option heading_factor_4 is no longer supported > >> > Warning: Configuration option heading_factor_5 is no longer supported > >> > Warning: Configuration option heading_factor_6 is no longer supported > >> > Warning: Configuration option modification_time_is_now is no longer > supported > >> > Warning: Configuration option pdf_parser is no longer supported > >> > Warning: Configuration option translate_amp is no longer supported > >> > Warning: Configuration option translate_lt_gt is no longer supported > >> > Warning: Configuration option translate_quot is no longer supported > >> > > >> > Huh? > >> > >> Because people were confused by pdf_parser no longer working in > >> ht://Dig, it now checks for old 3.1.x configuration attributes which > >> are in the htdig.conf file but not supported by ht://Dig 3.2.x > >> Are any of these options specified in your htdig.conf? If not, this > > >> is a bug... > > > >Thanks Lachlan; yes I had all those attributes from 3.1.x days left in my > >htdig.conf file. > > > >Regards, ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ ht://Dig Developer mailing list: [email protected] List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-dev