apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: PHP and APR v1.0 - strange compile failure: apr_off_t
Date Mon, 07 Feb 2005 22:57:25 GMT
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
>--
>
>



Mime
View raw message