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

[DeleGate-En] Re: Compilation error on AIX 5.3
05 Aug 2009 17:11:08 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A4520@delegate-en.ML_> on 08/05/09(20:59:48)
you pvaiqbdyi-f4q452vjgj3r.ml@ml.delegate.org wrote:
 |I receive errors when trying to compile Delegate on AIX 5.3:
 |
 |root.system@hostname  /home/user/delegate9.9.4
 |# make CC=gcc
....
 |        gcc -O2 -x c++ -DQS -I../gen -I../include -O -c admin.c
 |In file included from admin.c:32:
 |../include/delegate.h:559: error: expected ';' before '.' token
 |make: 1254-004 The error code from the last command is 1.

If your code is not modified from the original, the lines around
the error in "include/delegate.h" are:

   557          CcSv    ccsv;           /* -Ecc */
   558          MD5ctx  md_in;          /* -Emi MD5 for input data */
   559          int     th_flags;
   560  } Connection13;
   561  #define Connection Connection13
   562

It is strange but it might be possible that "th_flags" in the line
number 559 is defined somewhere in standard headers in AIX.  If so,
you can see to which it is expanded as follows:

  gcc -O2 -x c++ -DQS -I../gen -I../include -O -c admin.c -E

If so, a solution is to rewirte "th_flags" to "thread_flags" or so
in two lines in delegate.h.

Cheers,
Yutaka
--
  9 9   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