Re: [OT] EAPI strangeness

2002-06-03 Thread Doug MacEachern

On Tue, 4 Jun 2002, Matt Sergeant wrote:
 
 Seems to be I think - but then this isn't a bug I've been able to replicate. I 
 asked the person to try recompiling with an explicit -DEAPI and it made no 
 difference. AxKit uses Apache::src to get the headers and CFLAGS.
 
 Does the request_rec contents make any sense to you? It doesn't seem to be a 
 subrequest, yet per_dir_config is null...

actually, this looks related to largefiles.  you might need to do 
something like:

#from modperl-2.0/lib/Apache/Build.pm
use Config;

sub strip_lfs {
my($cflags) = @_;
return $cflags unless $Config{uselargefiles};
my $lf = $Config{ccflags_uselargefiles}
  || '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64';
$cflags =~ s/$lf//;
$cflags;
}

WriteMakefile(CFLAGS = strip_lfs($Config{cflags}, ...);

sadly, this would also need to be conditional.  doing it unless
$Apache::MyConfig::Setup{PERL_USELARGEFILES} == 1

either that or have the user rebuild perl with -Uuselargefiles

yes, it is a bloody nightmare.



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




Re: [OT] EAPI strangeness

2002-06-03 Thread Doug MacEachern

On Tue, 4 Jun 2002, Matt Sergeant wrote:
 
 OK, I'm applying the following diff. Does it make sense to you? (I'm 
 completely lost as to why I need to do this, so any guidance is most 
 welcome!)

looks right to me.  same issues that have been plaguing modperl itself 
ever since 5.6.0 was released.  the largefile flags change the 
sizeof(request_rec), so everything that dereferences the request_rec must 
be compiled with or without these flags.  normally the issue is just 
between modperl and apache, but since axkit extends with xs and 
dereferences request_rec, if the lfs flags were ripped out when building 
modperl, they must also be ripped out when building axkit.  this is likely 
only the case when modperl is built with USE_APXS.  when modperl is linked 
static or USE_DSO=1 and modperl compiles apache, the lfs flags are added 
to the apache build to avoid the size mismatches.




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