Hello,
Hiromichi Watari a écrit, Le 02/09/2009 09:46 PM:
> Hi Chad,
> Thank you for your input, maybe I didn't make myself clear but I got the errors on
> make with the unmodified source. Here is more details,
>
>
>
> //***************** make errors (partial)
> $ ./configure --with-debug
> $ make
> .
> .
> .
>
> g++ -g -O -DSAFE_MUTEX -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o
> .libs/mysql mysql.o readline.o sql_string.o completion_hash.o
> ../cmd-line-utils/libedit/libedit.a -lncurses -lpthread
> ../libmysql/.libs/libmysqlclient.so -lstdc++ ../zlib/.libs/libzlt.a -lrt -lcrypt -lnsl -lm
> -Wl,--rpath -Wl,/usr/local/lib/mysql
> mysql.o: In function `build_completion_hash':
> /usr/local/mysql-6.0/client/mysql.cc:2520: undefined reference to `_db_enter_'
> /usr/local/mysql-6.0/client/mysql.cc:2523: undefined reference to `_db_return_'
> /usr/local/mysql-6.0/client/mysql.cc:2525: undefined reference to `_db_return_'
> /usr/local/mysql-6.0/client/mysql.cc:2583: undefined reference to `_db_return_'
> /usr/local/mysql-6.0/client/mysql.cc:2590: undefined reference to `_db_return_'
> /usr/local/mysql-6.0/client/mysql.cc:2628: undefined reference to `_db_return_'
I have a g++ line which is similar to yours but don't get the error. For
you it's saying that nowhere in the list of modules and libraries, can
it find _db_enter_.
For me, _db_enter_ is provided by ../libmysql/.libs/libmysqlclient.so:
"objdump -t ../libmysql/.libs/libmysqlclient.so" says:
<cut>
../libmysql/.libs/libmysqlclient.so
00070ce7 g F .text 000002cb _db_enter_
What does it say for you?
I don't see libtool in your command line, I have it, maybe that's a
reason too.
--
Mr. Guilhem Bichot <guilhem@stripped>
Sun Microsystems / MySQL, Lead Software Engineer
Bordeaux, France
www.sun.com / www.mysql.com