Matt Sullivan wrote:
> 
> Kir,
> 
> What compiler are you using?

on my box:
[kir@kir src]$ gcc -v      
Reading specs from /usr/lib/gcc-lib/i386-asplinux-linux/2.96/specs
gcc version 2.96 20000731 (ASPLinux 7.1 2.96-79)

on another box:
[kir@aspseek kir]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)

>  I am having difficulty getting 1.2.6 to link
> correctly for Debian.  The symptoms are:
> 
> /bin/sh ../libtool --mode=link c++  -ggdb3 -Wall -D_REENTRANT  -o searchd
> daemon.o excerpts.o qparser.o sqldb.o parser.o scanner.o streams.o charsets.o
> search.o templates.o sock.o logger.o stopwords.o affix.o datetime.o lastmod.o
> urlfilter.o misc.o acl.o timer.o cache.o crc32.o ucharset.o -ldl -lz -lpthread
> c++ -ggdb3 -Wall -D_REENTRANT -o searchd daemon.o excerpts.o qparser.o sqldb.o
> parser.o scanner.o streams.o charsets.o search.o templates.o sock.o logger.o
> stopwords.o affix.o datetime.o lastmod.o urlfilter.o misc.o acl.o timer.o
> cache.o crc32.o ucharset.o -ldl -lz -lpthread
> sqldb.o: In function `CWordParam::~CWordParam(void)':
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:149:
> undefined reference to `CWordBuddyVector::~CWordBuddyVector(void)'
> collect2: ld returned 1 exit status
> make[1]: *** [searchd] Error 1
> make[1]: Leaving directory
> `/usr/src/packages/aspseek/release/1.2.6/pkg/WORK/aspseek-1.2.6/src'
> make: *** [all-recursive] Error 1
> 
> When linking searchd, if I add buddy.cpp to searchd_SOURCES it links fine

I have added buddy.cpp to searchd_SOURCES in CVS yesterday, to fix linking on
FreeBSD.

> however I get an unresoved symbol when index or searchd try to load
> libmysqldb-1.2.6.so:
> 
> Loading configuration from /etc/aspseek-debug/charsets.conf
> Loading configuration from /etc/aspseek-debug/stopwords.conf
> Loading configuration from /etc/aspseek-debug/aspseek.conf
> Can't load DB driver: /usr/lib/aspseek-debug/libmysqldb-1.2.6.so: undefined
> symbol: _._16CWordBuddyVector
> 
> I'm suspecting a linker bug or an STL issue or both (again).  This is using:
> 
> g++ -v
> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
> gcc version 2.95.4 20011006 (Debian prerelease)

On FreeBSD (gcc 2.95.3) symptoms are the same. I have just found that
-export-dynamic flag helps. Can you get the latest CVS and see if it works?
I have fixed a numerous small miscompilations as well there.

-- 
[EMAIL PROTECTED]  ICQ 7551596  Phone +7 903 6722750
Hard work may not kill you,  but why take chances?
--

Reply via email to