Fred Hirsch wrote:
> checking whether to enable SiteGroups... yes
> checking whether to enable PageLinks (experimental)... no
> checking MySQL location... /usr
> checking Expat location... /usr
> checking for library containing mysql_connect... -lmysqlclient
So it's finding it...
> mkdir .libs
> gcc -g -O2 -I/usr/lib/glib/include -L/usr/lib/mysql -L/usr/lib -o
> .libs/repligard common.o read.o import.o rpconfig.o iconvxml.o schema.o
> export.o main.o ../src/.libs/libmidgard.so -lexpat -lmysqlclient -lm -lz
> -lcrypt -lglib -lexpat -lmysqlclient -lm -lz -lcrypt -L/usr/lib -lglib
...and using it (twice even?)...
> ../src/.libs/libmidgard.so: undefined reference to `mysql_insert_id'
> ../src/.libs/libmidgard.so: undefined reference to
> `mysql_fetch_field_direct'
> ../src/.libs/libmidgard.so: undefined reference to `mysql_num_rows'
> ../src/.libs/libmidgard.so: undefined reference to `mysql_errno'
> ../src/.libs/libmidgard.so: undefined reference to `mysql_error'
> ../src/.libs/libmidgard.so: undefined reference to `mysql_num_fields'
> collect2: ld returned 1 exit status
> make[1]: *** [repligard] Error 1
> make[1]: Leaving directory `/home/archives/midgard-lib-1.4beta7/repligard'
> make: *** [all-recursive] Error 1
...yet can't find its symbols. I'm stumped.
> This actually seems to indicate that repligard is looking for the MySQL
> references in the libmidgard.so shared library. Someone else suggested a
> command like this:
I don't think so, I think this means the link phase fails to find them
while trying to build libmidgard.
> I also ran the nm command on the compiled version of the libmidgard.so
> which resides in ../src/.libs from repligard with the following result:
>
> nm ../src/.libs/libmidgard.so | grep mysql
> U mysql_close
> U mysql_errno
If you have shared mysql libs this would be correct.
> So, they all seem to be here as well... or are they??
No, they're listed as Undefined. But in this case 'ldd libmidgard.so'
should list libmysqlclient, and I'm guessing it doesn't.
I've looked over configure again, I don't see the difference in the
way mysql and expat are linked against lib. Yet it can find the expat
symbols but not the mysqlclient symbols. I don't _get_ it.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]