Thanks, that worked.  I'll let you know how it goes with NetBsd along with including mysql there too.  Later.
 
Marcelo.
-----Original Message-----
From: Andrei Pelinescu-Onciul [mailto:pelinescu-onciul@fokus.fraunhofer.de]
Sent: Thu 7/3/2003 9:14 AM
To: Marcelo Schmidt
Cc: serusers@iptel.org
Subject: Re: [Serusers] Mysql.so

On Jul 03, 2003 at 08:48, Marcelo Schmidt <mschmidt@equinix.com> wrote:
> Andrei,
>
> Now in FreeBSD:

>  ldd /usr/local/lib/ser/modules/mysql.so
> /usr/local/lib/ser/modules/mysql.so:
> ldd: /usr/local/lib/ser/modules/mysql.so: Exec format error
> /usr/local/lib/ser/modules/mysql.so: exit status 1

Yes, sorry, ldd does not work on shared libraries on FreeBSD.
objdump -p /usr/local/lib/ser/modules/mysql.so |grep lib 
was the right command.

>
>  ldconfig -r |grep mysql
> (I got no output)

This means your libmysqlclient library is not in your shared library
cache file and the dynamic linker cannot find it.
(see ldconfig(8), rtld(1)).

You can merge your mysql libs to the system cache:
ldconfig -m /usr/local/mysql/lib/mysql  # you have to run it as root

or you can set up the environment variable LD_LIBRARY_PATH:
export LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql

However you will have to do this each time you reboot the machine.
To do it automatically add /usr/local/mysql/lib/mysql to
ld_config_paths in /etc/rc.conf:
ldconfig_paths="$ld_config_paths /usr/local/mysql/lib/mysql"
(ldconfig_paths is initialized in /etc/default/rc.conf).


Andrei