Click to See Complete Forum and Search --> : error: build PHP with apache as DSO


Anon
04-14-2002, 12:00 PM
hi,

I want to build PHP with apache as DSO.
I did as follows:
#cd php-4.1.2
#./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql \
--with-apxs=/usr/apache/bin/apxs
#make
#make install

When I started apache,
I get:

"Syntax error on line 235 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: libgcc_s.so.1: open failed: No such file or directory
./apachectl start: httpd could not be started"

Thank you for your help!

jupy

Anon
04-15-2002, 03:25 AM
OK. I found the reason.

I compiled mysql with gcc-3.0.3, so some files use libgcc-3.0.3.

When I installed apache with PHP, I got this error.

I had to replace gcc-3.0.3 with gcc-2.95.3.

I can't start mysql because gcc-3.0.3 had removed.
I installed libgcc-3.0.3 because it included libgcc_s.so.1.

I compiled apache and php with gcc-2.95.3,
but I got the error again!

Finally, I removed libgcc 3.0.3 and reinstall mysql, apache and php.

What's wrong with libgcc_s.so.1 in libgcc-3.0.3?!