You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Markus Wichitill <ma...@gmx.de> on 2004/11/27 17:33:28 UTC

[mp2] Compilation failures on Win32

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


Re: [mp2] Compilation failures on Win32

Posted by Stas Bekman <st...@stason.org>.
Markus Wichitill wrote:
> Stas Bekman wrote:
> 
>> This problem was now addressed as well. Please try with the latest svn.
> 
> 
> With latest SVN, compilation is ok, but t\api\aplog.t 32 fails (on 
> Linux, too):

> [harmless errors...]
> [Sat Nov 27 18:29:09 2004] [error] [client 127.0.0.1] Can't run 'setting 
> loglevel' in the threaded environment after server startup at 
> C:\\Dev\\src\\modperl-2.0\\t\\response/TestAPI/aplog.pm line 160, <$fh> 
> line 9.\n

Right, threaded mpms can't change loglevel at runtime, fixed in svn. (was 
testing with prefork, so missed that). Thanks Markus.


-- 
__________________________________________________________________
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: [mp2] Compilation failures on Win32

Posted by Markus Wichitill <ma...@gmx.de>.
Stas Bekman wrote:
> This problem was now addressed as well. Please try with the latest svn.

With latest SVN, compilation is ok, but t\api\aplog.t 32 fails (on Linux, too):

[...]
ok 31
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>200 OK</title>
</head><body>
<h1>OK</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
[...]

[harmless errors...]
[Sat Nov 27 18:29:09 2004] [error] [client 127.0.0.1] Can't run 'setting 
loglevel' in the threaded environment after server startup at 
C:\\Dev\\src\\modperl-2.0\\t\\response/TestAPI/aplog.pm line 160, <$fh> line 
9.\n


t\api\internal_redirect.t hangs (again, on Linux, too):

t\api\internal_redirect....1..4
# Running under perl version 5.008004 for MSWin32
# Win32::BuildNumber 810
# Current time local: Sat Nov 27 18:52:44 2004
# Current time GMT:   Sat Nov 27 17:52:44 2004
# Using Test.pm version 1.25
# Using Apache/Test.pm version 1.17

t/api/internal_redirect....1..4
# Running under perl version 5.008005 for linux
# Current time local: Sat Nov 27 19:10:40 2004
# Current time GMT:   Sat Nov 27 18:10:40 2004
# Using Test.pm version 1.25
# Using Apache/Test.pm version 1.17

Nothing in the logs.

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


Re: [mp2] Compilation failures on Win32

Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
[...]
>> 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.
> 
> 
> doh! I knew that will happen :( I've asked whether it works everywhere, 
> but as you say it's not :(

This problem was now addressed as well. Please try with the latest svn.

Thanks Markus!

-- 
__________________________________________________________________
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: [mp2] Compilation failures on Win32

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 21 Dec 2004, Markus Wichitill wrote:

> Stas Bekman wrote:
> >
> > Yup, the "usual" declaration, after code problem :( Please try again
> > with the current svn.
>
> More of the same (current SVN)?
>
>          cl -IC:/Dev/src/modperl-2.0/src/modules/perl
> -IC:/Dev/src/modperl-2.0/xs -IC:\dev\apache2\include -I"C:\dev\apac
> he2\include"   -IC:\dev\apache2\include -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1
> -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_F
> CRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
> -DUSE_PERLIO -DPERL_MSVCRT_READFIX -I"C:\dev\perl\lib\C
> ORE" -DMOD_PERL -MD -Zi -DNDEBUG -O1   -c modperl_cmd.c &&
> C:\dev\perl\bin\perl.exe -MExtUtils::Command -e mv modperl_cm
> d.obj modperl_cmd.lo
> modperl_cmd.c
> modperl_cmd.c(284) : error C2143: syntax error : missing ';' before 'type'

Should be fixed in the current svn sources.

-- 
best regards,
randy


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


Re: [mp2] Compilation failures on Win32

Posted by Markus Wichitill <ma...@gmx.de>.
Stas Bekman wrote:
> Markus Wichitill wrote:
>> On Win32/VC6, compilation currently fails, probably caused by changes 
>> in rev 106473:
> 
>> 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'
> 
> Yup, the "usual" declaration, after code problem :( Please try again 
> with the current svn.

More of the same (current SVN)?

         cl -IC:/Dev/src/modperl-2.0/src/modules/perl 
-IC:/Dev/src/modperl-2.0/xs -IC:\dev\apache2\include -I"C:\dev\apac
he2\include"   -IC:\dev\apache2\include -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 
-DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_F
CRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS 
-DUSE_PERLIO -DPERL_MSVCRT_READFIX -I"C:\dev\perl\lib\C
ORE" -DMOD_PERL -MD -Zi -DNDEBUG -O1   -c modperl_cmd.c && 
C:\dev\perl\bin\perl.exe -MExtUtils::Command -e mv modperl_cm
d.obj modperl_cmd.lo
modperl_cmd.c
modperl_cmd.c(284) : error C2143: syntax error : missing ';' before 'type'
modperl_cmd.c(285) : error C2275: 'apr_finfo_t' : illegal use of this type 
as an expression
         C:\dev\apache2\include\apr_file_info.h(132) : see declaration of 
'apr_finfo_t'
modperl_cmd.c(285) : error C2146: syntax error : missing ';' before 
identifier 'finfo'
modperl_cmd.c(285) : error C2065: 'finfo' : undeclared identifier
modperl_cmd.c(287) : warning C4133: 'function' : incompatible types - from 
'int *' to 'struct apr_finfo_t *'
modperl_cmd.c(287) : error C2065: 'p' : undeclared identifier
modperl_cmd.c(287) : warning C4047: 'function' : 'struct apr_pool_t *' 
differs in levels of indirection from 'int '
modperl_cmd.c(287) : warning C4024: 'apr_stat' : different types for formal 
and actual parameter 4
modperl_cmd.c(288) : error C2224: left of '.filetype' must have struct/union 
type
modperl_cmd.c(289) : warning C4047: 'function' : 'struct apr_pool_t *' 
differs in levels of indirection from 'int '
modperl_cmd.c(289) : warning C4024: 'apr_palloc' : different types for 
formal and actual parameter 1
modperl_cmd.c(306) : warning C4047: 'function' : 'struct apr_pool_t *' 
differs in levels of indirection from 'int '
modperl_cmd.c(306) : warning C4024: 'apr_pstrcat' : different types for 
formal and actual parameter 1
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

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


Re: [mp2] Compilation failures on Win32

Posted by Stas Bekman <st...@stason.org>.
Markus Wichitill wrote:
> On Win32/VC6, compilation currently fails, probably caused by changes in 
> rev 106473:

> 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'

Yup, the "usual" declaration, after code problem :( Please try again with 
the current svn.

> 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.

doh! I knew that will happen :( I've asked whether it works everywhere, 
but as you say it's not :(


-- 
__________________________________________________________________
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