You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by eufordia <eu...@tiscalinet.it> on 2004/10/20 17:21:33 UTC

[PATCH] configure for apr

I think there is an error in the configure script:
you use 'off64_t' instead of '__off64_t'.

I work in Linux Red Hat 9.0:

with the original file gcc3.2.2 don't want to compile my prg, because it 
find an error in apr.h at line 261: "typedef  __off64_t           
apr_off_t;"

with the new file (__off64_t) it's ok.

excuse me, if this is my error.

bye
Luca


Re: [PATCH] configure for apr

Posted by Joe Orton <jo...@redhat.com>.
Please cc dev@apr for APR discussion.

On Fri, Oct 22, 2004 at 10:46:18AM +0200, eufordia wrote:
> Joe Orton ha scritto:
> >Did you pass `apr-config --cppflags --cflags` to the compiler when
> >building your application?  If not, this is an expected failure.
>
> No, I 've compiled without option, but there is un error in my e_mail:
> the incrimate line, 261, in the original file is: "typedef off64_t    
> apr_off_t;"

In case it was not clear: to fix the problem you do just need to pass
the `apr-config --cppflags --cflags` output to the compiler when you
build your application.  Having "typedef off64_t apr_off_t" in apr.h is
correct on this platform.

Regards,

joe

Re: [PATCH] configure for apr

Posted by Joe Orton <jo...@redhat.com>.
On Wed, Oct 20, 2004 at 05:21:33PM +0200, eufordia wrote:
> I think there is an error in the configure script:
> you use 'off64_t' instead of '__off64_t'.
> 
> I work in Linux Red Hat 9.0:
> 
> with the original file gcc3.2.2 don't want to compile my prg, because it 
> find an error in apr.h at line 261: "typedef  __off64_t           
> apr_off_t;"

Did you pass `apr-config --cppflags --cflags` to the compiler when
building your application?  If not, this is an expected failure.

joe