Results 1 to 2 of 2

Thread: Compiling PHP-4.2.1

  1. #1

    Compiling PHP-4.2.1

    I can't seem to compile it! Here is the output ...

    Code:
    make[3]: Entering directory `/home/ash/php-4.2.1/sapi/apache2filter'
    /bin/sh /home/ash/php-4.2.1/libtool --silent --mode=compile gcc  -I. -I/home/ash
    /php-4.2.1/sapi/apache2filter -I/home/ash/php-4.2.1/main -I/home/ash/php-4.2.1 -
    I/var/apache2/include -I/home/ash/php-4.2.1/Zend -I/home/ash/php-4.2.1/ext/mysql
    /libmysql -I/home/ash/php-4.2.1/ext/xml/expat  -D_REENTRANT -I/home/ash/php-4.2.
    1/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic  -c sapi_apache2.c
    /bin/sh /home/ash/php-4.2.1/libtool --silent --mode=compile gcc  -I. -I/home/ash
    /php-4.2.1/sapi/apache2filter -I/home/ash/php-4.2.1/main -I/home/ash/php-4.2.1 -
    I/var/apache2/include -I/home/ash/php-4.2.1/Zend -I/home/ash/php-4.2.1/ext/mysql
    /libmysql -I/home/ash/php-4.2.1/ext/xml/expat  -D_REENTRANT -I/home/ash/php-4.2.
    1/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic  -c apache_config.c
    /bin/sh /home/ash/php-4.2.1/libtool --silent --mode=compile gcc  -I. -I/home/ash
    /php-4.2.1/sapi/apache2filter -I/home/ash/php-4.2.1/main -I/home/ash/php-4.2.1 -
    I/var/apache2/include -I/home/ash/php-4.2.1/Zend -I/home/ash/php-4.2.1/ext/mysql
    /libmysql -I/home/ash/php-4.2.1/ext/xml/expat  -D_REENTRANT -I/home/ash/php-4.2.
    1/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic  -c php_functions.c
    php_functions.c:93:27: missing binary operator before '!'
    make[3]: *** [php_functions.lo] Error 1
    make[3]: Leaving directory `/home/ash/php-4.2.1/sapi/apache2filter'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/ash/php-4.2.1/sapi/apache2filter'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/ash/php-4.2.1/sapi'
    make: *** [all-recursive] Error 1
    I am configuring with the following options:
    ./configure --prefix=/var/apache2/php --with-apxs2=/var/apache2/bin/apxs --with-config-file-path=/var/apache2/php --with-mysql

    Help! :-\

  2. #2

    Re:Compiling PHP-4.2.1

    Apparently there is a bug in php-4.2.1 that is fixed in CVS .... so here is the output of the CVS version (yeah, it errors too just in a diffrent place ...).

    Code:
    /bin/sh libtool --silent --mode=compile gcc  -Isapi/apache2filter/ -I/home/ash/php4-200206301200/sapi/apache2filter/ -DPHP_ATOM_INC -I/home/ash/php4-200206301200/include -I/home/ash/php4-200206301200/main -I/home/ash/php4-200206301200 -I/var/apache2/include -I/home/ash/php4-200206301200/Zend -I/home/ash/php4-200206301200/ext/xml/expat  -I/home/ash/php4-200206301200/TSRM -g -O2  -prefer-pic -c /home/ash/php4-200206301200/sapi/apache2filter/sapi_apache2.c -o sapi/apache2filter/sapi_apache2.lo 
    /home/ash/php4-200206301200/sapi/apache2filter/sapi_apache2.c: In function `php_register_hook':
    /home/ash/php4-200206301200/sapi/apache2filter/sapi_apache2.c:567: incompatible type for argument 3 of `ap_register_output_filter'
    /home/ash/php4-200206301200/sapi/apache2filter/sapi_apache2.c:567: too many arguments to function `ap_register_output_filter'
    /home/ash/php4-200206301200/sapi/apache2filter/sapi_apache2.c:568: incompatible type for argument 3 of `ap_register_input_filter'
    /home/ash/php4-200206301200/sapi/apache2filter/sapi_apache2.c:568: too many arguments to function `ap_register_input_filter'
    make: *** [sapi/apache2filter/sapi_apache2.lo] Error 1

Similar Threads

  1. Need help installing gnu make 3.80.0(fixed)
    By AljoshaNL in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 08-19-2005, 11:51 AM
  2. PHP Tutorial
    By Waka-Gashira in forum Windows - General Topics
    Replies: 8
    Last Post: 01-27-2005, 08:10 AM
  3. PHP on IIS Server
    By genesis in forum Windows - General Topics
    Replies: 8
    Last Post: 01-03-2005, 11:22 AM
  4. PHP takes ASP as Number 1 SSSL
    By coltrane in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 07-04-2002, 03:47 AM
  5. compiling pspell support into PHP
    By tolstoy in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 01-09-2002, 01:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •