Hello,
I tried to install php 4.3.2 and apache 2.0.47 on a RedHat 2.1AS, platform
ia64.
apache2 installation:
$ export CFLAGS="-O3 -fomit-frame-pointer -finline-functions -fcaller-saves"
$ ./configure --prefix=/opt/pul/httpd-2.0.47 --enable-mods-shared=all
$ make
$ make install
$ /opt/pul/httpd-2.0.47/bin/apachectl -k start
and ALL is ok.
Now I tried to compile php!!!
$ unset CFLAGS
$ './configure' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3'
'--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd'
'--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext'
'--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
'--with-openssl' '--with-png' '--with-pspell' '--with-regex=system'
'--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm'
'--enable-discard-path' '--enable-track-vars' '--enable-trans-sid'
'--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear'
'--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos'
'--with-ldap=shared' '--with-mysql=shared,/opt/pul/mysql'
'--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared'
'--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit'
'--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar'
'--enable-dbx' '--enable-dio' '--enable-mcal' '--with-java'
'--with-sybase=/opt/sybase-11.9.2'
'--with-apxs2=/opt/pul/httpd-2.0.47/bin/apxs'
The configure is OK, now that I installed all the libraries, but when I try to
make:
$ make
.......
.......
/bin/sh /usr/src/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile
gcc -IZend/ -I/usr/src/php-4.3.2/Zend/ -DPHP_ATOM_INC
-I/usr/src/php-4.3.2/include -I/usr/src/php-4.3.2/main -I/usr/src/php-4.3.2
-I/opt/pul/httpd-2.0.47/include -I/usr/src/php-4.3.2/Zend
-I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap
-I/usr/kerberos/include -I/opt/pul/mysql/include -I/usr/include/pgsql
-I/usr/include/pspell -I/usr/include/ucd-snmp -I/opt/sybase-11.9.2/include
-I/usr/src/php-4.3.2/TSRM -g -O2 -prefer-pic -c
/usr/src/php-4.3.2/Zend/zend_execute.c -o Zend/zend_execute.lo
/bin/sh /usr/src/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile
gcc -Isapi/apache2handler/ -I/usr/src/php-4.3.2/sapi/apache2handler/
-DPHP_ATOM_INC -I/usr/src/php-4.3.2/include -I/usr/src/php-4.3.2/main
-I/usr/src/php-4.3.2 -I/opt/pul/httpd-2.0.47/include
-I/usr/src/php-4.3.2/Zend -I/usr/include/libxml2 -I/usr/include/freetype2
-I/usr/include/imap -I/usr/kerberos/include -I/opt/pul/mysql/include
-I/usr/include/pgsql -I/usr/include/pspell -I/usr/include/ucd-snmp
-I/opt/sybase-11.9.2/include -I/usr/src/php-4.3.2/TSRM -g -O2 -prefer-pic
-c /usr/src/php-4.3.2/sapi/apache2handler/sapi_apache2.c -o
sapi/apache2handler/sapi_apache2.lo
In file included from /opt/pul/httpd-2.0.47/include/httpd.h:86,
from /opt/pul/httpd-2.0.47/include/util_filter.h:61,
from
/usr/src/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/opt/pul/httpd-2.0.47/include/pcreposix.h:41: conflicting types for
`REG_BADBR'
/usr/include/regex.h:307: previous declaration of `REG_BADBR'
/opt/pul/httpd-2.0.47/include/pcreposix.h:42: conflicting types for
`REG_BADPAT'
/usr/include/regex.h:299: previous declaration of `REG_BADPAT'
/opt/pul/httpd-2.0.47/include/pcreposix.h:43: conflicting types for
`REG_BADRPT'
/usr/include/regex.h:310: previous declaration of `REG_BADRPT'
/opt/pul/httpd-2.0.47/include/pcreposix.h:44: conflicting types for
`REG_EBRACE'
/usr/include/regex.h:306: previous declaration of `REG_EBRACE'
/opt/pul/httpd-2.0.47/include/pcreposix.h:45: conflicting types for
`REG_EBRACK'
/usr/include/regex.h:304: previous declaration of `REG_EBRACK'
/opt/pul/httpd-2.0.47/include/pcreposix.h:46: conflicting types for
`REG_ECOLLATE'
/usr/include/regex.h:300: previous declaration of `REG_ECOLLATE'
/opt/pul/httpd-2.0.47/include/pcreposix.h:47: conflicting types for
`REG_ECTYPE'
/usr/include/regex.h:301: previous declaration of `REG_ECTYPE'
/opt/pul/httpd-2.0.47/include/pcreposix.h:48: conflicting types for
`REG_EESCAPE'
/usr/include/regex.h:302: previous declaration of `REG_EESCAPE'
/opt/pul/httpd-2.0.47/include/pcreposix.h:50: conflicting types for
`REG_EPAREN'
/usr/include/regex.h:305: previous declaration of `REG_EPAREN'
/opt/pul/httpd-2.0.47/include/pcreposix.h:51: conflicting types for
`REG_ERANGE'
/usr/include/regex.h:308: previous declaration of `REG_ERANGE'
/opt/pul/httpd-2.0.47/include/pcreposix.h:52: conflicting types for
`REG_ESIZE'
/usr/include/regex.h:314: previous declaration of `REG_ESIZE'
/opt/pul/httpd-2.0.47/include/pcreposix.h:53: conflicting types for
`REG_ESPACE'
/usr/include/regex.h:309: previous declaration of `REG_ESPACE'
/opt/pul/httpd-2.0.47/include/pcreposix.h:54: conflicting types for
`REG_ESUBREG'
/usr/include/regex.h:303: previous declaration of `REG_ESUBREG'
/opt/pul/httpd-2.0.47/include/pcreposix.h:57: conflicting types for
`REG_NOMATCH'
/usr/include/regex.h:295: previous declaration of `REG_NOMATCH'
/opt/pul/httpd-2.0.47/include/pcreposix.h:66: conflicting types for `regex_t'
/usr/include/regex.h:396: previous declaration of `regex_t'
/opt/pul/httpd-2.0.47/include/pcreposix.h:70: warning: redefinition of
`regoff_t'
/usr/include/regex.h:399: warning: `regoff_t' previously declared here
/opt/pul/httpd-2.0.47/include/pcreposix.h:75: conflicting types for
`regmatch_t'
/usr/include/regex.h:427: previous declaration of `regmatch_t'
/opt/pul/httpd-2.0.47/include/pcreposix.h:79: conflicting types for `regcomp'
/usr/include/regex.h:538: previous declaration of `regcomp'
/opt/pul/httpd-2.0.47/include/pcreposix.h:80: conflicting types for `regexec'
/usr/include/regex.h:542: previous declaration of `regexec'
/opt/pul/httpd-2.0.47/include/pcreposix.h:81: conflicting types for `regerror'
/usr/include/regex.h:547: previous declaration of `regerror'
/opt/pul/httpd-2.0.47/include/pcreposix.h:82: conflicting types for `regfree'
/usr/include/regex.h:550: previous declaration of `regfree'
make: *** [sapi/apache2handler/sapi_apache2.lo] Error 1
What does it means???!
Any help appreciated!!
--
________________________
Dino Ciuffetti
Linux Network Administrator
------------------------------------------
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php