Subject: htdig compile fails
To: None <tech-pkg@NetBSD.org>
From: Niels Provos <provos@citi.umich.edu>
List: tech-pkg
Date: 05/26/2004 13:31:09
Hi,

I just updated my whole system to -current and am trying to rebuild some
of the packages from -current pkgsrc tree.  However, htdig is failing
with the following errors:

g++ -o htfuzzy -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L../htlib -L../htcommon Endings.o EndingsDB.o Exact.o  Fuzzy.o Metaphone.o Soundex.o  SuffixEntry.o Synonym.o htfuzzy.o  Substring.o Prefix.o Accents.o ../htcommon/libcommon.a  ../htlib/libht.a -lz -ldb2
EndingsDB.o(.text+0xb6): In function `Endings::createDB(Configuration&)':
: undefined reference to `cout'
EndingsDB.o(.text+0xbb): In function `Endings::createDB(Configuration&)':
: undefined reference to `ostream::operator<<(char const*)'
EndingsDB.o(.text+0xf9): In function `Endings::createDB(Configuration&)':
: undefined reference to `cout'
EndingsDB.o(.text+0xfe): In function `Endings::createDB(Configuration&)':
: undefined reference to `ostream::operator<<(char const*)'
EndingsDB.o(.text+0x192): In function `Endings::createDB(Configuration&)':
: undefined reference to `form(char const*, ...)'
EndingsDB.o(.text+0x6a6): In function `Endings::createRoot(Dictionary&, char*, char*, char*)':
: undefined reference to `cout'
EndingsDB.o(.text+0x6ab): In function `Endings::createRoot(Dictionary&, char*, char*, char*)':
: undefined reference to `ostream::operator<<(char const*)'
EndingsDB.o(.text+0x6bd): In function `Endings::createRoot(Dictionary&, char*, char*, char*)':
: undefined reference to `ostream::operator<<(char const*)'
EndingsDB.o(.text+0x6ce): In function `Endings::createRoot(Dictionary&, char*, char*, char*)':
: undefined reference to `endl(ostream&)'
EndingsDB.o(.text+0x7db): In function `Endings::createRoot(Dictionary&, char*, char*, char*)':
: undefined reference to `cout'
[...]
../htlib/libht.a(String.o)(.text+0xee6): In function `String::debug(ostream&)':
: undefined reference to `ostream::operator<<(char const*)'
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/htdig/work/htdig-3.1.6/htfuzzy
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/htdig/work/htdig-3.1.6
*** Error code 1

Any ideas what the problem is?

$ uname -a
NetBSD loch 2.0E NetBSD 2.0E (GENERIC) #3: Tue May 25 09:02:44 PDT 2004  provos@loch:/usr/obj/sys/arch/i386/compile/GENERIC i386
$ gcc --version
gcc (GCC) 3.3.3 (NetBSD nb3 20040520)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Niels.