So I finally decided to set up my own debug builds of Perl and Apache in addition to my normally used AS and ASF binaries. Compiling and installing Perl and Apache worked fine, however when I run "nmake test" of mod_perl CVS, the Apache startup fails early with the following odd error messages. The code pointed to by the messages looks perfectly fine to me.
[...]
C:\Dev\test\perl\bin\perl.exe -Iblib\arch -Iblib\lib t/TEST -clean
C:\Dev\test\perl\bin\perl.exe -Iblib\arch -Iblib\lib t/TEST -bugreport -verbose=0
"my" variable $script masks earlier declaration in same scope at C:\Dev\src\modperl-2.0\t\response\TestApache\subprocess.pm line 64.
Compilation failed in require at C:/Dev/test/perl/site/lib/Apache/TestConfigPerl.pm line 593.
Can't use global @_ in "my" at C:\Dev\src\modperl-2.0\blib\lib/Apache/XSLoader.pm line 30, near "(@_"
Compilation failed in require at C:\Dev\src\modperl-2.0\blib\lib/Apache/RequestRec.pm line 24.
BEGIN failed--compilation aborted at C:\Dev\src\modperl-2.0\blib\lib/Apache/RequestRec.pm line 24.
Compilation failed in require at C:\Dev\src\modperl-2.0\t\response\TestDirective\perlmodule.pm line 12.
BEGIN failed--compilation aborted at C:\Dev\src\modperl-2.0\t\response\TestDirective\perlmodule.pm line 12.
Compilation failed in require at C:/Dev/test/perl/site/lib/Apache/TestConfigPerl.pm line 593.
Undefined subroutine &Apache::XSLoader::load called at C:\Dev\src\modperl-2.0\blib\lib/Apache/RequestIO.pm line 26.
Compilation failed in require at C:\Dev\src\modperl-2.0\t\response\TestDirective\perlrequire.pm line 15.
BEGIN failed--compilation aborted at C:\Dev\src\modperl-2.0\t\response\TestDirective\perlrequire.pm line 15.
Compilation failed in require at C:/Dev/test/perl/site/lib/Apache/TestConfigPerl.pm line 593.
[...]
The builds use the defaults options, only with debugging enabled and the install path set.
BTW, the segfault resolving instructions in /docs/2.0/user/help/help.html are Unix-only, if building Apache with Apache.dsw/"Win32 Debug" and Perl with "CFG=Debug" in the Makefile isn't enough, let me know.
*** mod_perl version 1.9915
*** using C:\Dev\src\modperl-2.0\lib\Apache\BuildConfig.pm
*** Makefile.PL options: MP_APR_LIB => aprext MP_AP_PREFIX => C:\dev\test\apache2 MP_COMPAT_1X => 1 MP_DEBUG => 1 MP_GENERATE_XS => 1 MP_LIBNAME => mod_perl MP_TRACE => 1 MP_USE_DSO => 1 MP_USE_STATIC => 1
*** C:\dev\test\apache2\bin\Apache.EXE -V Server version: Apache/2.0.50 Server built: Aug 15 2004 14:06:59 Server's Module Magic Number: 20020903:8 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR="server/mpm/winnt" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/apache" -D SUEXEC_BIN="/apache/bin/suexec" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error.log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf"
*** (apr|apu)-config linking info
/libpath:"C:\dev\test\apache2\lib" libapr.lib /libpath:"C:\dev\test\apache2\lib" libaprutil.lib
*** c:\dev\test\perl\bin\perl.exe -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -Gf -W3 -Od -MD -Zi -DDEBUGGING -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX',
optimize='-Od -MD -Zi -DDEBUGGING',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -libpath:"c:\dev\test\perl\lib\CORE" -machine:x86'
libpth=\lib
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -libpath:"c:\dev\test\perl\lib\CORE" -machine:x86'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
Built under MSWin32
Compiled at Aug 15 2004 13:26:47
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
c:/Dev/test/perl/lib
c:/Dev/test/perl/site/lib
.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
