FYI:

ldd libmidgard.so
       libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40018000)
       libmysqlclient.so.6 => /usr/lib/libmysqlclient.so.6 (0x4003d000)
       libm.so.6 => /lib/libm.so.6 (0x4006b000)
       libz.so.1 => /usr/lib/libz.so.1 (0x40089000)
       libcrypt.so.1 => /lib/libcrypt.so.1 (0x40096000)
       libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x400c3000)
       libc.so.6 => /lib/libc.so.6 (0x400e7000)
       libnsl.so.1 => /lib/libnsl.so.1 (0x401e2000)
       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Ideas? I was thinking of tinkering with the config, but I am a novice at 
config options.

Fred

Emiliano wrote:

> 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]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to