perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Ing-Simmons <>
Subject Re: [perl #22163] perlio callback functions get their args mangled
Date Mon, 12 May 2003 08:00:08 GMT
Stas Bekman <> writes:
>Thanks Nick.
>After confirming that using an explicit 'long long int offset' solves the 
>problem (for the given setup):
>static IV PerlIOAPR_seek(pTHX_ PerlIO *f, long long int offset, int whence)
>I went to figure out where the difference comes from. And then I've found that 
>mod_perl rips off the flags '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' when 
>building mod_perl objects, since Apache 2.0 (to be exact libapr) always builds 
>without largefiles support (at least on linux). The two are binary 
>incompatible. Sigh :(
>Looks like it happens to work for me, if I build only apr_perlio.c with 
>'-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', since that's the only place 
>where we use Off_t. I don't know whether it'll work on other platforms.
>Currently, if you want to use APR::PerlIO's seek function, with offset 
>different from 0, you have to rebuild perl without uselargefiles, which is far 
>from being an acceptable solution.

Does this make the ticket "resolved" - as far as perl is concerned?

Nick Ing-Simmons

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message