After banging my head against the wall for several more days, I
succeeded in compiling PHP4 with a different Apache version.
I was able to compile PHP with Apache version 1.3.20 using the options
below. It seems there is some incompatibility with 1.2b8 that isn't
mentioned anywhere.
There was another post on this list some months back. Someone else
had the same error, with a different solution. Theirs was to comment
out a line in some of the C code that referred to ap_auth_type in
the php code. They didn't say which Apache version they were using.
> I can't get PHP4 to compile on my machine. I am at my wits' end on
> this. I need to upgrade to PHP4 from 3.0.18 for a particular
> application I would like to run.
>
> If anyone has any ideas on what I might try, I would be most
> grateful for any input.
>
> I've tried compiling with every version of PHP4 I can get my
> hands on. php-3.0.18 compiles fine this way. Everything works,
> php serves postgresql database stuff wonderfully. I'm doing all
> this as root, so there's not a permissions error anywhere. With
> every version of PHP4 I've tried, I get the same error.
>
> OS:
> Red Hat Linux release 5.1 (Manhattan)
> Kernel 2.0.39 on an i586
>
> Output of ldconfig -p can be found at:
> http://www.jfku.edu/~mhunter/ldconfig.txt
>
> Contents of /etc/ld.so.conf can be found at:
> http://www.jfku.edu/~mhunter/ldsoconf.txt
>
> PostgreSQL version: postgresql-7.1.2
>
> configure command:
> ./configure --without-mysql --with-apache=../apache_1.2b8
> --enable-track-vars --with-pgsql >& configure.out &
>
> make command:
> make >& make.out
>
> Here is the error output from make for php 4.0.6 .
>
> make[3]: Entering directory `/home/mhunter/gzips/php-4.0.6/sapi/apache'
> gcc -I. -I/home/mhunter/gzips/php-4.0.6/sapi/apache
> -I/home/mhunter/gzips/php-4.0.6/main -I/home/mhunter/gzips/php-4.0.6
> -I/home/mhunter/gzips/apache_1.2b8/src-I/home/mhunter/gzips/php-4.0.6/Zend
> -I/home/mhunter/gzips/php-4.0.6/ext/xml/expat/xmltok
> -I/home/mhunter/gzips/php-4.0.6/ext/xml/expat/xmlparse
> -I/home/mhunter/gzips/php-4.0.6/TSRM
> -I/home/mhunter/gzips/apache_1.2b8/src -DSUPPORT_UTF8
> -DXML_BYTE_ORDER=12 -g -O2 -c mod_php4.c && touch mod_php4.lo
> mod_php4.c: In function `sapi_apache_flush':
> mod_php4.c:142: warning: dereferencing `void *' pointer
> mod_php4.c:142: request for member `connection' in something not a
> structure orunion
> mod_php4.c: In function `init_request_info':
> mod_php4.c:406: structure has no member named `ap_auth_type'
> make[3]: *** [mod_php4.lo] Error 1
> make[3]: Leaving directory `/home/mhunter/gzips/php-4.0.6/sapi/apache'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/mhunter/gzips/php-4.0.6/sapi/apache'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/mhunter/gzips/php-4.0.6/sapi'
> make: *** [all-recursive] Error 1
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]