Yes, adding -lpthread for the link helped a lot.
However, I still have an error at link time :
c++ -o htfuzzy -L../htlib -L../htcommon -L../db/dist -L/usr/lib
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 ../db/dist/libdb.a -lpthread
ld: 0711-317 ERROR: Undefined symbol: std::string::_Rep::_S_max_size
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.
It seems this happens because AIX doesn't support "weak references" (found
that by crawling the web)
Anybody has an idea ?
Thanks for your help
Romain Lor�al
Geoff Hutchison
<[EMAIL PROTECTED] Pour : [EMAIL PROTECTED]
liams.edu> cc :
[EMAIL PROTECTED]
Objet : Re: [htdig] compiling on AIX
30/08/2002 05:30
> c++ -o htfuzzy -L../htlib -L../htcommon -L../db/dist -L/usr/lib
> Endings.o EndingsDB.o Exact.o Fuzzy.o Metapho.o Soundex.o
> SuffixEntry.o
> Synonym.o htfuzzy.o Substring.o Prefix.o Accents.o
> ../htcommon/libcommon.a
> ../htlib/libha ../db/dist/libdb.a
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
You might want to poke around in the mailing list archives, I remember
this came up before on AIX as well. (And we thought it was fixed!)
If you have a libpthread on your system, then I'd edit Makefile.config
and make sure that a -lpthread is included after everything on the LIBS
line, e.g.
LIBS= .... -lpthread
If you don't have a libpthread, then you might have a libthread that
does the same thing.
I'd try that first, then let me know and we can hunt through the mailing
list archive. (Maybe my memory is wrong and this was on another
platform.)
--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
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