perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Ing-Simmons <nick.ing-simm...@elixent.com>
Subject Re: [perl #22163] perlio callback functions get their args mangled
Date Mon, 12 May 2003 08:00:08 GMT
Stas Bekman <stas@stason.org> 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
http://www.ni-s.u-net.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message