imap-2004a c-client problems

jechilt

Verified User
Joined
Jun 21, 2004
Messages
212
Greetings,

system is RH9
php4.3.8

had to rebuild my system, so prior to the build, imap-2004 c-client was installed and working.

The only thing I did new to the machine was to install ImageMagick, which went easy enough.
I need to get IMAP c-client going again.

build php is just fine ( no errors )

when i stop and restart the httpd, I get the following error:
Code:
Starting httpd: Syntax error on line 79 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: __db185_open

I have no idea why this is happening now. The only new software I can think of is ImageMagick but don't see where the problem could come from.
So, I remove the IMAP from the configure.php and rebuild...no problem....the httpd starts right up. I add the imap line back in the configure.php and the service fails to restart.

Can anyone shed any light on this that will help me fix this?
 
jechilt said:
Greetings,

system is RH9
php4.3.8

Code:
Starting httpd: Syntax error on line 79 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: __db185_open

Just looking at the error "undefined symbol", kinda tells me that not all the shared libraries were found, in this case, it appears to be Berkeley DB. It may not be finding the Berkeley DB shared library.
 
thanks for the reply.

any chance you can tell this rookie how to look for this and resolve the problem?
 
The best way, is to post exacly how you compiled your imap client lib, what your compile options were for ImageMagic and your configure.php. At least this will give me something to comment on. Somewhere it is looking for a Berkeley DB symbol and it isn't finding it. Hopefully you config info will help.
 
compile options for ImageMagic
--x-libraries=/usr/X11R6
--share-enabled

The rest of the install was textbook instruction. ref: my install

Install for Imap2004a was directly in line with this link

up to this point, everything looks good and I don't see any errors.
as soon as
--with-imap=/usr/local/src/imap-2004a
is added to the configure.php file, apache won't restart.

I hope this covers your questions.
 
Try doing an 'ldd /etc/httpd/modules/libphp4.so' and see if it says it can't find a shared library. If so, then you need to modify your LD_LIBRARY_PATH or edit /etc/ld.so.conf and add the library path and rerun ldconfig to pickup your new shared library path.
 
Code:
[root@ns /]# ldd /etc/httpd/modules/libphp4.so
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x401c2000)
        libzzip-0.so.10 => /usr/local/lib/libzzip-0.so.10 (0x401ee000)
        libpspell.so.4 => /usr/local/pspell/lib/libpspell.so.4 (0x401f3000)
        libmhash.so.2 => /usr/local/lib/libmhash.so.2 (0x4020a000)
        libmcrypt.so.4 => /usr/local/lib/libmcrypt.so.4 (0x40238000)
        libltdl.so.3 => /usr/lib/libltdl.so.3 (0x4026a000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40271000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x4032f000)
        libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0x4033d000)
        libz.so.1 => /usr/local/lib/libz.so.1 (0x40365000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40377000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40395000)
        libm.so.6 => /lib/libm.so.6 (0x403a5000)
        libdl.so.2 => /lib/libdl.so.2 (0x403c6000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x403c9000)
        libcurl.so.2 => /usr/local/lib/libcurl.so.2 (0x403dc000)
        libssl.so.4 => /lib/libssl.so.4 (0x40407000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x4043c000)
        libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2  (0x4052d000)
        libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x40540000)
        libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x4059e000)
        libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x405a0000)
        libc.so.6 => /lib/libc.so.6 (0x405b1000)
        libpspell-modules.so.1 => /usr/local/pspell/lib/libpspell-modules.so.1 (0x406d8000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x406da000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4078d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

I assume this looks normal?
 
Well, here the libraries you have linked to your libphp4.so that is different than mine:
libpspell.so.4
libmhash.so.2
libX11.so.6
libXpm.so.4
libpng12.so.0 -> I have libpng.so.3
libjpeg.so.62
libpspell-modules.so.1
libstdc++.so.5
libgcc_s.so.1

One thing you could try, is to add -ldb to your final link of php, that should suck in the symbols you need.
 
hey toml,

thanks for the help!

added --with-db4 to configure.php

apache restarted!!!
 
Back
Top