Re: [APC-DEV] Head fails to compile on Windows

[email protected] (Lucas Nealan) Thu, 10 Jan 2008 14:52:52 -0800
Newsgroups php.apc.dev
Message-ID <C3ABE1C4.340E8%[email protected]>
Hi Scott, thanks for the report.

I had intentionally excluded apc_signal.c from config.w32 when I added the
signaling support since I'm not aware of the signaling features having any
utility on windows. Can you try removing apc_signal.c from apc_sources= in
config.w32 and let me know if there are still problems compiling?

Gopal, you added this a couple days ago when you committed the apc_pool
implementation. Was there a specific reason?

-lucas

On 1/10/08 10:37 AM, "Scott MacVicar" <[email protected]> wrote:

> Hi,
> 
> The latest CVS Head fails to compile on Windows using VC6. It appears to
> be caused by the signal system on Windows being completely different to
> that of POSIX compliant operating systems.
> 
> I've attached the build log.
> 
> Scott
> C:\work\php_5_2-dev>nmake
> 
> Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
> 
> EXT gd build complete
> apc_signal.c
> ..\pecl\apc\apc_signal.c(44) : error C2143: syntax error : missing ')' before
> '*'
> ..\pecl\apc\apc_signal.c(44) : error C2081: 'siginfo_t' : name in formal
> parameter list illegal
> ..\pecl\apc\apc_signal.c(44) : error C2143: syntax error : missing ')' before
> '*'
> ..\pecl\apc\apc_signal.c(44) : error C2143: syntax error : missing '{' before
> '*'
> ..\pecl\apc\apc_signal.c(44) : error C2059: syntax error : ','
> ..\pecl\apc\apc_signal.c(44) : error C2059: syntax error : ')'
> ..\pecl\apc\apc_signal.c(44) : error C2059: syntax error : ')'
> ..\pecl\apc\apc_signal.c(45) : error C2143: syntax error : missing ')' before
> '*'
> ..\pecl\apc\apc_signal.c(45) : error C2081: 'siginfo_t' : name in formal
> parameter list illegal
> ..\pecl\apc\apc_signal.c(45) : error C2143: syntax error : missing '{' before
> '*'
> ..\pecl\apc\apc_signal.c(45) : error C2059: syntax error : 'type'
> ..\pecl\apc\apc_signal.c(45) : error C2059: syntax error : ')'
> ..\pecl\apc\apc_signal.c(46) : error C2143: syntax error : missing ')' before
> '*'
> ..\pecl\apc\apc_signal.c(46) : error C2081: 'siginfo_t' : name in formal
> parameter list illegal
> ..\pecl\apc\apc_signal.c(46) : error C2143: syntax error : missing '{' before
> '*'
> ..\pecl\apc\apc_signal.c(46) : error C2059: syntax error : 'type'
> ..\pecl\apc\apc_signal.c(46) : error C2059: syntax error : ')'
> ..\pecl\apc\apc_signal.c(51) : error C2143: syntax error : missing ')' before
> '*'
> ..\pecl\apc\apc_signal.c(51) : error C2081: 'siginfo_t' : name in formal
> parameter list illegal
> ..\pecl\apc\apc_signal.c(51) : error C2143: syntax error : missing '{' before
> '*'
> ..\pecl\apc\apc_signal.c(51) : error C2059: syntax error : 'type'
> ..\pecl\apc\apc_signal.c(51) : error C2059: syntax error : ')'
> ..\pecl\apc\apc_signal.c(66) : error C2143: syntax error : missing ')' before
> '*'
> ..\pecl\apc\apc_signal.c(66) : error C2081: 'siginfo_t' : name in formal
> parameter list illegal
> ..\pecl\apc\apc_signal.c(66) : error C2143: syntax error : missing '{' before
> '*'
> ..\pecl\apc\apc_signal.c(66) : error C2059: syntax error : 'type'
> ..\pecl\apc\apc_signal.c(66) : error C2059: syntax error : ')'
> ..\pecl\apc\apc_signal.c(88) : error C2143: syntax error : missing ')' before
> '*'
> ..\pecl\apc\apc_signal.c(88) : error C2081: 'siginfo_t' : name in formal
> parameter list illegal
> ..\pecl\apc\apc_signal.c(88) : error C2143: syntax error : missing ')' before
> '*'
> ..\pecl\apc\apc_signal.c(88) : error C2143: syntax error : missing '{' before
> '*'
> ..\pecl\apc\apc_signal.c(88) : error C2059: syntax error : ','
> ..\pecl\apc\apc_signal.c(88) : error C2059: syntax error : ')'
> ..\pecl\apc\apc_signal.c(88) : error C2059: syntax error : ')'
> ..\pecl\apc\apc_signal.c(136) : warning C4013: 'apc_register_signal'
> undefined; assuming extern returning int
> ..\pecl\apc\apc_signal.c(136) : error C2065: 'apc_core_unmap' : undeclared
> identifier
> NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
> Stop.