#27791 [Opn]: PHP5 + Apache2 + Mandrake 10/RC1 Fails w/o -D_LARGEFILE64_SOURCE
ID: 27791 User updated by: manish_dharwadker at yahoo dot com Reported By: manish_dharwadker at yahoo dot com Status: Open Bug Type: Apache2 related Operating System: linux (64b) PHP Version: 5CVS, 4CVS (2004-04-07) New Comment: Just change your CFLAGS to include -D_LARGEFILE64_SOURCE, should allow for the compilation. Previous Comments: [2004-05-13 14:22:41] axel at pearbough dot net I have experienced the same. Apache 2.1 CVS from yesterday. PHP5 CVS from today. CFLAGS='-O3 -march=pentium' \ CXXFLAGS='-O3 -march=pentium' \ './configure' \ '--disable-cgi' \ '--enable-force-cgi-redirect' \ '--enable-safe-mode' \ '--enable-magic-quotes' \ '--enable-libgcc' \ '--enable-exif' \ '--enable-calendar' \ '--enable-gd-native-ttf' \ '--enable-ftp' \ '--enable-sysvmsg' \ '--enable-sysvshm' \ '--enable-sysvsem' \ '--with-apxs2=/usr/local/apache2/bin/apxs' \ '--with-openssl' \ '--with-curl' \ '--with-db4' \ '--with-mysql=/usr' \ '--with-mysql-sock=/tmp/mysql.sock' \ '--with-gettext' /bin/sh /usr/local/src/db/php-src/libtool --silent --preserve-dup-deps --mode=compile /usr/local/src/db/php-src/meta_ccld -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -Isapi/apache2handler/ -I/usr/local/src/db/php-src/sapi/apache2handler/ -DPHP_ATOM_INC -I/usr/local/src/db/php-src/include -I/usr/local/src/db/php-src/main -I/usr/local/src/db/php-src -I/usr/local/src/db/php-src/Zend -I/usr/include/libxml2 -I/usr/include/mysql -D_REENTRANT -I/usr/local/src/db/php-src/TSRM -O3 -march=pentium -pthread -DZTS -prefer-pic -c /usr/local/src/db/php-src/sapi/apache2handler/mod_php5.c -o sapi/apache2handler/mod_php5.lo In file included from /usr/local/apache2/include/ap_config.h:19, from /usr/local/apache2/include/httpd.h:29, from /usr/local/src/db/php-src/sapi/apache2handler/php_apache.h:24, from /usr/local/src/db/php-src/sapi/apache2handler/mod_php5.c:26: /usr/local/apache2/include/apr.h:262: error: parse error before "apr_off_t" /usr/local/apache2/include/apr.h:262: warning: data definition has no type or storage class In file included from /usr/local/apache2/include/apr_file_io.h:28, from /usr/local/apache2/include/apr_network_io.h:25, from /usr/local/apache2/include/httpd.h:38, from /usr/local/src/db/php-src/sapi/apache2handler/php_apache.h:24, from /usr/local/src/db/php-src/sapi/apache2handler/mod_php5.c:26: /usr/local/apache2/include/apr_file_info.h:187: error: parse error before "apr_off_t" /usr/local/apache2/include/apr_file_info.h:187: warning: no semicolon at end of struct or union /usr/local/apache2/include/apr_file_info.h:189: warning: data definition has no type or storage class /usr/local/apache2/include/apr_file_info.h:195: error: 'ctime' redeclared as different kind of symbol /usr/include/time.h:254: error: previous declaration of 'ctime' was here /usr/local/apache2/include/apr_file_info.h:195: error: 'ctime' redeclared as different kind of symbol /usr/include/time.h:254: error: previous declaration of 'ctime' was here /usr/local/apache2/include/apr_file_info.h:202: error: parse error before '}' token In file included from /usr/local/apache2/include/apr_network_io.h:25, from /usr/local/apache2/include/httpd.h:38, from /usr/local/src/db/php-src/sapi/apache2handler/php_apache.h:24, from /usr/local/src/db/php-src/sapi/apache2handler/mod_php5.c:26: /usr/local/apache2/include/apr_file_io.h:503: error: parse error before "apr_off_t" /usr/local/apache2/include/apr_file_io.h:692: error: parse error before "apr_off_t" In file included from /usr/local/apache2/include/httpd.h:38, from /usr/local/src/db/php-src/sapi/apache2handler/php_apache.h:24, from /usr/local/src/db/php-src/sapi/apache2handler/mod_php5.c:26: /usr/local/apache2/include/apr_network_io.h:535: error: parse error before "apr_off_t" In file included from /usr/local/apache2/include/apr_buckets.h:31, from /usr/local/apache2/include/httpd.h:39, from /usr/local/src/db/php-src/sapi/apache2handler/php_apache.h:24, from /usr/local/src/db/php-src/sapi/apache2handler/mod_php5.c:26: /usr/local/apache2/include/apr_mmap.h:133: error: parse error before "apr_off_t" /usr/local/apache2/include/apr_mmap.h:160: error: parse error before "apr_off_t" In file included from /usr/local/apache2/include/httpd.h:39, from /u
#27791 [Opn]: PHP5 + Apache2 + Mandrake 10/RC1 Fails - DEVELOPERS PLEASE LOOK
ID: 27791 User updated by: manish_dharwadker at yahoo dot com Reported By: manish_dharwadker at yahoo dot com Status: Open Bug Type: Compile Failure Operating System: Mandrake 10.0 RC1 PHP Version: 5.0.0RC1 New Comment: Ok ... cleaned it up .. Just -D_LARGEFILE64_SOURCE needed to get this thing compiled. Can someone change the configure to check for 64 bits for large file sizes ? Thanks! - Manish. Previous Comments: [2004-04-03 22:13:20] manish_dharwadker at yahoo dot com Ok .. I got this fixed by running apr-config --cppflags --cflags and including the output as EXTRA_CFLAGS in the resulting Makefile i.e. EXTRA_CFLAGS = -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread This results in lots of warnings but get compiled and passes all bbut 3 tests. Developers please take over and make appropriate changes. Thanks! Manish. [2004-04-03 21:42:56] manish_dharwadker at yahoo dot com Finally found something related .. Thank everybody for NOT responding :) - Manish. From [EMAIL PROTECTED] Fri Apr 02 06:42:35 2004 Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 37180 invoked from network); 2 Apr 2004 06:42:35 - Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Apr 2004 06:42:35 - Received: (qmail 22435 invoked by uid 500); 2 Apr 2004 06:42:12 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 22400 invoked by uid 500); 2 Apr 2004 06:42:12 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Post: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 22382 invoked from network); 2 Apr 2004 06:42:11 - From: "Marc M. Adkins" <[EMAIL PROTECTED]> Organization: Doorways To: [EMAIL PROTECTED] Subject: off64_t Date: Thu, 1 Apr 2004 17:43:18 -0500 User-Agent: KMail/1.5 References: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I just updated from the HEAD on a Mandrake Linux 9.1 box. Ran buildconf and configure and compiled, which went OK. When I recompile my own code, however, I get an error: apr.h:262: parse error before "apr_off_t" apr.h:262: warning: data definition has no type or storage class After much fussing around I determined that editing apr.h to change off64_t to __off64_t did the trick. Semi-random googling indicated perhaps there was some renaming going on with this type(def), perhaps my compiler isn't up to snuff, or I'm not using the right flags. mma From [EMAIL PROTECTED] Fri Apr 02 08:00:40 2004 Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 78787 invoked from network); 2 Apr 2004 08:00:39 - Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Apr 2004 08:00:39 - Received: (qmail 60502 invoked by uid 500); 2 Apr 2004 08:00:14 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 60468 invoked by uid 500); 2 Apr 2004 08:00:14 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Post: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 60450 invoked from network); 2 Apr 2004 08:00:14 - Date: Fri, 2 Apr 2004 09:00:21 +0100 From: Joe Orton <[EMAIL PROTECTED]> To: "Marc M. Adkins" <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: off64_t Message-ID: <[EMAIL PROTECTED]> Mail-Followup-To: "Marc M. Adkins" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <[EMAIL PROTECTED]> User-Agent: Mutt/1.4.1i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Thu, Apr 01, 2004 at 05:43:18PM -0500, Marc M. Adkins wrote: > I just updated from the HEAD on a Mandrake Linux 9.1 box. Ran buildconf and >
#27791 [Opn]: PHP5 + Apache2 + Mandrake 10/RC1 Fails - DEVELOPERS PLEASE LOOK
ID: 27791 User updated by: manish_dharwadker at yahoo dot com -Summary: PHP5 + Apache2 + Mandrake 10/RC1 Fails Reported By: manish_dharwadker at yahoo dot com Status: Open Bug Type: Compile Failure Operating System: Mandrake 10.0 RC1 PHP Version: 5.0.0RC1 New Comment: Ok .. I got this fixed by running apr-config --cppflags --cflags and including the output as EXTRA_CFLAGS in the resulting Makefile i.e. EXTRA_CFLAGS = -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread This results in lots of warnings but get compiled and passes all bbut 3 tests. Developers please take over and make appropriate changes. Thanks! Manish. Previous Comments: [2004-04-03 21:42:56] manish_dharwadker at yahoo dot com Finally found something related .. Thank everybody for NOT responding :) - Manish. From [EMAIL PROTECTED] Fri Apr 02 06:42:35 2004 Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 37180 invoked from network); 2 Apr 2004 06:42:35 - Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Apr 2004 06:42:35 - Received: (qmail 22435 invoked by uid 500); 2 Apr 2004 06:42:12 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 22400 invoked by uid 500); 2 Apr 2004 06:42:12 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Post: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 22382 invoked from network); 2 Apr 2004 06:42:11 - From: "Marc M. Adkins" <[EMAIL PROTECTED]> Organization: Doorways To: [EMAIL PROTECTED] Subject: off64_t Date: Thu, 1 Apr 2004 17:43:18 -0500 User-Agent: KMail/1.5 References: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I just updated from the HEAD on a Mandrake Linux 9.1 box. Ran buildconf and configure and compiled, which went OK. When I recompile my own code, however, I get an error: apr.h:262: parse error before "apr_off_t" apr.h:262: warning: data definition has no type or storage class After much fussing around I determined that editing apr.h to change off64_t to __off64_t did the trick. Semi-random googling indicated perhaps there was some renaming going on with this type(def), perhaps my compiler isn't up to snuff, or I'm not using the right flags. mma From [EMAIL PROTECTED] Fri Apr 02 08:00:40 2004 Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 78787 invoked from network); 2 Apr 2004 08:00:39 - Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Apr 2004 08:00:39 - Received: (qmail 60502 invoked by uid 500); 2 Apr 2004 08:00:14 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 60468 invoked by uid 500); 2 Apr 2004 08:00:14 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Post: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 60450 invoked from network); 2 Apr 2004 08:00:14 - Date: Fri, 2 Apr 2004 09:00:21 +0100 From: Joe Orton <[EMAIL PROTECTED]> To: "Marc M. Adkins" <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: off64_t Message-ID: <[EMAIL PROTECTED]> Mail-Followup-To: "Marc M. Adkins" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <[EMAIL PROTECTED]> User-Agent: Mutt/1.4.1i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Thu, Apr 01, 2004 at 05:43:18PM -0500, Marc M. Adkins wrote: > I just updated from the HEAD on a Mandrake Linux 9.1 box. Ran buildconf and > configure and compiled, which went OK. When I recompile my own code, > however, I get an error: > > > apr.h:262: parse error before "apr_off_t" > apr.h:262: warning: data definition has no type or
#27791 [Opn]: PHP5 + Apache2 + Mandrake 10/RC1 Fails
ID: 27791 User updated by: manish_dharwadker at yahoo dot com Reported By: manish_dharwadker at yahoo dot com Status: Open Bug Type: Compile Failure Operating System: Mandrake 10.0 RC1 PHP Version: 5.0.0RC1 New Comment: Finally found something related .. Thank everybody for NOT responding :) - Manish. From [EMAIL PROTECTED] Fri Apr 02 06:42:35 2004 Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 37180 invoked from network); 2 Apr 2004 06:42:35 - Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Apr 2004 06:42:35 - Received: (qmail 22435 invoked by uid 500); 2 Apr 2004 06:42:12 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 22400 invoked by uid 500); 2 Apr 2004 06:42:12 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Post: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 22382 invoked from network); 2 Apr 2004 06:42:11 - From: "Marc M. Adkins" <[EMAIL PROTECTED]> Organization: Doorways To: [EMAIL PROTECTED] Subject: off64_t Date: Thu, 1 Apr 2004 17:43:18 -0500 User-Agent: KMail/1.5 References: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I just updated from the HEAD on a Mandrake Linux 9.1 box. Ran buildconf and configure and compiled, which went OK. When I recompile my own code, however, I get an error: apr.h:262: parse error before "apr_off_t" apr.h:262: warning: data definition has no type or storage class After much fussing around I determined that editing apr.h to change off64_t to __off64_t did the trick. Semi-random googling indicated perhaps there was some renaming going on with this type(def), perhaps my compiler isn't up to snuff, or I'm not using the right flags. mma From [EMAIL PROTECTED] Fri Apr 02 08:00:40 2004 Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 78787 invoked from network); 2 Apr 2004 08:00:39 - Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Apr 2004 08:00:39 - Received: (qmail 60502 invoked by uid 500); 2 Apr 2004 08:00:14 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 60468 invoked by uid 500); 2 Apr 2004 08:00:14 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Post: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 60450 invoked from network); 2 Apr 2004 08:00:14 - Date: Fri, 2 Apr 2004 09:00:21 +0100 From: Joe Orton <[EMAIL PROTECTED]> To: "Marc M. Adkins" <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: off64_t Message-ID: <[EMAIL PROTECTED]> Mail-Followup-To: "Marc M. Adkins" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <[EMAIL PROTECTED]> User-Agent: Mutt/1.4.1i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Thu, Apr 01, 2004 at 05:43:18PM -0500, Marc M. Adkins wrote: > I just updated from the HEAD on a Mandrake Linux 9.1 box. Ran buildconf and > configure and compiled, which went OK. When I recompile my own code, > however, I get an error: > > > apr.h:262: parse error before "apr_off_t" > apr.h:262: warning: data definition has no type or storage class The error is probably because -D_LARGEFILE64_SOURCE was not defined when apr.h was included. You *must* build your code using the output of `apr-config --cppflags --cflags`, etc. Regards, joe Previous Comments: [2004-04-03 21:38:54] manish_dharwadker at yahoo dot com OK .. anyone home ? I tried this again with the latest builds for Apache and PHP4/5. Same error, anyone facing similar issues ? [2004-03-31 16:47:10] manish_dharwadker at yaho
#27791 [Opn]: PHP5 + Apache2 + Mandrake 10/RC1 Fails
ID: 27791 User updated by: manish_dharwadker at yahoo dot com Reported By: manish_dharwadker at yahoo dot com Status: Open Bug Type: Compile Failure Operating System: Mandrake 10.0 RC1 PHP Version: 5.0.0RC1 New Comment: OK .. anyone home ? I tried this again with the latest builds for Apache and PHP4/5. Same error, anyone facing similar issues ? Previous Comments: [2004-03-31 16:47:10] manish_dharwadker at yahoo dot com Please note that I do have a working web server with everything in place i.e OpenSSL 0.9.7d,MySQL-5.0 (latest cvs), Apache 2.0 (latest cvs). Only PHP fails to compile with the above errors. Thanks! - Manish. [2004-03-31 01:40:09] manish_dharwadker at yahoo dot com Description: OS: Mandrake 10.0 RC1 Binutils: binutils-2.14.90.0.7-2mdk Make: GNU Make 3.80 AutoConf: 2.13 Apache: Latest 2.0 CVS Pull 3/31 AND 2.0.49 (Stable) PHP5: Latest 5.0 RC1 Build Pull 3/31 (AND php4-stable) OpenSSL: 0.9.7d MySQL: 4.0.48/4.1.1-alpha/5.0-dev (ALL) Error Occurence: With ALL PHP Builds 4 stable AND 5 dev I checked the bug list and could not find one. Basically, the sapi/.../mod_php5.lo fails with various parse errors, etc. in apr.h. Please advise. - Manish. Compiled With: ./configure --prefix=/web --with-apxs2=/web/bin/apxs --enable-shared --enable-debug --enable-safe-mode --enable-sigchild --with-zlib=/usr --enable-memory-limit --with-openssl=/web --with-mysql=/web Reproduce code: --- Standard code ... no modifications Expected result: Fully compiled libphp4/5.so and other binaries Actual result: -- Log: gcc -I/web/include -I/web/include -I/web/include -Isapi/apache2handler/ -I/software/php-5.0.0RC1/sapi/apache2handler/ -DPHP_ATOM_INC -I/software/php-5.0.0RC1/include -I/software/php-5.0.0RC1/main -I/software/php-5.0.0RC1 -I/software/php-5.0.0RC1/Zend -I/usr/local/include/libxml2 -I/web/include -I/web/include/mysql -I/software/php-5.0.0RC1/TSRM -g -Wall -c /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c -fPIC -DPIC -o sapi/apache2handler/mod_php5.lo In file included from /web/include/ap_config.h:19, from /web/include/httpd.h:29, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr.h:262: error: parse error before "apr_off_t" /web/include/apr.h:262: warning: type defaults to `int' in declaration of `apr_off_t' /web/include/apr.h:262: warning: data definition has no type or storage class In file included from /web/include/apr_file_io.h:28, from /web/include/apr_network_io.h:25, from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_file_info.h:184: error: parse error before "apr_off_t" /web/include/apr_file_info.h:184: warning: no semicolon at end of struct or union /web/include/apr_file_info.h:186: warning: type defaults to `int' in declaration of `csize' /web/include/apr_file_info.h:186: warning: data definition has no type or storage class /web/include/apr_file_info.h:192: error: `ctime' redeclared as different kind of symbol /usr/include/time.h:254: error: previous declaration of `ctime' /web/include/apr_file_info.h:199: error: parse error before '}' token In file included from /web/include/apr_network_io.h:25, from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_file_io.h:503: error: parse error before "apr_off_t" /web/include/apr_file_io.h:692: error: parse error before "apr_off_t" In file included from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_network_io.h:535: error: parse error before "apr_off_t" In file included from /web/include/apr_buckets.h:31, from /web/include/httpd.h:39, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_mmap.h:133: error: parse error before "apr_off_t" /web/include/apr_mmap.h:160: error: parse error before "apr_off_t" In file included fr
#27791 [Opn]: PHP5 + Apache2 + Mandrake 10/RC1 Fails
ID: 27791 User updated by: manish_dharwadker at yahoo dot com Reported By: manish_dharwadker at yahoo dot com Status: Open Bug Type: Compile Failure Operating System: Mandrake 10.0 RC1 PHP Version: 5.0.0RC1 New Comment: Please note that I do have a working web server with everything in place i.e OpenSSL 0.9.7d,MySQL-5.0 (latest cvs), Apache 2.0 (latest cvs). Only PHP fails to compile with the above errors. Thanks! - Manish. Previous Comments: [2004-03-31 01:40:09] manish_dharwadker at yahoo dot com Description: OS: Mandrake 10.0 RC1 Binutils: binutils-2.14.90.0.7-2mdk Make: GNU Make 3.80 AutoConf: 2.13 Apache: Latest 2.0 CVS Pull 3/31 AND 2.0.49 (Stable) PHP5: Latest 5.0 RC1 Build Pull 3/31 (AND php4-stable) OpenSSL: 0.9.7d MySQL: 4.0.48/4.1.1-alpha/5.0-dev (ALL) Error Occurence: With ALL PHP Builds 4 stable AND 5 dev I checked the bug list and could not find one. Basically, the sapi/.../mod_php5.lo fails with various parse errors, etc. in apr.h. Please advise. - Manish. Compiled With: ./configure --prefix=/web --with-apxs2=/web/bin/apxs --enable-shared --enable-debug --enable-safe-mode --enable-sigchild --with-zlib=/usr --enable-memory-limit --with-openssl=/web --with-mysql=/web Reproduce code: --- Standard code ... no modifications Expected result: Fully compiled libphp4/5.so and other binaries Actual result: -- Log: gcc -I/web/include -I/web/include -I/web/include -Isapi/apache2handler/ -I/software/php-5.0.0RC1/sapi/apache2handler/ -DPHP_ATOM_INC -I/software/php-5.0.0RC1/include -I/software/php-5.0.0RC1/main -I/software/php-5.0.0RC1 -I/software/php-5.0.0RC1/Zend -I/usr/local/include/libxml2 -I/web/include -I/web/include/mysql -I/software/php-5.0.0RC1/TSRM -g -Wall -c /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c -fPIC -DPIC -o sapi/apache2handler/mod_php5.lo In file included from /web/include/ap_config.h:19, from /web/include/httpd.h:29, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr.h:262: error: parse error before "apr_off_t" /web/include/apr.h:262: warning: type defaults to `int' in declaration of `apr_off_t' /web/include/apr.h:262: warning: data definition has no type or storage class In file included from /web/include/apr_file_io.h:28, from /web/include/apr_network_io.h:25, from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_file_info.h:184: error: parse error before "apr_off_t" /web/include/apr_file_info.h:184: warning: no semicolon at end of struct or union /web/include/apr_file_info.h:186: warning: type defaults to `int' in declaration of `csize' /web/include/apr_file_info.h:186: warning: data definition has no type or storage class /web/include/apr_file_info.h:192: error: `ctime' redeclared as different kind of symbol /usr/include/time.h:254: error: previous declaration of `ctime' /web/include/apr_file_info.h:199: error: parse error before '}' token In file included from /web/include/apr_network_io.h:25, from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_file_io.h:503: error: parse error before "apr_off_t" /web/include/apr_file_io.h:692: error: parse error before "apr_off_t" In file included from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_network_io.h:535: error: parse error before "apr_off_t" In file included from /web/include/apr_buckets.h:31, from /web/include/httpd.h:39, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_mmap.h:133: error: parse error before "apr_off_t" /web/include/apr_mmap.h:160: error: parse error before "apr_off_t" In file included from /web/include/httpd.h:39, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_buckets.h:241: error: parse error before
#27795 [Com]: make install fails (PHP5 RC1, PHP5 latest)
ID: 27795 Comment by: manish_dharwadker at yahoo dot com Reported By: peoyli at bredband dot net Status: Open Bug Type: Compile Failure Operating System: OpenBSD 3.4 PHP Version: 5.0.0RC1 New Comment: I had the same issue with php5/4 as well as latest Apache2 sources. None of the shared library files libphp5.so, etc. were being created. I think this is because libtool shipped with OpenBSD is faulty and unfortunately even subsequent ones do not work. I think the libtool team needs to look at it. I switched to Mandrake 10.0 RC1 but unfortunately I am having other problems compiling php4/5 on it. Previous Comments: [2004-03-31 05:58:49] peoyli at bredband dot net Description: Make install fails on installing libphp5.so # make install Installing PHP SAPI module: apache2handler /usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules /usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/ cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la cp .libs/libphp5.a /usr/local/apache2/modules/libphp5.a ranlib -t /usr/local/apache2/modules/libphp5.a chmod 644 /usr/local/apache2/modules/libphp5.a libtool: install: warning: remember to run `libtool --finish /usr/local/src/php5-200403310830/libs' Warning! dlname not found in /usr/local/apache2/modules/libphp5.la. Assuming installing a .so rather than a libtool archive. chmod 755 /usr/local/apache2/modules/libphp5.so chmod: /usr/local/apache2/modules/libphp5.so: No such file or directory apxs:Error: Command failed with rc=65536 . *** Error code 1 Stop in /usr/local/src/php5-200403310830 (line 138 of Makefile). Reproduce code: --- # ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs \ --with-config-file-path=/usr/local/php/conf --with-mysql=/usr/local/mysql \ --enable-track-vars --with-gd --with-zlib-dir=/usr/local \ --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --enable-cli # make # make install ... chmod: /usr/local/apache2/modules/libphp5.so: No such file or directory apxs:Error: Command failed with rc=65536 . *** Error code 1 Stop in /usr/local/src/php5-200403310830 (line 138 of Makefile). Actual result: -- Installation fails to complete libphp5.la and libphp4.a is installed in Apache module directory. -- Edit this bug report at http://bugs.php.net/?id=27795&edit=1
#27791 [NEW]: PHP5 + Apache2 + Mandrake 10/RC1 Fails
From: manish_dharwadker at yahoo dot com Operating system: Mandrake 10.0 RC1 PHP version: 5.0.0RC1 PHP Bug Type: Compile Failure Bug description: PHP5 + Apache2 + Mandrake 10/RC1 Fails Description: OS: Mandrake 10.0 RC1 Binutils: binutils-2.14.90.0.7-2mdk Make: GNU Make 3.80 AutoConf: 2.13 Apache: Latest 2.0 CVS Pull 3/31 AND 2.0.49 (Stable) PHP5: Latest 5.0 RC1 Build Pull 3/31 (AND php4-stable) OpenSSL: 0.9.7d MySQL: 4.0.48/4.1.1-alpha/5.0-dev (ALL) Error Occurence: With ALL PHP Builds 4 stable AND 5 dev I checked the bug list and could not find one. Basically, the sapi/.../mod_php5.lo fails with various parse errors, etc. in apr.h. Please advise. - Manish. Compiled With: ./configure --prefix=/web --with-apxs2=/web/bin/apxs --enable-shared --enable-debug --enable-safe-mode --enable-sigchild --with-zlib=/usr --enable-memory-limit --with-openssl=/web --with-mysql=/web Reproduce code: --- Standard code ... no modifications Expected result: Fully compiled libphp4/5.so and other binaries Actual result: -- Log: gcc -I/web/include -I/web/include -I/web/include -Isapi/apache2handler/ -I/software/php-5.0.0RC1/sapi/apache2handler/ -DPHP_ATOM_INC -I/software/php-5.0.0RC1/include -I/software/php-5.0.0RC1/main -I/software/php-5.0.0RC1 -I/software/php-5.0.0RC1/Zend -I/usr/local/include/libxml2 -I/web/include -I/web/include/mysql -I/software/php-5.0.0RC1/TSRM -g -Wall -c /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c -fPIC -DPIC -o sapi/apache2handler/mod_php5.lo In file included from /web/include/ap_config.h:19, from /web/include/httpd.h:29, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr.h:262: error: parse error before "apr_off_t" /web/include/apr.h:262: warning: type defaults to `int' in declaration of `apr_off_t' /web/include/apr.h:262: warning: data definition has no type or storage class In file included from /web/include/apr_file_io.h:28, from /web/include/apr_network_io.h:25, from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_file_info.h:184: error: parse error before "apr_off_t" /web/include/apr_file_info.h:184: warning: no semicolon at end of struct or union /web/include/apr_file_info.h:186: warning: type defaults to `int' in declaration of `csize' /web/include/apr_file_info.h:186: warning: data definition has no type or storage class /web/include/apr_file_info.h:192: error: `ctime' redeclared as different kind of symbol /usr/include/time.h:254: error: previous declaration of `ctime' /web/include/apr_file_info.h:199: error: parse error before '}' token In file included from /web/include/apr_network_io.h:25, from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_file_io.h:503: error: parse error before "apr_off_t" /web/include/apr_file_io.h:692: error: parse error before "apr_off_t" In file included from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_network_io.h:535: error: parse error before "apr_off_t" In file included from /web/include/apr_buckets.h:31, from /web/include/httpd.h:39, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_mmap.h:133: error: parse error before "apr_off_t" /web/include/apr_mmap.h:160: error: parse error before "apr_off_t" In file included from /web/include/httpd.h:39, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_buckets.h:241: error: parse error before "apr_off_t" /web/include/apr_buckets.h:241: warning: no semicolon at end of struct or union /web/include/apr_buckets.h:243: error: conflicting types for `data' /software/php-5.0.0RC1/main/php.h:261: error: previous declaration of `data' /web/include/apr_buckets.h:251: error: `free' redeclared as different kind of symbol /usr/include/stdlib.h:569: error: previous declaration of `free'