[Reference:<_A3249@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en
[DeleGate-En] Re: dgauth.cc
On 06/01/06(05:47) you Martin Papadopoulos <payeabdyi-q45w4pk6rja6.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
|