Click to See Complete Forum and Search --> : Solaris 8 + Apache + PHP + MySql


Anon
06-26-2002, 01:17 PM
I am trying to build a solaris box with Apache and PHP and MySql support. Does anyone have a working procedure on how to go about building the server? I have tried a few method recommended on some web pages and none works when I try to do a make for PHP.

configure with mysql and with apache option seems to work but when I issue the command make in PHP directory, I get the following error :

sunny# make
Making all in Zend
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -D_POSIX_PTHREAD_SEMANTICS -I../TSRM -g -O2 -prefer-non-pic -static -c -o zend_language_parser.lo `test -f zend_language_parser.c || echo './'`zend_language_parser.c
In file included from zend_compile.h:24,
from zend_language_parser.c:147:
zend.h:55: unix.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `zend_language_parser.lo'
Current working directory /export/ali/webserver-stuff/php-4.2.1/Zend
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

Any help will be very much appreciated.

Ali

Anon
06-26-2002, 06:43 PM
I get the SAME exact thing, and can't figure out how to ix it. When i do configure & make with PHP 4.0.6 it works fine.

Please post the fix if you figure it out and i will do the same.


Brian

christyn
06-27-2002, 04:13 PM
Ali Eghtessadi wrote:
-------------------------------
configure with mysql and with apache option seems to work but when I issue the command make in PHP directory, I get the following error :

sunny# make
Making all in Zend
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -D_POSIX_PTHREAD_SEMANTICS -I../TSRM -g -O2 -prefer-non-pic -static -c -o zend_language_parser.lo `test -f zend_language_parser.c || echo './'`zend_language_parser.c
In file included from zend_compile.h:24,
from zend_language_parser.c:147:
zend.h:55: unix.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `zend_language_parser.lo'
Current working directory /export/ali/webserver-stuff/php-4.2.1/Zend
*** Error code 1
....
=============================

Ali:

I ran into the same problem and searched the archives. Here is the suggested solution from Sascha Schumann: (php-install| 2000052)

<snip>
> So. Does anyone know what the heck this unix.h is and why it isn't behaving?

unix.h is a misnamed header file from the imap package.

Edit php_config.h and remove the #define HAVE_UNIX_H 1 entry. The mid term solution is to rename unix.h to something like imap_unix.h.

- Sascha
</snip>

This got me further; now I'm having different issues, with sysexits.h.

Good luck,

- Christyn

Anon
06-27-2002, 09:11 PM
The proper way to make this work is to make sure you got a working automake and libtool then:
#rm configure
#./buildconf
then run ./configure and compile...

I still haven't figured out how to make apache2filter work but thats another problem:)

tieded
06-30-2002, 08:31 PM
Hi All,
I have observed the same symptoms trying to make php.
Have tried the suggestion offered by Dan, (ie.rm ./configure & ./buildconf) however, I am now getting the following error :-
checking size of char... configure: error: cannot compute sizeof (char), 77

Does anyone have a fix for this ?

Cheers,
Damien.

Dan wrote:
-------------------------------
The proper way to make this work is to make sure you got a working automake and libtool then:
#rm configure
#./buildconf
then run ./configure and compile...

I still haven't figured out how to make apache2filter work but thats another problem:)

Anon
08-07-2002, 08:57 AM
I did the above, and am now getting the following error on start up:

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 __cmpdi2: referenced symbol not found/usr/local/apache/bin/apachectl start: httpd could not be started

I ran 'configure --with-apxs=/usr/local/apache/bin/apxs \
--with-mysql'

Has this happened to anyone?

Thanks,
Chris