hello,
I'm trying to use opendbx in a php extension.
It seems to compile and link fine.
I get problems when I run the php extension.
I install opendbx -1.4.5 as follows:
CFLAGS="-I/usr/local/pgsql/include" LDFLAGS="-L/usr/local/pgsql/lib"
./configure
--with-backend="pgsql"
This put a bunch of .so files into /usr/local/lib like libopendbx.so,
libopendbxplus.so
It also creates a sub-directory opendbx and puts libpgsqlbackend.so etc. there
Anyhow, I make and link my php_extension:
Make:
cc -DPHP_ATOM_INC -I < include files> -g -02 -c <source file> -fPIC -DPIC -o
<object file>
::
Link:
cc -shared <object files> -Wl, -soname -Wl,getStats.so -o getStats.so -lopendbx
Anyhow, when I run the php extension, getStats.so I get this failure message:
Loading backend library pgsql, libpgsql
backend.so or /usr/local/lib/opendbx/libpgsql
backend.so failed
/usr/local/lib/opendbx/libpgsql
backend.so: cannot open shared object file: No such file or directory
when it tries to run odbx_init.
The error message above is a bit odd, words are split.
The *.so libraries seem fine when I do nm on them, not corrupted or anything.
Anyone got any ideas please?
thanks
Fiona
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
libopendbx-devel mailing list
libopendbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX