OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix 2.5.1 : unable to compile package make: *** [smtp_connect.o] Error 1 in smtp_connect.c

From: TOUZEAU DAVID (david.touzeaufr.kaspersky.com)
Date: Sat Mar 01 2008 - 09:11:41 CST


Dear

i use these options to compile postifx 2.5.1

make makefiles LD_LIBRARY_PATH="/opt/artica/lib:/opt/artica/db/lib"
CCARGS="-DHAS_LDAP -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL
-I/opt/artica/include/ -I/opt/artica/include/openssl
-I/opt/artica/include/sasl -I/opt/artica/db/include"
AUXLIBS="-L/opt/artica/lib -L/opt/artica/db/lib -lssl -lcrypto -lsasl2
-lldap -ldb"

i receive this compilation error

gcc -Wmissing-prototypes -Wformat -DHAS_LDAP -DUSE_TLS -DUSE_SASL_AUTH
-DUSE_CYRUS_SASL -I/opt/artica/include/ -I/opt/artica/include/openssl
-I/opt/artica/include/sasl -I/opt/artica/db/include -g -O -I.
-I../../include -DLINUX2 -c smtp.c
gcc -Wmissing-prototypes -Wformat -DHAS_LDAP -DUSE_TLS -DUSE_SASL_AUTH
-DUSE_CYRUS_SASL -I/opt/artica/include/ -I/opt/artica/include/openssl
-I/opt/artica/include/sasl -I/opt/artica/db/include -g -O -I.
-I../../include -DLINUX2 -c smtp_connect.c
In file included from smtp_connect.c:105:
/opt/artica/include/smtp.h:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
/opt/artica/include/smtp.h:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
/opt/artica/include/smtp.h:75: error: expected ‘)’ before ‘*’ token
/opt/artica/include/smtp.h:76: error: expected ‘)’ before ‘*’ token
In file included from smtp_connect.c:107:
./smtp_reuse.h:14: error: expected ‘)’ before ‘*’ token
./smtp_reuse.h:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
./smtp_reuse.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
smtp_connect.c:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
smtp_connect.c:120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
smtp_connect.c:169: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
smtp_connect.c:276: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
smtp_connect.c:366: error: expected ‘)’ before ‘*’ token
smtp_connect.c:442: error: expected ‘)’ before ‘*’ token
smtp_connect.c:469: error: expected ‘)’ before ‘*’ token
smtp_connect.c:545: error: expected ‘)’ before ‘*’ token
smtp_connect.c:619: error: expected ‘)’ before ‘*’ token
smtp_connect.c:677: error: expected ‘)’ before ‘*’ token
smtp_connect.c:997: error: expected ‘)’ before ‘*’ token
make: *** [smtp_connect.o] error 1
make: *** [update] error 1

Did anybody have encounter this error ?
How can i fix it ?

--
David Touzeau -------------------------- Linux Ubuntu 7.04 feisty
FreePascal-Lazarus,perl,delphi,php artica for postfix management console
(http://www.artica.fr) icq:160018849