Andrei,
Yes, it is i386. All the defualt ser's modules are working OK. I will let you know if I find any problems on NetBSD/i386.
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
ldconfig -r |grep mysql (I got no output)
Marcelo.
btw: sorry for this email/html but I had no other quicker options from here today.
-----Original Message----- From: Andrei Pelinescu-Onciul [mailto:pelinescu-onciul@fokus.fraunhofer.de] Sent: Thu 7/3/2003 4:09 AM To: Marcelo Schmidt Cc: serusers@iptel.org Subject: Re: [Serusers] Mysql.so
On Jul 02, 2003 at 16:04, Marcelo Schmidt mschmidt@equinix.com wrote: > I am dealing with one NetBsd and a FreeBsd...
Are you running ser on NetBSD/i386? We tried so far NetBSD only on sparc64. Is it working ok? (can I add it to the tested architectures?)
> Now the question is for > the second one, I uncommented this line: loadmodule > "/usr/local/lib/ser/modules/mysql.so" only (just testing if it can find > the mysql module). I got: > > 0(95642) ERROR: load_module: could not open module > </usr/local/lib/ser/modules/mysql.so>: Shared object > "libmysqlclient.so.10" not found > 0(95642) parse error (22,13-49): failed to load module > ERROR: bad config file (1 errors) > > == > file libmysqlclient.so.10 > libmysqlclient.so.10: ELF 32-bit LSB shared object, Intel 80386, version > 1 (FreeBSD), not stripped > == > /usr/local/mysql/lib/mysql > -rwxr-xr-x 1 root mysql 136729 Jun 30 22:23 libmysqlclient.so.10 > == > modules/mysql/Makefile > # $Id: Makefile,v 1.15 2002/11/12 12:32:17 andrei Exp $ > ... > LIBS=-L/usr/lib/mysql -L /usr/local/lib -L/usr/local/lib/mysql \ > -L/usr/local/mysql/lib/mysql/ \ > -lmysqlclient -lz > > All seemed to be OK but not, any help is highly appreciated.
Try (& send the output to me): ldd /usr/local/lib/ser/modules/mysql.so and ldconfig -r |grep mysql (libmysqlclient should be in ldconfig hints file)
Andrei
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