Click to See Complete Forum and Search --> : PHP4, IMAP, MYSQL on Sparc Solaris2.7


Anon
08-01-2000, 10:47 PM
Hi,

I'm trying to compile PHP4 w/IMAP and MySQL as a dynamic Apache module on a Sun Sparc Solaris2.7. Apache version is 1.3.9. IMAP version is 4.7c2. PHP version is 4.0pl2. I'm using this configure command:

./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-imap=/usr/local/imap

I compiled the new version of imap earlier and it was successful.

The php4 installation appears to go smoothly but I get the following error when I do a config test on httpd:

Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/libphp4.so: symbol __muldi3: referenced symbol not found

I've double-checked my LoadModule, AddModule and AddType directives. Everything okay. Also checked paths & perms and they are correct.

Found a posting on a GNU board about the library containing __muldi3 not being linked by some makes.

Ideas? Anyone with similar problems?

Anon
08-02-2000, 02:25 PM
Figured it out.

__muldi3 is in libgcc.a

Added --enable-libgcc to ./configure command line and recompiled but didn't work.

Had to clean out compile directory and start over fresh from the tar file. Then it worked.

Thanks.

Anon
11-07-2000, 04:01 PM
I had the same problem.
I use gcc ( 2.8.x at the time ).
I found a posting that said to include this in your configure string:
--enable-libgcc

That did the trick for me.

Good luck,
Carlos