Re: [APREQ1] Compile error on Win32
On Sun, 31 Jul 2005, Nikolay Ananiev wrote: "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. -- best regards, randy
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.
Re: [APREQ1] Compile error on Win32
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. -- best regards, randy
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 > >
Re: [APREQ1] Compile error on Win32
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
Re: [APREQ1] Compile error on Win32
"Randy Kobes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sun, 31 Jul 2005, Nikolay Ananiev wrote: > > > Compiles without problems but apreq/request.t segfaults > > The error_log is empty > > > > E:\Downloads\httpd-apreq>E:\Sites\Perl\bin\perl.exe -Iblib\arch -Iblib\lib > > t/TEST -verbose apreq/request.t > > e:/sites/servers/apache/apache.exe -d E:/Downloads/httpd-apreq/t -f > > E:/Download > > s/httpd-apreq/t/conf/httpd.conf -D APACHE1 -D PERL_USEITHREADS > > using Apache/1.3.33 > > > > waiting 60 seconds for server to start: .WARNING: StartServers has no effect > > on > > Win32 > > > > waiting 60 seconds for server to start: ok (waited 0 secs) > > server ananiev.discussion-works.com:8529 started > > Apache/1.3.33 (Win32) mod_perl/1.29_01-dev running... > > t\apreq\request1..2 > > # Running under perl version 5.008007 for MSWin32 > > # Win32::BuildNumber 813 > > # Current time local: Sun Jul 31 00:15:28 2005 > > # Current time GMT: Sat Jul 30 21:15:28 2005 > > # Using Test.pm version 1.25 > > # Using Apache/Test.pm version 1.27 > > # testing : basic param > > # expected: 42.5 > > # received: 42.5 > > ok 1 > > # Failed test 2 in t\apreq\request.t at line 26 > > # testing : basic upload > > # expected: data upload > > # received: 500 Unknown error > > not ok 2 > > FAILED test 2 > >Failed 1/2 tests, 50.00% okay > > Failed Test Stat Wstat Total Fail Failed List of Failed > > -- -- > > --- > > t\apreq\request.t21 50.00% 2 > > 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) > > > > 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. > -- > best regards, > randy >
Re: [APREQ1] Compile error on Win32
On Sun, 31 Jul 2005, Nikolay Ananiev wrote: Compiles without problems but apreq/request.t segfaults The error_log is empty E:\Downloads\httpd-apreq>E:\Sites\Perl\bin\perl.exe -Iblib\arch -Iblib\lib t/TEST -verbose apreq/request.t e:/sites/servers/apache/apache.exe -d E:/Downloads/httpd-apreq/t -f E:/Download s/httpd-apreq/t/conf/httpd.conf -D APACHE1 -D PERL_USEITHREADS using Apache/1.3.33 waiting 60 seconds for server to start: .WARNING: StartServers has no effect on Win32 waiting 60 seconds for server to start: ok (waited 0 secs) server ananiev.discussion-works.com:8529 started Apache/1.3.33 (Win32) mod_perl/1.29_01-dev running... t\apreq\request1..2 # Running under perl version 5.008007 for MSWin32 # Win32::BuildNumber 813 # Current time local: Sun Jul 31 00:15:28 2005 # Current time GMT: Sat Jul 30 21:15:28 2005 # Using Test.pm version 1.25 # Using Apache/Test.pm version 1.27 # testing : basic param # expected: 42.5 # received: 42.5 ok 1 # Failed test 2 in t\apreq\request.t at line 26 # testing : basic upload # expected: data upload # received: 500 Unknown error not ok 2 FAILED test 2 Failed 1/2 tests, 50.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed --- t\apreq\request.t21 50.00% 2 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) 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. -- best regards, randy
Re: [APREQ1] Compile error on Win32
Compiles without problems but apreq/request.t segfaults The error_log is empty E:\Downloads\httpd-apreq>E:\Sites\Perl\bin\perl.exe -Iblib\arch -Iblib\lib t/TEST -verbose apreq/request.t e:/sites/servers/apache/apache.exe -d E:/Downloads/httpd-apreq/t -f E:/Download s/httpd-apreq/t/conf/httpd.conf -D APACHE1 -D PERL_USEITHREADS using Apache/1.3.33 waiting 60 seconds for server to start: .WARNING: StartServers has no effect on Win32 waiting 60 seconds for server to start: ok (waited 0 secs) server ananiev.discussion-works.com:8529 started Apache/1.3.33 (Win32) mod_perl/1.29_01-dev running... t\apreq\request1..2 # Running under perl version 5.008007 for MSWin32 # Win32::BuildNumber 813 # Current time local: Sun Jul 31 00:15:28 2005 # Current time GMT: Sat Jul 30 21:15:28 2005 # Using Test.pm version 1.25 # Using Apache/Test.pm version 1.27 # testing : basic param # expected: 42.5 # received: 42.5 ok 1 # Failed test 2 in t\apreq\request.t at line 26 # testing : basic upload # expected: data upload # received: 500 Unknown error not ok 2 FAILED test 2 Failed 1/2 tests, 50.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed --- t\apreq\request.t21 50.00% 2 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) "Randy Kobes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 12 Jul 2005, Nikolay Ananiev wrote: > > > The latest svn of apreq 1.33 fails to compile on win32 > > ActivePerl 5.8.7, VisualStudio .NET, Apache 1.33 > [ .. ] > I'm not sure what's been changed with the most recent > ActivePerl, but try the following patch: > = > Index: Makefile.PL > === > --- Makefile.PL (revision 226567) > +++ Makefile.PL (working copy) > @@ -106,6 +106,7 @@ > VERSION => $myVERSION, > DIR => [qw(c Request Cookie)], > PREREQ_PM => \%require, > +DEFINE=> '-D_INC_MALLOC -D_INC_SIGNAL', > clean => { > FILES => "@{ clean_files() }", > }, > == > > -- > best regards, > randy kobes >
Re: [APREQ1] Compile error on Win32
On Tue, 12 Jul 2005, Nikolay Ananiev wrote: The latest svn of apreq 1.33 fails to compile on win32 ActivePerl 5.8.7, VisualStudio .NET, Apache 1.33 [ .. ] I'm not sure what's been changed with the most recent ActivePerl, but try the following patch: = Index: Makefile.PL === --- Makefile.PL (revision 226567) +++ Makefile.PL (working copy) @@ -106,6 +106,7 @@ VERSION => $myVERSION, DIR => [qw(c Request Cookie)], PREREQ_PM => \%require, +DEFINE=> '-D_INC_MALLOC -D_INC_SIGNAL', clean => { FILES => "@{ clean_files() }", }, == -- best regards, randy kobes
[APREQ1] Compile error on Win32
The latest svn of apreq 1.33 fails to compile on win32 ActivePerl 5.8.7, VisualStudio .NET, Apache 1.33 cl -c -I../c -I"E:/Sites/Servers/Apache/include" -I"E:/Sites/Servers/Ap ache/include/../os/win32" -I"E:/Downloads/modperl-1.0/src/modules/perl" -no logo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRY PT - DBUILT_BY_ACTIVESTATE -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CON TEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"1.34\" -DXS_VERSION=\"1.34\" "-IE:\Sites\Perl\lib\CORE" Request.c Request.c E:\Program Files\Microsoft Visual Studio .NET\Vc7\include\malloc.h(114) : error C2059: syntax error : '(' E:\Program Files\Microsoft Visual Studio .NET\Vc7\include\malloc.h(115) : error C2059: syntax error : '(' E:\Program Files\Microsoft Visual Studio .NET\Vc7\include\malloc.h(116) : error C2059: syntax error : '(' e:\Sites\Servers\Apache\include\os.h(106) : warning C4005: 'lstat' : macro redefinition E:\Sites\Perl\lib\CORE\XSUB.h(439) : see previous definition of 'lstat' E:\Program Files\Microsoft Visual Studio .NET\Vc7\include\signal.h(92) : error C2059: syntax error : '(' NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.