I tried what you suggested.  I am also usingt he gnu binutils and gcc 3.0.3.

Here is how I am trying to configure php.  I can get apache to compile and
start ok.  But the php causes a problem each time.  

todd@svlecs01:~/src/php-4.1.2$cat config.nice 
#! /bin/sh
#
# Created by configure

'./configure' \
'--with-mysql=/usr/local/mysql' \
'--enable-trans-sid' \
'--with-apxs' \
'--with-mm=/usr/local/lib' \
"$@"
todd@svlecs01:~/src/php-4.1.2$sudo apachectl start
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
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 ap_block_alarms: referenced
symbol not found
/usr/local/apache/bin/apachectl start: httpd could not be started

And I know these ap_* symbols are from apache but I don't know why they are
not being linked properly.

I will try again and repost any further findings.  Thanks for the updates. 

Todd.


-----Original Message-----
From: Poetsch, Michael [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 18, 2002 9:10 AM
To: Todd Mortensen
Subject: RE: Problem loading php-module as DSO into Apache httpd


Hi Todd,

just wanted to let you know that we may have got a step ahead.

I am using the GNU C-compiler, gnu binutils, gnu make and gnu ld. When I
renamed the "ld" command supplied by GNU and used the standard solaris "ld"
instead, I could compile apache and php3, link php3 as DSO to apache and
start apache. That worked.

The GNU "ld" is the one that by default installs in /usr/local/bin. Just
rename this one to "gnu-ld" or something else. Then make sure that the
location of the solaris "ld" is included in your PATH variable. The solaris
"ld" resides under /usr/ccs/bin.

When I, however, compile php3 with mysql-support
(--with-mysql=/path/to/mysql) I get some more unreferenced symbols
(mysql_free_result). On the documentation pages in the internet I found lots
of recommendations to use the latest PHP4 release. I will try that one
tomorrow. Will keep you posted!

Please let me know if this works on your box as well!

Thanks in advance & regards from Frankfurt

Michael


-----Original Message-----
From: Todd Mortensen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 3:47 AM
To: Poetsch, Michael
Subject: RE: Problem loading php-module as DSO into Apache httpd


I will be sure to let you know.   I have been trying to compile 4.1.2 for a
couple weeks as well.  It is very frustrating as I have new web code to use
but I developed it on 4.1.2 on freebsd. (compiles fine)  And now I need it
on my solaris box.  

Your right.  I have seen a lot of email with the simular problems but
without any solutions.   

Let me know if you find the answer first.  Sounds like we have been battling
this about the same time.  

Todd.

-----Original Message-----
From: Poetsch, Michael [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 17, 2002 8:56 AM
To: Todd Mortensen
Subject: Problem loading php-module as DSO into Apache httpd


Hello Todd,

just came across your message on the php-net. I was wondering wether you
already have a solution for this problem:

Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: 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 ap_block_alarms: referenced
symbol not found /usr/local/apache/bin/apachectl start: httpd could not be
started 

Unfortunately I do not have the solution, but I am encountering the same
problem. I am recompiling since 2 weeks now - still no luck. It seems that
many others have similar difficulties.

My working environment is slightly different from yours, and I am trying to
compile php3 - but obviously the success is the same:

Syntax error on line 451 of /usr/local/apache/conf/httpd.conf: Cannot load
/usr/local/apache/libexec/libphp3.so into server: ld.so.1: /usr/loca
l/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/libp hp3.so: symbol ap_user_id: referenced symbol
not found ./apachectl start: httpd could not be started  

If you have a fix for that problem, may I kindly ask you to let me know?

Thanks & Regards

Michael

Michael Poetsch

Compaq Frankfurt
Managed Services
Tel...: ++49 6103 383 215
Fax...: ++49 6103 383 157
eMail.: [EMAIL PROTECTED]

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to