[Mono-devel-list] mcs build fails on cygwin
Ben Maurer
bmaurer at ximian.com
Sat Jan 1 11:37:46 EST 2005
On Sun, 2005-01-02 at 01:09 +0900, Nick Drochak wrote:
> After a svn update, I am getting this build problem on cygwin now:
>
>
>
> make[3]: Entering directory `/home/Nick/anonmono/mcs/class/Mono.Posix'
>
> csc.exe /lib:../../class/lib/default /nologo /optimize -d:NET_1_1
> -d:ONLY_1_1 /debug+ /debug:full /noconfig /unsafe /r:
>
> mscorlib.dll /r:System.dll /target:library /out:../../class/lib/default/Mono.Posix.dll `echo | tr '/' '\\\\'` @../../bu
>
> ild/deps/default_Mono.Posix.dll.response
>
> Mono.Unix\Stdlib.cs(174,50): error CS0654: Method
> 'Mono.Unix.Stdlib._DefaultHandler(int)' referenced without parentheses
>
> Mono.Unix\Stdlib.cs(175,50): error CS0654: Method
> 'Mono.Unix.Stdlib._ErrorHandler(int)' referenced without parentheses
>
> Mono.Unix\Stdlib.cs(176,50): error CS0654: Method
> 'Mono.Unix.Stdlib._IgnoreHandler(int)' referenced without parentheses
>
> Mono.Unix\UnixMarshal.cs(73,4): warning CS0168: The variable 'e' is
> declared but never used
>
>
>
> It wasn’t obvious to me how to fix it (at 1 am) so hopefully someone
> can help me out.
This is the code:
> public static readonly SignalHandler SIG_DFL = _DefaultHandler;
> public static readonly SignalHandler SIG_ERR = _ErrorHandler;
> public static readonly SignalHandler SIG_IGN = _IgnoreHandler;
Whoever added this is using the 2.0 delegate syntax. The old syntax
needs to be used.
Miguel, is there a way to prevent ourselves from using the new syntax?
Am sure we will see this again.
-- Ben
More information about the Mono-devel-list
mailing list