Article delegate-en/3254 of [1-5017] on the server localhost:7119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3252@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: dgauth.cc
02 Jun 2006 05:18:03 GMT Martin Papadopoulos <payeabdyi-qa4rnudizja6.ml@delegate.org>

hello yutaka ,

the problem only appears on my fc5_x86_64 .
on the 32bit version it just compiles out of the box.
the suggested fix worked .

thanx for your support :-)



Yutaka Sato schrieb:
> On 06/01/06(05:47) you Martin Papadopoulos <payeabdyi-qa4rnudizja6.ml@delegate.org> wrote
> in <_A3249@delegate-en.ML_>
>  |hello yutake
>
> Hallo Martein :p
>
>  |building delegate 9.2 on my fedora core 5 system
>  |gives an error:
>  |
>  |dgauth.cc:1545 type cast error from char** to int.
>
> It's strange that your compiler compiles it as ".cc" instead of ".c".
> Maybe it's because it is made with "-DNONC99" in CFLAGS.
> This flag is turned on automatically when DeleGate detected that the
> given CC seems old one without C99 capability.  But it is not likely
> that Fedra Core 5 has such old version of gcc.
>
> The flag is turned on when the CC does not support a macro with
> variable number of arguments as in C99 like
>
> #define M(...) B(##,__VA_ARGS__)
>
> or it does not support emptry array in struct like
>
> struct {char A[0]; char B[1];}S;
>
> You can search the related articles in the ML with keyword "DNONC99" at:
> <URL:http://www.delegate.org/-fsx/search?key=DNONC99&index=dgmlEn+dgmlJa&sort=date>
>
>
> Anyway, the problem in dgauth.c might be able to be escaped as this:
> dgauth.c:
> 1543c1543
> < 			if( fw == (int)mySIG ){
> ---
>   
>> 			if( (void*)fw == (void*)mySIG ){
>>     
>
> Cheers,
> Yutaka
> --
>   D G   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
>  ( - )  National Institute of Advanced Industrial Science and Technology
> _<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
> Do the more with the less -- B. Fuller
>
>   




  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V