You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Graham Leggett <mi...@sharp.fm> on 2005/02/07 23:48:25 UTC
PHP and APR v1.0 - strange compile failure: apr_off_t
Hi all,
While trying to compile PHP v4.3.2 (RPM as provided by RHEL3) against
APR v1.1 and httpd v2.1.3 (trunk) with apr-config changed to
apr-1-config, I am getting the error below.
It seems that somehow APR has defined apr_off_t as follows:
apr-1/apr.h:typedef off64_t apr_off_t;
Trouble is, there is no definition of off64_t anywhere I can find inside
/usr/include, which I imagine is causing the error.
What should apr_off_t be defined as on RHEL3 (i386 version)?
Can anyone explain this one, I am stumped.
/bin/sh /usr/src/redhat/BUILD/php-4.3.2/build-apache/libtool --silent
--preserve-dup-deps --mode=compile gcc -Isapi/apache2filter/
-I/usr/src/redhat/BUILD/php-4.3.2/sapi/apache2filter/ -DPHP_ATOM_INC
-I/usr/src/redhat/BUILD/php-4.3.2/build-apache/include
-I/usr/src/redhat/BUILD/php-4.3.2/build-apache/main
-I/usr/src/redhat/BUILD/php-4.3.2 -I/usr/include/httpd
-I/usr/src/redhat/BUILD/php-4.3.2/build-apache/Zend
-I/usr/include/libxml2 -I/usr/lib/include -I/usr/include/freetype2
-I/usr/include/imap -I/usr/kerberos/include -I/usr/include/mysql
-I/usr/include/pcre -I/usr/include/pspell
-I/usr/src/redhat/BUILD/php-4.3.2/main
-I/usr/src/redhat/BUILD/php-4.3.2/Zend
-I/usr/src/redhat/BUILD/php-4.3.2/TSRM
-I/usr/src/redhat/BUILD/php-4.3.2/build-apache/TSRM -O2 -g -pipe
-march=i386 -mcpu=i686 -fPIC -Wall -I/usr/include/apr-1
-I/usr/kerberos/include -prefer-pic -c
/usr/src/redhat/BUILD/php-4.3.2/sapi/apache2filter/sapi_apache2.c -o
sapi/apache2filter/sapi_apache2.lo
In file included from /usr/include/apr-1/apr_strings.h:47,
from
/usr/src/redhat/BUILD/php-4.3.2/sapi/apache2filter/sapi_apache2.c:34:
/usr/include/apr-1/apr.h:269: syntax error before "apr_off_t"
/usr/include/apr-1/apr.h:269: warning: type defaults to `int' in
declaration of`apr_off_t'
/usr/include/apr-1/apr.h:269: warning: data definition has no type or
storage cl ass
In file included from
/usr/src/redhat/BUILD/php-4.3.2/sapi/apache2filter/sapi_apache2.c:34:
/usr/include/apr-1/apr_strings.h:296: syntax error before "apr_off_t"
/usr/include/apr-1/apr_strings.h:312: syntax error before '*' token
/usr/include/apr-1/apr_strings.h:348: syntax error before "size"
In file included from /usr/include/apr-1/apr_file_io.h:28,
from /usr/include/apr-1/apr_network_io.h:25,
from /usr/include/apr-1/apr_buckets.h:28,
from /usr/include/httpd/util_filter.h:21,
from
/usr/src/redhat/BUILD/php-4.3.2/sapi/apache2filter/sapi_apache2.c:36:
Regards,
Graham
--
Re: PHP and APR v1.0 - strange compile failure: apr_off_t
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Do you find declarations in stdio.h for fseeko64/ftello64?
Looks like an __off64_t to me on RHAS3.
Bill
At 04:48 PM 2/7/2005, Graham Leggett wrote:
>Hi all,
>
>While trying to compile PHP v4.3.2 (RPM as provided by RHEL3) against APR v1.1 and httpd v2.1.3 (trunk) with apr-config changed to apr-1-config, I am getting the error below.
>
>It seems that somehow APR has defined apr_off_t as follows:
>
>apr-1/apr.h:typedef off64_t apr_off_t;
>
>Trouble is, there is no definition of off64_t anywhere I can find inside /usr/include, which I imagine is causing the error.
>
>What should apr_off_t be defined as on RHEL3 (i386 version)?
>
>Can anyone explain this one, I am stumped.
>
>/bin/sh /usr/src/redhat/BUILD/php-4.3.2/build-apache/libtool --silent --preserve-dup-deps --mode=compile gcc -Isapi/apache2filter/ -I/usr/src/redhat/BUILD/php-4.3.2/sapi/apache2filter/ -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php-4.3.2/build-apache/include -I/usr/src/redhat/BUILD/php-4.3.2/build-apache/main -I/usr/src/redhat/BUILD/php-4.3.2 -I/usr/include/httpd -I/usr/src/redhat/BUILD/php-4.3.2/build-apache/Zend -I/usr/include/libxml2 -I/usr/lib/include -I/usr/include/freetype2 -I/usr/include/imap -I/usr/kerberos/include -I/usr/include/mysql -I/usr/include/pcre -I/usr/include/pspell -I/usr/src/redhat/BUILD/php-4.3.2/main -I/usr/src/redhat/BUILD/php-4.3.2/Zend -I/usr/src/redhat/BUILD/php-4.3.2/TSRM -I/usr/src/redhat/BUILD/php-4.3.2/build-apache/TSRM -O2 -g -pipe -march=i386 -mcpu=i686 -fPIC -Wall -I/usr/include/apr-1 -I/usr/kerberos/include -prefer-pic -c /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2filter/sapi_apache2.c -o sapi/apache2filter/sapi_apache2.lo
>In file included from /usr/include/apr-1/apr_strings.h:47,
> from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2filter/sapi_apache2.c:34:
>/usr/include/apr-1/apr.h:269: syntax error before "apr_off_t"
>/usr/include/apr-1/apr.h:269: warning: type defaults to `int' in declaration of`apr_off_t'
>/usr/include/apr-1/apr.h:269: warning: data definition has no type or storage cl ass
>In file included from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2filter/sapi_apache2.c:34:
>/usr/include/apr-1/apr_strings.h:296: syntax error before "apr_off_t"
>/usr/include/apr-1/apr_strings.h:312: syntax error before '*' token
>/usr/include/apr-1/apr_strings.h:348: syntax error before "size"
>In file included from /usr/include/apr-1/apr_file_io.h:28,
> from /usr/include/apr-1/apr_network_io.h:25,
> from /usr/include/apr-1/apr_buckets.h:28,
> from /usr/include/httpd/util_filter.h:21,
> from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2filter/sapi_apache2.c:36:
>
>Regards,
>Graham
>--
>
>
Re: PHP and APR v1.0 - strange compile failure: apr_off_t
Posted by Graham Leggett <mi...@sharp.fm>.
Joe Orton wrote:
> You need -D_LARGEFILE64_SOURCE to expose off64_t, but 4.3.2 doesn't pick
> up `apr-config --cppflags` etc, so it's doomed. Some more recent 4.3.x
> release had the fix.
I'm currently trying v5.0.3, and am mired in dependancy hell at the
moment. I have confirmed that it picks up APR[0|1] correctly though.
Regards,
Graham
--
Re: PHP and APR v1.0 - strange compile failure: apr_off_t
Posted by Graham Leggett <mi...@sharp.fm>.
Joe Orton wrote:
> You need -D_LARGEFILE64_SOURCE to expose off64_t, but 4.3.2 doesn't pick
> up `apr-config --cppflags` etc, so it's doomed. Some more recent 4.3.x
> release had the fix.
It seems PHP v5.0.3 + httpd v2.1 on RHEL3 is a dead loss, so I am back
trying 4.3.x. Can you point at a version that is known to compile
properly against APR v1.1? :(
Regards,
Graham
--
Re: PHP and APR v1.0 - strange compile failure: apr_off_t
Posted by Joe Orton <jo...@redhat.com>.
On Tue, Feb 08, 2005 at 12:48:25AM +0200, Graham Leggett wrote:
> While trying to compile PHP v4.3.2 (RPM as provided by RHEL3) against
> APR v1.1 and httpd v2.1.3 (trunk) with apr-config changed to
> apr-1-config, I am getting the error below.
You need -D_LARGEFILE64_SOURCE to expose off64_t, but 4.3.2 doesn't pick
up `apr-config --cppflags` etc, so it's doomed. Some more recent 4.3.x
release had the fix.
joe