Settings for compiling php as a DSO

From: Date: Mon, 16 Oct 2000 19:50:58 +0000
Subject: Settings for compiling php as a DSO
Groups: php.install 
Request: Send a blank email to php-install+get-350@lists.php.net to get a copy of this message
1. Compiling PHP 3.0.16 as a DSO I am having problems compiling PHP as shared module for Apache. It seems to me that in the first instance I did not put in any settings for the compiler flags in the Configuration file, which caused the generate apxs.pl script to fail. Can anyone tell me the right values for the settings below if they are necessary. ===================================================== # The EXTRA_DEPS can be used to add extra Makefile dependencies to external # files (for instance third-party libraries) for the httpd target. The effect # is that httpd is relinked when those files are changed. # EXTRA_CFLAGS= EXTRA_LDFLAGS= EXTRA_LIBS= EXTRA_INCLUDES= EXTRA_DEPS= #CC= #CPP= #OPTIM= #RANLIB= ################################################################ # Name of the installed Apache HTTP webserver. # TARGET=httpd #CFLAGS_SHLIB= #LD_SHLIB= #LDFLAGS_SHLIB= #LDFLAGS_SHLIB_EXPORT= My system is Linux Mandrake 7.1 distribution 2. After putting in a few settings which allowed compilation to start, the compile stopped with this error. ===================================================== make gcc -g -O2 @CFLAGS@ -O2 -fpic -DSHARED_MODULE -I. -I. -I/www/apache/include -I/usr/local/include/mysql -c language-parser.tab.c -o langua ge-parser.tab.o gcc.colorgcc: cannot specify -o with -c or -S and multiple compilations make: *** [language-parser.tab.o] Error 1 Can anyone explain why this should come up?

« previous php.install (#350) next »