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
-0000

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 -0000

Received: (qmail 22435 invoked by uid 500); 2 Apr 2004 06:42:12 -0000

Delivered-To: [EMAIL PROTECTED]

Received: (qmail 22400 invoked by uid 500); 2 Apr 2004 06:42:12 -0000

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
-0000

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
-0000

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 -0000

Received: (qmail 60502 invoked by uid 500); 2 Apr 2004 08:00:14 -0000

Delivered-To: [EMAIL PROTECTED]

Received: (qmail 60468 invoked by uid 500); 2 Apr 2004 08:00:14 -0000

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
-0000

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

------------------------------------------------------------------------

[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 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 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' 

/web/include/apr_buckets.h:254: error: parse error before 

'}' token 

/web/include/apr_buckets.h:633: error: field `b' has 

incomplete type 

/web/include/apr_buckets.h:701: error: parse error before 

"apr_off_t" 

/web/include/apr_buckets.h:724: error: parse error before 

"apr_off_t" 

/web/include/apr_buckets.h:760: error: parse error before 

"apr_off_t" 

/web/include/apr_buckets.h:1154: error: parse error before 

"apr_off_t" 

/web/include/apr_buckets.h:1353: error: parse error before 

"apr_off_t" 

/web/include/apr_buckets.h:1367: error: parse error before 

"apr_off_t" 

/web/include/apr_buckets.h:1417: error: parse error before 

"apr_off_t" 

/web/include/apr_buckets.h:1433: error: parse error before 

"apr_off_t" 

In file included 

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/httpd.h:778: error: parse error before 

"apr_off_t" 

/web/include/httpd.h:778: warning: no semicolon at end of 

struct or union 

/web/include/httpd.h:780: warning: type defaults to `int' 

in declaration of `bytes_sent' 

/web/include/httpd.h:780: warning: data definition has no 

type or storage class 

/web/include/httpd.h:791: error: parse error before 

"clength" 

/web/include/httpd.h:791: warning: type defaults to `int' 

in declaration of `clength' 

/web/include/httpd.h:791: warning: data definition has no 

type or storage class 

/web/include/httpd.h:794: error: parse error before 

"remaining" 

/web/include/httpd.h:794: warning: type defaults to `int' 

in declaration of `remaining' 

/web/include/httpd.h:794: warning: data definition has no 

type or storage class 

/web/include/httpd.h:796: error: parse error before 

"read_length" 

/web/include/httpd.h:796: warning: type defaults to `int' 

in declaration of `read_length' 

/web/include/httpd.h:796: warning: data definition has no 

type or storage class 

/web/include/httpd.h:927: error: parse error before '}' 

token 

In file included from /web/include/http_core.h:22, 

                 from
/software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:26, 

                 from
/software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: 

/web/include/util_filter.h:140: error: parse error before 

"apr_off_t" 

/web/include/util_filter.h:276: error: parse error before 

"apr_off_t" 

In file included 

from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:26, 

                 from
/software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: 

/web/include/http_core.h:204: error: parse error before 

"ap_get_limit_req_body" 

/web/include/http_core.h:204: warning: type defaults to 

`int' in declaration of `ap_get_limit_req_body' 

/web/include/http_core.h:204: warning: data definition has 

no type or storage class 

/web/include/http_core.h:263: error: `ap_auth_type' 

redeclared as different kind of symbol 

/web/include/httpd.h:850: error: previous declaration of 

`ap_auth_type' 

/web/include/http_core.h:617: error: parse error before 

"apr_off_t" 

/web/include/httpd.h:875: error: storage size of `finfo' 

isn't known 

make: *** [sapi/apache2handler/mod_php5.lo] Error 1 

 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27791&edit=1

Reply via email to