Joe Orton wrote:
I think I answered this one pre-emptively in my "background" post :)

On Mon, Apr 05, 2004 at 01:33:16PM -0700, Stas Bekman wrote:

There is one more bit that is not clear to me:

httpd 2.1 gives me: -D_LARGEFILE64_SOURCE


... this is what's needed for using approach (2) to Doing LFS


perl gives me: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64


... this is what's needed for using approach (1) to Doing LFS


since we look for /-D_FILE_OFFSET_BITS=64/ and we don't find it on the apache side we strip /-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64/, but now that I've added EXTRA_CPPFLAGS, I get -D_LARGEFILE64_SOURCE pushed in. Isn't that a problem? We strip -D_LARGEFILE_SOURCE but add -D_LARGEFILE64_SOURCE? Aren't the two indicated the same thing?


No, they're different, and no, it isn't a problem, that's exactly the
desired outcome.

good: -D_LARGEFILE64_SOURCE
 bad: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

Ah, OK. I got the -D_FILE_OFFSET_BITS=64 part, but thought that -D_LARGEFILE_SOURCE is a different story. If I remember correctly you've suggested to strip only the -D_FILE_OFFSET_BITS=64 part


  if ($perl_lfs64 && !$apr_lfs64) {
     # Serious Conflict!  Strip -D_FILE_OFFSET_BITS=64 from $perl_cflags.
  }

I did keep the strip of the whole /-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64/

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to