milter-greylist with LibSPF 1.0.0-p3 compiling error
2005-12-06 by fredrik.pettai@vattenfall.com
Hi,
This has just a little bit with milter-greylist to do, since it compiles fine by it self.
I was thinking of testing/adding SPF to milter-greylist by compiling LibSPF.
But i got stuck pretty quick cause compilation of LibSPF fails for me on Solaris (9).
(I's the same environment (gcc 2.95.3) that works to compile milter-greylist an other GNU/GPL software aswell)
Has anybody with more experince of compiling a hint of why i get this output on Solaris.
(I tried the same procedur in my linux-box, and it works fine there...)
# ./configure works fine.
# make
(gives this output, with both solaris make and gmake (as below)
gmake all-recursive
gmake[1]: Entering directory `/var/tmp/libspf-1.0.0-p3'
Making all in src
gmake[2]: Entering directory `/var/tmp/libspf-1.0.0-p3/src'
Making all in libspf
gmake[3]: Entering directory `/var/tmp/libspf-1.0.0-p3/src/libspf'
source='main.c' object='main.lo' libtool=yes \
depfile='.deps/main.Plo' tmpdepfile='.deps/main.TPlo' \
depmode=gcc /bin/bash ../../build_tools/depcomp \
/bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -ggdb -O -D_SPF_DEBUG -c -o main.lo `test -f 'main.c' || echo './'`main.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -ggdb -O -D_SPF_DEBUG -c main.c -Wp,-MD,.deps/main.TPlo -fPIC -DPIC -o .libs/main.o
In file included from main.h:61,
from main.c:53:
spf.h:271: parse error before `u_int8_t'
spf.h:271: warning: no semicolon at end of struct or union
spf.h:272: warning: data definition has no type or storage class
spf.h:338: parse error before `u_int8_t'
spf.h:338: warning: no semicolon at end of struct or union
spf.h:378: parse error before `}'
spf.h:378: warning: data definition has no type or storage class
spf.h:381: parse error before `spf_rlevel'
spf.h:381: conflicting types for `spf_rlevel'
spf.h:373: previous declaration of `spf_rlevel'
spf.h:381: warning: data definition has no type or storage class
spf.h:384: parse error before `*'
spf.h:385: parse error before `u_int32_t'
spf.h:385: warning: data definition has no type or storage class
spf.h:386: parse error before `*'
spf.h:386: parse error before `*'
spf.h:386: warning: data definition has no type or storage class
spf.h:387: parse error before `*'
spf.h:388: parse error before `*'
spf.h:390: parse error before `*'
spf.h:391: parse error before `*'
spf.h:392: parse error before `*'
spf.h:395: parse error before `*'
spf.h:396: parse error before `*'
In file included from main.c:53:
main.h:168: parse error before `*'
main.h:169: parse error before `u_int32_t'
main.h:169: warning: data definition has no type or storage class
(Lots of Lots of error on output that have been cut out here...)
main.c:1895: request for member `include_set' in something not a structure or union
main.c:1896: request for member `include_set' in something not a structure or union
gmake[3]: *** [main.lo] Error 1
gmake[3]: Leaving directory `/var/tmp/libspf-1.0.0-p3/src/libspf'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/libspf-1.0.0-p3/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/libspf-1.0.0-p3'
gmake: *** [all] Error 2
I accually emailed the maintainer of LibSPF,
but i haven't gotten any answer from him.
(And i can't find any more hints in the LibSPF docs nor on Google...)
TIA,
/P