[PATCH] Fix small issue in win32/Configure.pl
currently apache_prog_name doesn't return the full path to httpd.exe. This patch fixes it. Index: win32/Configure.pl === --- win32/Configure.pl (revision 657565) +++ win32/Configure.pl (working copy) @@ -411,8 +411,9 @@ my $apache = shift; my $prog; for my $trial(qw(Apache.exe httpd.exe)) { -next unless -e catfile($apache, 'bin', $trial); -$prog = $trial; +my $path = catfile($apache, 'bin', $trial); +next unless -e $path; +$prog = $path; last; } die Could not determine the Apache2 binary name unless $prog;
[PATCH] Fix mod_apreq2 build
This patch fixes mod_apreq2 build by using APREQ_DECLARE_EXPORT begin 666 mod_apreq2.patch [EMAIL PROTECTED]('=I;C,R+VUO9%]A')E3(N;6%K#0H]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/[EMAIL PROTECTED],S(O;6]D7V%PF5Q,BYM86L)*')E=FES:6]N(#8U M-S4W-RD-BLK*R!W:6XS,B]M;V1?87!R97$R+FUA:PDH=V]R:VEN9R!C;W!Y M*0T*0$ @+3R+#@*SR+#@0$ -B B)A/551$25(I(B ZB @( @:68@ M;F]T(5X:7-T((D*$]55$1)4BDO)A.54Q,*2(@;6MD:7(@(B0H3U541$E2 M*2(*( HM0U!07U!23TH]+VYO;]G;R [EMAIL PROTECTED]S(]/,B O1 B5TE.,S(B M(]$().1$554B(]$()?5TE.1$]74R(@+T0@(E]-0D-3(B O1 B7U53 M4D1,3(@+T0@(DU/1%]!4%)%45]%6%!/4E13(B O22(D*$%004-(12E:6YC M;'5D92(@+TDB)A!4%)%45](3TU%*5QI;F-L=61E(B O22(D*$U/1$1)4BDB M(]96 [EMAIL PROTECTED],@BM#4%!?4%)/2CTO;F]L;V=O(]-1 O5S,@+T\R(]$ M()724XS,B(@+T0@(DY$14)51R(@+T0@(E]724Y$3U=3(B O1 B7TU0U,B M(]$()?55-21$Q,(B O1 B05!215%?1$5#3$%215]%6%!/4E0B(])(B0H M05!!0TA%*5QI;F-L=61E(B O22(D*$%04D517TA/344I7EN8VQU94B(]) M(B0H34]$1$E2*2(@+UE8(]1 O8R *($U43%]04D]*/2]N;[EMAIL PROTECTED]@ M(DY$14)51R(@+VUK='EP;EB,C S(]W:6XS,B *($)30S,R/6)S8VUA:V4N M97AEB!4T,S,E]3$%'4STO;F]L;V=O(]O(B0H3U541$E2*5QM;V1?87!R *97$R+F)S8R(@@`` ` end
APR::Request::CGI::upload() should be removed?
Joe, after moving upload() to APR::Request, I think APR::Request::CGI::upload() should be removed. Am I right? Here's a patch Index: glue/perl/xsbuilder/APR/Request/CGI/CGI.pm === --- glue/perl/xsbuilder/APR/Request/CGI/CGI.pm (revision 279567) +++ glue/perl/xsbuilder/APR/Request/CGI/CGI.pm (working copy) @@ -1,29 +1,3 @@ require APR::Request; use APR::Pool; push @ISA, APR::Request; - -sub upload { -my $req = shift; -my $body = $req-body; -$body-param_class(APR::Request::CGI::Upload); -if (@_) { -return grep {$_-upload} $body-get(shift) if wantarray; -for ($body-get(shift)) { -return $_ if $_-upload; -} -} -return map {$_-upload ? $_-name : () } values %$body; -} - - -package APR::Request::CGI::Upload; -use APR::Request::Param; -push our @ISA, APR::Request::Param; - -sub type {} -sub filename {} -sub link {} -sub fh {} -sub tempname {} -sub io {} -sub slurp {}
Re: Problem with $req-upload()
Joe Schaefer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Joe Schaefer [EMAIL PROTECTED] writes: Nikolay Ananiev [EMAIL PROTECTED] writes: Hello, when I try to use my $req = APR::Request::Apache2-handle($r); my $f = $req-upload('file'); Hmm, so far there's no upload() method in APR::Request. Ah, oops. It is available after all: APR::Request::upload is currently provided by the APR::Request::Param module. Go figure. Thanks, when I load APR::Request::Param the error is gone, but there is another when I try to use: my $req = APR::Request::Apache2-handle($r); my $f = $req-upload('file'); print $f-filename; print $f-size; $f-link('/some/path'); There's no such methods. [Wed Sep 07 11:20:40 2005] [error] Can't locate auto/APR/Request/Param/link.al in @INC (@INC contains: c:/Doink/lib c:/Doink/cgi-bin C:/Doink/Perl/lib C:/Doink/Perl/site/lib . C:/Doink/Apache2) at c:/Doink/cgi-bin/TT.pm line 40\n
Problem with $req-upload()
Hello, when I try to use my $req = APR::Request::Apache2-handle($r); my $f = $req-upload('file'); I get the following error in the error log: [Tue Sep 06 19:09:10 2005] [error] Can't locate auto/APR/Request/Apache2/upload.al in @INC (@INC contains: d:/sites/lib d:/sites/cgi-bin D:/Sites/Perl/lib D:/Sites/Perl/site/lib . D:/Sites/Servers/Apache2) at d:/sites/lib/DWCore/Req.pm line 314\n
[patch] Fix compile errors on Cygwin
The attached patch fixes this kind of compile errors: /cygdrive/d/downloads/perl/httpd-apreq-2/glue/perl/xsbuilder/APR/Request/Coo kie/APR__Request__Cookie.h:46: error: external linkage required for symbol 'apreq_xs_cookie_table_do' because of 'dllexport' attribute. begin 666 patch.txt [EMAIL PROTECTED](=L=64O5R;]XV)U:6QD97(O05!2+U)E75EW0O05!27U]2 [EMAIL PROTECTED]CT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T-BTM+2!G;'5E+W!E MFPO'-B=6EL95R+T%04B]297%U97-T+T%04E]?4F5Q=65S=YH2AR979I MVEO;B R-C0V,C[EMAIL PROTECTED])L+WAS8G5I;1EB]!4%(O4F5Q M=65S=]!4%)?7U)E75EW0N: DH=V]R:VEN9R!C;W!Y*0T*0$ @+3$L-B K M,2PV($! #0H@(VEN8VQU94@(F%PF5Q7WAS7W1A8FQERYH(@H@BUS=%T M:6,@6%,H87!R97%?'-?:F%R*0HK35!?4U1!5$E#(%A3*%PF5Q7WAS7VIA MBD*('L*( @(!D6%-!4D=3.PH@( @(%PF5Q7VAA;F1L95]T(IR97$[ MD! (TW.2PW(LW.2PW($! [EMAIL PROTECTED]@B *+7-T871I8R!84RAA')E5]X MU]AF=S*0HK35!?4U1!5$E#(%A3*%PF5Q7WAS7V%R9W,IB![B @( @ M9%A305)'4SL*( @(!A')E5]H86YD;5?= JF5Q.PI 0 M,34Y+#@ M*S$U.2PW($! #0H@( @('T*('T*( HMW1A=EC(%A3*%PF5Q7WAS7V)O M9'DIBM-4%]35$%424,@6%,H87!R97%?'-?8F]D2D*('L*( @(!D6%-! M4D=3.PH@( @(%PF5Q7VAA;F1L95]T(IR97$[D! (TR-# L-R K,C0P M+#@0$ -B!]B *( HMW1A=EC(%A3*%PF5Q7WAS7W!AF%M*0HK35!? M4U1!5$E#(%A3*%PF5Q7WAS7W!AF%M*0H@PH@( @(184T%21U,[B @ M( @87!R97%?:%N9[EMAIL PROTECTED])E3L*0$ @+3,Q-RPW(LS,3L-R! 0 T* M('T*( H@BUS=%T:6,@6%,H87!R97%?'-?%RV4IBM-4%]35$%424,@ M6%,H87!R97%?'-?%RV4IB![B @( @9%A305)'4SL*( @(!A')E M5]H86YD;5?= JF5Q.PI);F1E[EMAIL PROTECTED])L+WAS8G5I;1EB]! M4%(O4F5Q=65S=]087)A;2]!4%)?7U)E75EW1?7U!A[EMAIL PROTECTED]CT]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T-BTM+2!G;'5E+W!EFPO'-B=6EL95R+T%0 M4B]297%U97-T+U!AF%M+T%04E]?4F5Q=65S=%]?4%R86TN: DHF5V:7-I M;VX@,C8T-C(W*0T**RLK(=L=64O5R;]XV)U:6QD97(O05!2+U)E75E MW0O4%R86TO05!27U]297%U97-T7U]087)A;2YH2AW;W)K:6YG(-O'DI M#0I 0 M-#,L-R K-#,L-R! 0 T*( @(!R971UFX@G8[B!]B *+7-T M871I8R!84RAA')E5]XU]P87)A;5]T86)L95]D;RD**TU07U-4051)0R!8 M4RAA')E5]XU]P87)A;5]T86)L95]D;RD*('L*( @(!D6%-!4D=3.PH@ M( @('-TG5C=!A')E5]XU]D;U]AF@9 ]('[EMAIL PROTECTED],3[EMAIL PROTECTED],3P@ M3E5,3[EMAIL PROTECTED](6!].PI 0 M-SDL-R K-SDL-R! 0 T*( @(!84U)%5%52 M3E])5BAR=BD[B!]B *+7-T871I8R!84RAA')E5]XU]P87)A;5]T86)L M95]151#2D**TU07U-4051)0R!84RAA')E5]XU]P87)A;5]T86)L95] M151#2D*('L*( @(!D6%-!4D=3.PH@( @(-O;G-T(%PE]T86)L95]T M(IT.PI 0 M,30R+#@*S$T,BPW($! #0H@( @( @(!84U)[EMAIL PROTECTED] M*3L*('T*( HMW1A=EC(%A3*%PF5Q7WAS7W!AF%M7W1A8FQE7TY%6%1+ M15DIBM-4%]35$%424,@6%,H87!R97%?'-?%R86U?=%B;5?3D585$M% M62D*('L*( @(!D6%-!4D=3.PH@( @(%-6([EMAIL PROTECTED]:CL*0$ @+3$W M-BPW(LQ-S8L-R! 0 T*('T*( H@BUS=%T:6,@6%,H6%-?05!27U]297%U M97-T7U]087)A;5]N:6PIBM-4%]35$%424,@6%,H6%-?05!27U]297%U97-T M7U]087)A;5]N:6PIB![B @( @9%A305)'4SL*( @( H=F]I9EI=5M MSL*0$ @+3(P.2PW(LR,#DL-R! 0 T*( [EMAIL PROTECTED]@6%A8('1H97-E($%P86-H M93HZ57!L;V%D.CIFEG861E(9U;F-S([EMAIL PROTECTED];W9EB!AR!V M86YI;QA(%A3+B J+PH@BUS=%T:6,@6%,H87!R97%?'-?8G)I9V%D95]C M;W!Y*0HK35!?4U1!5$E#(%A3*%PF5Q7WAS7V)R:6=A95?8V]P2D*('L* M( @(!D6%-!4D=3.PH@( @(%PE]B=6-K971?8G)I9V%D92 J8F(L(IB M8E]C;W!Y.PI 0 M,C,T+#@*S(S-PW($! #0H@( @(%A34D5455).*#$I [EMAIL PROTECTED]@BUS=%T:6,@6%,H87!R97%?'-?8G)I9V%D95]R96%D*0HK35!? M4U1!5$E#(%A3*%PF5Q7WAS7V)R:6=A95?F5A9D*('L*( @(!D6%-! M4D=3.PH@( @(%PE]B=6-K971?8G)I9V%D92 J8F([D! (TS,S(L-R K M,S,R+#@0$ -B @( @6%-215154DY?258H=V%N=D[B!]B *+7-T871I M8R!84RAA')E5]XU]BFEG861E7W)E861L:6YE*0HK35!?4U1!5$E#(%A3 M*%PF5Q7WAS7V)R:6=A95?F5A9QI;F4IB![B @( @9%A305)'4SL* M( @(!A')?8G5C:V5T7V)R:6=A9[EMAIL PROTECTED])B.PI);F1E[EMAIL PROTECTED])L M+WAS8G5I;1EB]!4%(O4F5Q=65S=]#;V]K:64O05!27U]297%U97-T7U]# M;V]K:64N: T*/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/0T*+2TM(=L=64O5R M;]XV)U:6QD97(O05!2+U)E75EW0O0V]O:VEE+T%04E]?4F5Q=65S=%]? M0V]O:VEE+F@)*')E=FES:6]N(#(V-#8R-RD-BLK*R!G;'5E+W!EFPO'-B M=6EL95R+T%04B]297%U97-T+T-O;VMI92]!4%)?7U)E75EW1?7T-O;VMI M92YH2AW;W)K:6YG(-O'DI#0I 0 M-#(L-R K-#(L-R! 0 T*( @(!R M971UFX@G8[B!]B *+7-T871I8R!84RAA')E5]XU]C;V]K:65?=%B M;5?9\IBM-4%]35$%424,@6%,H87!R97%?'-?8V]O:VEE7W1A8FQE7V1O M*0H@PH@( @(184T%21U,[B @( @W1R=6-T(%PF5Q7WAS7V1O7V%R M9R!D(#T@R!.54Q,+!.54Q,+!.54Q,+!A5$A8('T[D! (TW.PW(LW M.PW($! #0H@( @(%A34D5455).7TE6*')V*3L*('T*( HMW1A=EC(%A3 M*%PF5Q7WAS7V-O;VMI95]T86)L95]151#2D**TU07U-4051)0R!84RAA M')E5]XU]C;V]K:65?=%B;[EMAIL PROTECTED]B![B @( @9%A305)'4SL* M( @(!C;VYS=!A')?=%B;5?= J=#L*0$ @+3$T,PW(LQ-# L-R! M0 T*( @( @( @6%-215154DXH,D[B!]B *+7-T871I8R!84RAA')E M5]XU]C;V]K:65?=%B;5?3D585$M%62D**TU07U-4051)0R!84RAA')E M5]XU]C;V]K:65?=%B;5?3D585$M%62D*('L*( @(!D6%-!4D=3.PH@ M( @(%-6([EMAIL PROTECTED]:CL*0$ @+3$W-PW(LQ-S0L-R! 0 T*('T*( H@ MBUS=%T:6,@6%,H6%-?05!27U]297%U97-T7U]#;V]K:65?;FEL*0HK35!? M4U1!5$E#(%A3*%A37T%04E]?4F5Q=65S=%]?0V]O:VEE7VYI;D*('L*( @ M(!D6%-!4D=3.PH@( @(AV;VED*6ET96US.PI);F1E[EMAIL PROTECTED])L M+WAS8G5I;1EB]!4%(O4F5Q=65S=]%G)OB]!4%)?7U)E75EW1?7T5R M[EMAIL PROTECTED]CT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
Build error on FreeBSD-5.4
This is the error I get when I run make (this happens on freebsd 5.2 too) ar cru .libs/mod_apreq2.a handle.o filter.o ranlib .libs/mod_apreq2.a creating mod_apreq2.la (cd .libs rm -f mod_apreq2.la ln -s ../mod_apreq2.la mod_apreq2.la) make: don't know how to make all-local. Stop *** Error code 1 Stop in /house/doink123/libapreq2-2.06-dev/module. *** Error code 1 Stop in /house/doink123/libapreq2-2.06-dev.
[apreq2] problem with $req-args('key')
$req-args('key'); doesn't return the value of 'key' but the whole query string.
Re: [APREQ1] Compile error on Win32
Randy Kobes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sun, 31 Jul 2005, Nikolay Ananiev wrote: Randy Kobes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [ ... ] Did you build mod_perl (and Perl) on your own? VC++ 7 (the .NET framework), which you're using, has some incompatibilities, in principle, with VC++ 6, which is what ActivePerl is compiled with. Yes, I've built MP on my own. Did you also build Perl using VC++ 7? Or are you using ActivePerl? The problem with using ActivePerl (which is built with VC++ 6) and compiling extensions with VC++ 7 is that the two versions use different C runtime libraries. These are responsible for I/O and for memory allocation/deallocation, so one can run into trouble, eg, if one runtime lib (from an extension built with VC++ 7) allocates a chunk of memory and a different runtime lib (from Perl, built with VC++ 6) tries to deallocate it; it may try to dellocate a the wrong block of memory. Perl is the standard ActivePerl binary from ActiveStates. Thanks for the help, Randy. Unfortunately, I don't have access to VC++ 7 at the moment, so I can't say for sure that this is the problem (I did verify that compiling libapreq using VC++ 6 with ActivePerl passes all the tests). So you might try compiling Perl with VC++ 7 - it should compile OK. Let us know if this helps. I've recompiled perl, apache and mod_perl with .NET and now all tests pass. I guess you can commit your patch.
Loading Apache2::Request under CGI on Win32
Hello, I'd like my application to do the following: if(eval{require Apache2::Request}) { use_apreq(); } else { use_cgi_pm(); } This works with mod_perl on Win32, but has problems under CGI (again on Win32). The problem appears when libapreq2.dll and mod_apreq2.so are not in $ENV{PATH}. When eval{require Apache2::Request} is executed, on the desktop appears a message saying that libapreq2.dll could not be found in the path. This would hold the perl process until the administrator hits OK. Is there any way to prevent this message from showing up? Or maybe there should be a warning while installing apreq2 that in order to use Apache2::Request under CGI, libapreq2.dll and mod_apreq2.so must be in the PATH? I know I can just add the missing paths to the environment, but I'm going to sell my application and I'd like to prevent the problems that may appear on my clients' servers.
Re: [APREQ1] Compile error on Win32
It's empty. Philip M. Gollucci [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Failed 1/1 test scripts, 0.00% okay. 1/2 subtests failed, 50.00% okay. [ error] error running tests (please examine t\logs\error_log) Another question is whats in the t\logs\error_log file :) -- END What doesn't kill us can only make us stronger. Nothing is impossible. Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198 Consultant / http://p6m7g8.net/Resume/ Senior Developer / Liquidity Services, Inc. http://www.liquidityservicesinc.com http://www.liquidation.com http://www.uksurplus.com http://www.govliquidation.com http://www.gowholesale.com