perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Wichitill <ma...@gmx.de>
Subject [mp2] Compilation failures on Win32
Date Sat, 27 Nov 2004 16:33:28 GMT
On Win32/VC6, compilation currently fails, probably caused by changes in rev 
106473:

cl -IC:/Dev/src/modperl-2.0/src/modules/perl -IC:/Dev/src/modperl-2.0/xs 
-IC:\dev\apache2\include -I /I"C:\dev\apache2\include" 
-IC:\dev\apache2\include -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 
-D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED 
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO 
-DPERL_MSVCRT_READFIX -I"C:\dev\perl\lib\CORE" -DMOD_PERL -MD -Zi -DNDEBUG 
-O1   -c modperl_filter.c && C:\dev\perl\bin\perl.exe -MExtUtils::Command -e 
mv modperl_filter.obj modperl_filter.lo
modperl_filter.c
modperl_filter.c(403) : error C2275: 'modperl_handler_t' : illegal use of 
this type as an expression
         modperl_types.h(177) : see declaration of 'modperl_handler_t'
modperl_filter.c(403) : error C2065: 'init_handler' : undeclared identifier
modperl_filter.c(410) : warning C4047: 'function' : 'struct 
modperl_handler_t *' differs in levels of indirection from 'int '
modperl_filter.c(410) : warning C4024: 'modperl_handler_name' : different 
types for formal and actual parameter 1
modperl_filter.c(412) : error C2223: left of '->attrs' must point to 
struct/union
modperl_filter.c(415) : warning C4047: 'function' : 'struct 
modperl_handler_t *' differs in levels of indirection from 'int '
modperl_filter.c(415) : warning C4024: 'modperl_handler_name' : different 
types for formal and actual parameter 1
modperl_filter.c(418) : warning C4047: '=' : 'struct modperl_handler_t *' 
differs in levels of indirection from 'int '
modperl_filter.c(506) : warning C4244: 'function' : conversion from '__int64 
' to 'long ', possible loss of data
modperl_filter.c(656) : warning C4018: '>=' : signed/unsigned mismatch
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

After reverting to 106472, the file compiles, but later linking fails:

link -dll -nologo -nodefaultlib -debug -opt:ref,icf 
-libpath:"C:\dev\perl\lib\CORE"  -machine:x86  c:\dev\apache2/lib/libapr.lib 
c:\dev\apache2/lib/libaprutil.lib c:\dev\apache2/lib/libhttpd.lib 
mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo 
modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo 
modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo 
modperl_io_apache.lo modperl_filter.lo modperl_bucket.lo modperl_mgv.lo 
modperl_pcw.lo modperl_global.lo modperl_env.lo modperl_cgi.lo 
modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo modperl_sys.lo 
modperl_module.lo modperl_svptr_table.lo modperl_const.lo 
modperl_constants.lo modperl_apache_compat.lo modperl_error.lo 
modperl_debug.lo modperl_common_util.lo modperl_common_log.lo 
modperl_hooks.lo modperl_directives.lo modperl_flags.lo modperl_xsinit.lo 
modperl_exports.lo  C:\dev\perl\lib\CORE\perl58.lib 
c:\dev\ms\vc\lib\oldnames.lib c:\dev\ms\vc\lib\kernel32.lib 
c:\dev\ms\vc\lib\user32.lib c:\dev\ms\vc\lib\gdi32.lib 
c:\dev\ms\vc\lib\winspool.lib c:\dev\ms\vc\lib\comdlg32.lib 
c:\dev\ms\vc\lib\advapi32.lib c:\dev\ms\vc\lib\shell32.lib 
c:\dev\ms\vc\lib\ole32.lib c:\dev\ms\vc\lib\oleaut32.lib 
c:\dev\ms\vc\lib\netapi32.lib c:\dev\ms\vc\lib\uuid.lib 
c:\dev\ms\vc\lib\wsock32.lib c:\dev\ms\vc\lib\mpr.lib 
c:\dev\ms\vc\lib\winmm.lib c:\dev\ms\vc\lib\version.lib 
c:\dev\ms\vc\lib\odbc32.lib c:\dev\ms\vc\lib\odbccp32.lib 
c:\dev\ms\vc\lib\msvcrt.lib  -def:C:/Dev/src/modperl-2.0/xs/modperl.def 
-out:mod_perl.so
modperl.def : error LNK2001: unresolved external symbol modperl_coderef2text
mod_perl.lib : fatal error LNK1120: 1 unresolved externals
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: 'link' : return code '0x475'
Stop.

Removing modperl_coderef2text from modperl.def lets compilation finish.

The next thing that fails is testing, since the generated httpd.conf 
contains the LockFile directive, which doesn't exist in the winnt MPM. After 
getting rid of that, all tests succeed.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message