Discussion:
[PHP-INSTALL] compiling failed ...
Patterson
2009-08-11 15:20:28 UTC
Permalink
HI,

I am trying to compile the last PHP 5.3.0 source, i have the apache
2.2.11 source ...

~/fossSrc/php-5.3.0> make

/bin/sh /home/sysadmin/fossSrc/php-5.3.0/libtool --silent
--preserve-dup-deps --mode=compile gcc -I/usr/sfw/apache2/include
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
-I/usr/sfw/apr/include -I/usr/sfw/apr-util/include -I/usr/include
-Isapi/apache2handler/
-I/home/sysadmin/fossSrc/php-5.3.0/sapi/apache2handler/ -DPHP_ATOM_INC
-I/home/sysadmin/fossSrc/php-5.3.0/include
-I/home/sysadmin/fossSrc/php-5.3.0/main
-I/home/sysadmin/fossSrc/php-5.3.0
-I/home/sysadmin/fossSrc/php-5.3.0/ext/date/lib
-I/home/sysadmin/fossSrc/php-5.3.0/ext/ereg/regex -I/usr/include/libxml2
-I/usr/include/openssl -I/usr/sfw/pcre/include -I/usr/sfw/curl/include
-I/usr/include/enchant -I/usr/include/freetype2 -I/usr/include/mysql
-I/usr/sfw/postgresql/include -I/usr/include/pspell -I/usr/include/tidy
-I/home/sysadmin/fossSrc/php-5.3.0/TSRM
-I/home/sysadmin/fossSrc/php-5.3.0/Zend -I/usr/include -g -O2
-fvisibility=hidden -prefer-non-pic -c
/home/sysadmin/fossSrc/php-5.3.0/sapi/apache2handler/sapi_apache2.c -o
sapi/apache2handler/sapi_apache2.lo
In file included from
/home/sysadmin/fossSrc/php-5.3.0/sapi/apache2handler/sapi_apache2.c:43:

/usr/sfw/apache2/include/ap_mpm.h:91: error: expected declaration
specifiers or '...' before 'server_rec'
/usr/sfw/apache2/include/ap_mpm.h:115: error: expected ';', ',' or ')'
before '*' token

make: *** [sapi/apache2handler/sapi_apache2.lo] Error 1


2007-05-09 21:35 /usr/sfw/apache2/include/ap_mpm.h


It will be great if you could give me a clue on this ...

Cheers
Ryan Schmidt
2009-08-11 20:28:41 UTC
Permalink
Post by Patterson
I am trying to compile the last PHP 5.3.0 source, i have the
apache 2.2.11 source ...
On what operating system?

What configure arguments did you use for php?
Patterson
2009-08-11 20:47:23 UTC
Permalink
Hi Ryan,

Here are the answers of yours questions :

OS : GNU/Linux 2.6.30.1

Configure Args : configure --enable-zip --enable-intl --enable-wddx
--enable-shmop --enable-libgcc --enable-bcmath --enable-sysvmsg
--enable-sysvsem --enable-sysvshm --enable-sockets --enable-calendar
--disable-cgi --disable-ipv6 --with-gmp --with-db4 --with-bz2
--with-zlib --with-gnu-ld --with-openssl --with-readline
--with-mysql-sock --with-curlwrappers --with-layout=GNU
--with-pcre-regex=/usr/sfw/pcre --with-xpm-dir=/usr --with-jpeg-dir=/usr
--with-zlib-dir=/usr --with-libexpat-dir=/usr
--with-pcre-dir=/usr/sfw/pcre --with-apxs2=/usr/sfw/sbin/apxs
--with-openssl-dir=/usr/lib/openssl
--with-iconv-dir=/usr/sbin/iconvconfig
--with-libxml-dir=/usr/bin/xml2-config
--with-png-dir=/usr/bin/libpng12-config
--with-freetype-dir=/usr/bin/freetype-config --enable-dba=shared
--enable-ftp=shared --enable-exif=shared --enable-pcntl=shared
--enable-embed=shared --with-tidy=shared --with-gdbm=shared
--with-mhash=shared --with-t1lib=shared --with-recode=shared
--with-mcrypt=shared --with-gettext=shared --with-enchant=shared
--with-gd=shared,/usr --with-xsl=shared,/usr --with-litespeed=shared
--with-iodbc=shared,/usr --with-pspell=shared,/usr
--with-pdo-odbc=iODBC,/usr --with-mysql=shared,mysqlnd
--with-curl=shared,/usr/sfw/curl --with-pgsql=shared,/usr/sfw/bin
--with-pdo-pgsql=shared,/usr/sfw/bin
--with-mysqli=shared,/usr/bin/mysql_config
--with-pdo-mysql=shared,/usr/bin/mysql_config --without-sqlite3
--without-pdo-sqlite

Thanks in advance for any help you can provide on my case ...
Post by Ryan Schmidt
Post by Patterson
I am trying to compile the last PHP 5.3.0 source, i have the apache
2.2.11 source ...
On what operating system?
What configure arguments did you use for php?
Loading...