greylist-3.0rc3 with solaris 10.1 X86
2006-09-27 by Christian PELISSIER
Compilation is OK under Solaris 10 X86 with gcc.
CFLAGS are : -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE
./configure --prefix=/usr/local CC=/opt/SUNWspro/bin/cc
with Sun cc the above configure generate a Makefile with the following
unrelated CFLAGS (compilation failed)
-D_SGI_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
Editing Makefile with same CFLAGS as gcc it's OK (just some warning)
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
milter-greylist.c
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
pending.c
"pending.c", line 582: warning: identifier redeclared: ipfromstring
current : function() returning int
previous: function(pointer to char, pointer to struct sockaddr
{unsigned short sa_family, array[14] of char sa_data}, pointer to
unsigned int, unsigned short) returning int : "pending.h", line 101
"pending.c", line 586: warning: Prototype mismatch in arg 4 for function
ipfromstring:
function : old style declaration unsigned short promoted to int
prototype: unsigned short
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
sync.c
"sync.c", line 787: warning: statement not reached
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
dnsrbl.c
"dnsrbl.c", line 337: warning: empty translation unit
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
list.c
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
macro.cbison -y -p`echo conf_yacc.c|sed 's/^\([^_]\{1,\}_\).*$/\1/'`
conf_yacc.y
mv y.tab.c conf_yacc.c
flex -oconf_lex.c conf_lex.l
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
conf_yacc.c
bison -y -p`echo dump_yacc.c|sed 's/^\([^_]\{1,\}_\).*$/\1/'`
dump_yacc.y
mv y.tab.c dump_yacc.c
flex -odump_lex.c dump_lex.l
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
dump_yacc.c
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
conf.c
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
autowhite.c
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
dump.c
"dump.c", line 152: warning: statement not reached
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
spf.c
/opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
acl.c
/opt/SUNWspro/bin/cc -o milter-greylist milter-greylist.o pending.o
sync.o dnsrbl.o list.o macro.o conf_yacc.o dump_yacc.o conf.o
autowhite.o dump.o spf.o acl.o -lsocket -lresolv -lnsl -lpthread
-lmilter
sed "s|@BINDIR[@]|/usr/local/bin|g; s|@SBINDIR[@]|/usr/local/sbin|g;
s|@USER[@]|root|g" rc-bsd.sh.in > rc-bsd.sh
sed "s|@BINDIR[@]|/usr/local/bin|g; s|@SBINDIR[@]|/usr/local/sbin|g;
s|@USER[@]|root|g" rc-redhat.sh.in > rc-redhat.sh
sed "s|@BINDIR[@]|/usr/local/bin|g; s|@SBINDIR[@]|/usr/local/sbin|g;
s|@USER[@]|root|g" rc-solaris.sh.in > rc-solaris.sh
sed "s|@BINDIR[@]|/usr/local/bin|g; s|@SBINDIR[@]|/usr/local/sbin|g;
s|@USER[@]|root|g" rc-debian.sh.in > rc-debian.sh
sed "s|@BINDIR[@]|/usr/local/bin|g; s|@SBINDIR[@]|/usr/local/sbin|g;
s|@USER[@]|root|g" rc-gentoo.sh.in > rc-gentoo.sh
sed "s|@BINDIR[@]|/usr/local/bin|g; s|@SBINDIR[@]|/usr/local/sbin|g;
s|@USER[@]|root|g" rc-suse.sh.in > rc-suse.sh
--
Christian Pélissier
Office National d'Études et de Recherches Aérospatiales
BP 72 92322 Chatillon
Tel: 33 1 46 73 44 19, Fax: 33 1 46 73 41 50