Any newer version than 4.3.9 compilation on CentOS fails. Just testedmilter-greylist-4.5.7 and milter-greylist-4.5.11, using Cento5.11 or Centos 6.5 x64, ./configure --enable-postfix fails on both: CentOS 5: configure: creating ./config.status config.status: creating Makefile config.status: creating milter-greylist.spec config.status: creating config.h + make gcc -g -O2 -Wall -DUSE_POSTFIX -DCONFFILE=\"/usr/local/etc/mail/greylist.conf\" -DDUMPFILE=\"/usr/local/var/milter-greylist/greylist.db\" -D_BSD_SOURCE -I. -I. -c -o milter-greylist.o milter-greylist.c milter-greylist.c: In function 'fstring_expand': milter-greylist.c:3256: warning: implicit declaration of function 'local_ipstr' milter-greylist.c:3257: warning: format '%s' expects type 'char *', but argument 6 has type 'int' milter-greylist.c:3257: warning: format '%s' expects type 'char *', but argument 6 has type 'int' milter-greylist.c: At top level: milter-greylist.c:3739: error: conflicting types for 'local_ipstr' milter-greylist.c:3256: error: previous implicit declaration of 'local_ipstr' was here make: *** [milter-greylist.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.69329 (%build) CentOS 6: configure: creating ./config.status config.status: creating Makefile config.status: creating milter-greylist.spec config.status: creating config.h + make gcc -g -O2 -Wall -DHAVE_DATA_CALLBACK -DUSE_POSTFIX -DCONFFILE=\"/usr/local/etc/mail/greylist.conf\" -DDUMPFILE=\"/usr/local/var/milter-greylist/greylist.db\" -D_BSD_SOURCE -I. -I. -c -o milter-greylist.o milter-greylist.c milter-greylist.c: In function 'fstring_expand': milter-greylist.c:3256: warning: implicit declaration of function 'local_ipstr' milter-greylist.c:3257: warning: format '%s' expects type 'char *', but argument 6 has type 'int' milter-greylist.c:3257: warning: format '%s' expects type 'char *', but argument 6 has type 'int' milter-greylist.c: At top level: milter-greylist.c:3738: error: conflicting types for 'local_ipstr' milter-greylist.c:3256: note: previous implicit declaration of 'local_ipstr' was here make: *** [milter-greylist.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.Ax5cgq (%build) On both, compilation without option --enable-postfix works fine. How to fix this error? P.S. Emmanuel kindly answered directly and this fixed the error: --- milter-greylist.h.orig 2014-10-12 09:25:25.000000000 +0200 +++ milter-greylist.h 2014-10-12 09:25:36.000000000 +0200 @@ -249,11 +249,9 @@ sfsistat mlfi_data(SMFICTX *); #endif void usage(char *); int humanized_atoi(char *); -#ifndef USE_POSTFIX char *local_ipstr(struct mlfi_priv *); -#endif struct in_addr *prefix2mask4(int, struct in_addr *); #ifdef AF_INET6 struct in6_addr *prefix2mask6(int, struct in6_addr *); #endif -- Mart
Message
Any newer version than 4.3.9 compilation on CentOS fails.
2014-10-12 by Mart Pirita
Attachments
- No local attachments were found for this message.