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

Antwort: Re: [DeleGate-En] Compilation error on AIX 5.3
06 Aug 2009 13:30:44 GMT     pvaiqbdyi-s342d4faojh6.ml@delegate.org

Hi Yutaka!

Thank you for your valuable feedback!

Renaming th_flags to th_xxxflags in delegate.h solved the first problem. 
However, there occurs a second error now (see below). Do you have any idea 
what do try next?

Cheers,
  Christoph

root.system@hostname  /home/user/usr/delegate9.9.4
# make CC=gcc
        rm srcsign.o
        sh make-init.sh
rm: src/_builtin.c: A file or directory in the path name does not exist.
rm: src/builtin.o: A file or directory in the path name does not exist.
rm: gen/bldsign.h: A file or directory in the path name does not exist.

####### -makeat: /home/cki/usr/delegate9.9.4/src
-n
        gcc -O2 -x c++ -DQS -I../gen -I../include -O -c version.c 
-DLICENSEE=\"""\"
-n
        gcc -O2 -x c++ -DQS -I../gen -I../include -O -c ../srcsign.c -o 
../srcsign.o
-n
        gcc -O2 -x c++ -DQS -I../gen -I../include -O -c conf.c 
-DADMIN=\"user@xxx..ch\"  -DADMINPASS=\"\"
conf.c:707: warning: deprecated conversion from string constant to 'char*'
conf.c:707: warning: deprecated conversion from string constant to 'char*'
conf.c:707: warning: deprecated conversion from string constant to 'char*'
conf.c:707: warning: deprecated conversion from string constant to 'char*'
conf.c:707: warning: deprecated conversion from string constant to 'char*'
conf.c:707: warning: deprecated conversion from string constant to 'char*'
-n
        gcc -O2 -x c++ -DQS -I../gen -I../include -O -c http.c
http.c: In function 'int relay_response(Connection13*, QueryContext*, int, 
const char*, const char*, int, const char*, const char*, int, FILE*, 
FILE*, FILE*, FILE*, int)':
http.c:3704: error: 'alloca' was not declared in this scope
http.c: At global scope:
http.c:4890: warning: deprecated conversion from string constant to 
'char*'
http.c: In function 'int relay_responseX(Connection13*, QueryContext*, 
int, const char*, const char*, int, const char*, const char*, int, FILE*, 
FILE*, FILE*, FILE*, int, ResponseContext*, const char*, int, const char*, 
int, const char*)':
http.c:4918: warning: deprecated conversion from string constant to 
'char*'
http.c:6513: warning: deprecated conversion from string constant to 
'char*'
http.c:6518: warning: deprecated conversion from string constant to 
'char*'
http.c:6523: warning: deprecated conversion from string constant to 
'char*'
http.c:6528: warning: deprecated conversion from string constant to 
'char*'
http.c:6554: warning: deprecated conversion from string constant to 
'char*'
http.c:6556: warning: deprecated conversion from string constant to 
'char*'
http.c:6569: warning: deprecated conversion from string constant to 
'char*'
http.c:6573: warning: deprecated conversion from string constant to 
'char*'
http.c: In function 'void service_http2(Connection13*, FILE**)':
http.c:12013: error: 'alloca' was not declared in this scope
http.c: In function 'void service_httpX(Connection13*)':
http.c:12383: error: 'alloca' was not declared in this scope
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.
mkmake: ERROR LOG is left at /home/cki/usr/delegate9.9.4/src/mkmake.err
mkmake: ERROR LOG is left at /home/cki/usr/delegate9.9.4/src/mkmake.err
make: 1254-004 The error code from the last command is 2.


Stop.



Von:
feedback@delegate.org (Yutaka Sato)
An:
feedback@delegate.org
Kopie:
pvaiqbdyi-s342d4faojh6.ml@delegate.org
Datum:
05.08.2009 19:11
Betreff:
Re: [DeleGate-En] Compilation error on AIX 5.3



Hi,

In message 
<_A4520@delegate-en.ML_> on 
08/05/09(20:59:48)
you pvaiqbdyi-s342d4faojh6.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





This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The Swiss National Bank therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. This message is provided for information purposes only.

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