PHP extension causes symbol lookup error
- by Christian
Dear,
I installed - or better tried to - the NMCryptGate Extension for PHP on my Debian 5.0.8 server.
I did this by compiling the sources which came up with no error message. Calling phpinfo() I can see the extension as enabled.
BUT, whenever I try calling a method from this extension I get an error logged to the apache error log:
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/nmcryptgate.so: undefined symbol: nmlistalloc
What is missing? I got two packages from the software company: the php module sources and some files which should - according to their path inside the tar - go to /usr/local/bin|doc|include|lib. I moved them there without any effect.
Each of these two packages has its own config file almost looking the same:
\# libnmcryptgate.la - a libtool library file
\# Generated by ltmain.sh - GNU libtool 1.3.4 (1.385.2.196 1999/12/07 21:47:57)
\#
\# Please DO NOT delete this file
\# It is necessary for linking the library
\# The name that we can dlopen(3)
dlname=''
\# Names of this library
library_names='libnmcryptgate.so.1 libnmcryptgate.so libnmcryptgate.so'
\# The name of the static archive
old_library=''
\# Libraries that this one depends upon
dependency_libs=' -L. -L/usr/ssl/lib -L/usr/local/ssl/lib -L/usr/local/lib -lssl -lcrypto'
\# Version information for libnmcryptgate
current=1
age=0
revision=29
\# Is this an already installed library
installed=yes
\# Directory that this library needs to be installed in
libdir='/usr/local/lib'
I tried several ways to get it right: moving files, symlinking, changing configurations - always followed by restarting apache - no success.
I guess I just have to move the files to the correct location or change the libdir inside the config files but meanwhile I'm totally confused by the two packages: do I need both, which config rules what, do I have to use the libdir variable? And for what? ...
Anybody out there hinting me to my source of failure?
Thank you in advance, regards,
Christian