You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Steve Hay <st...@uk.radan.com> on 2004/12/10 13:36:18 UTC
New Win32::API prerequisite
The introduction of the new post_config_startup.pl script, which uses
Apache::SizeLimit, broke things on Win32 for me.
I couldn't even start the server up. The error log contained the output
of this die() from Apache::SizeLimit's BEGIN block:
die "you must install Win32::API for Apache::SizeLimit " .
"to work on your platform.";
since I didn't have Win32::API installed!
Why doesn't Makefile.pL check for such prerequisites?
I also found that Win32-API crashes with an access violation error in
its own test suite. The crash happens on API.xs line 595:
iReturn = ApiFunctionInteger();
The crash happens when I try to step into ApiFunctionInteger(), whatever
that is. Here's the call stack at that point:
XS_Win32__API_Call(cv * 0x019f16cc) line 595
Perl_pp_entersub() line 2890 + 12 bytes
Perl_runops_debug() line 1449 + 9 bytes
S_run_body(long 1) line 1937
perl_run(interpreter * 0x00232ce8) line 1853 + 9 bytes
RunPerl(int 3, char * * 0x00233bf8, char * * 0x00232f70) line 217 + 12 bytes
main(int 3, char * * 0x00233bf8, char * * 0x00232f70) line 18 + 18 bytes
PERL! mainCRTStartup + 227 bytes
KERNEL32! 77e814c7()
This is using perl-5.8.6. If I use perl-5.8.5 instead then it works
OK. I guess I'll have to chase this elsewhere. I installed it anyway
for now (in my 5.8.6 setup), but it doesn't seem ideal.
- Steve
------------------------------------------------
Radan Computational Ltd.
We would like to take this opportunity to wish all our customers, suppliers and colleagues seasons greetings. We will not be sending corporate greetings cards this year. Instead, we will be making a donation to charity.
The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.
Re: New Win32::API prerequisite
Posted by Steve Hay <st...@uk.radan.com>.
Steve Hay wrote:
>This is using perl-5.8.6. If I use perl-5.8.5 instead then it works
>OK.
>
Ah -- different configurations for those perls: 5.8.5 was "release"
mode, 5.8.6 was "debug" mode.
It seems to be debug builds that don't work: 5.8.5 debug also fails, and
5.8.6 release works fine.
- Steve
------------------------------------------------
Radan Computational Ltd.
We would like to take this opportunity to wish all our customers, suppliers and colleagues seasons greetings. We will not be sending corporate greetings cards this year. Instead, we will be making a donation to charity.
The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.
Re: New Win32::API prerequisite
Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> Steve Hay wrote:
>
>> The introduction of the new post_config_startup.pl script, which uses
>> Apache::SizeLimit, broke things on Win32 for me.
>
>
> Well, not exactly. I've committed that 'use Apache::SizeLimit' before
> introducing the new post_config_startup.pl.
>
>> I couldn't even start the server up. The error log contained the
>> output of this die() from Apache::SizeLimit's BEGIN block:
>>
>> die "you must install Win32::API for Apache::SizeLimit " .
>> "to work on your platform.";
>>
>> since I didn't have Win32::API installed!
>>
>> Why doesn't Makefile.pL check for such prerequisites?
>
>
> In fact as Perrin mentioned somewhere before Win32's support in
> Apache::SizeLimit, since it's only threads now. So how about we just
> nuke it completely? Alternatively we can condition it's loading if
> Win32::API is available. It's your call, Steve.
>
It should have been conditioned to be loaded for non-threaded mpms in any
case. So I've committed that fix now.
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: New Win32::API prerequisite
Posted by Stas Bekman <st...@stason.org>.
Steve Hay wrote:
> The introduction of the new post_config_startup.pl script, which uses
> Apache::SizeLimit, broke things on Win32 for me.
Well, not exactly. I've committed that 'use Apache::SizeLimit' before
introducing the new post_config_startup.pl.
> I couldn't even start the server up. The error log contained the output
> of this die() from Apache::SizeLimit's BEGIN block:
>
> die "you must install Win32::API for Apache::SizeLimit " .
> "to work on your platform.";
>
> since I didn't have Win32::API installed!
>
> Why doesn't Makefile.pL check for such prerequisites?
In fact as Perrin mentioned somewhere before Win32's support in
Apache::SizeLimit, since it's only threads now. So how about we just nuke
it completely? Alternatively we can condition it's loading if Win32::API
is available. It's your call, Steve.
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org