spf-discuss
[Top] [All Lists]

libspf2 compile hints

2004-06-29 00:02:51

I'm attempting to test the latest version of spfmilter-1.0.2. This
requires libspf2-1.0.2 (formerly libspf-alt). Unfortunately compiling
fails on FreeBSD due to the lack of the getopt function. I've seen similar
problems libspf complaining about a missing getopt.h header file.
Unfortunately the port tree is behind in this area (libspf_alt-0.4.0). Is
this just a matter of supplying a missing header file and include
statement?

spf_example.c: In function `main':
spf_example.c:127: warning: implicit declaration of function `getopt'
spf_example.c:135: `optarg' undeclared (first use in this function)
spf_example.c:135: (Each undeclared identifier is reported only once
spf_example.c:135: for each function it appears in.)
spf_example.c:165: `optind' undeclared (first use in this function)
*** Error code 1

Stop in /var/tmp/libspf2-1.0.2/src/spf_example.
*** Error code 1

Stop in /var/tmp/libspf2-1.0.2/src/spf_example.
*** Error code 1

Stop in /var/tmp/libspf2-1.0.2/src.
*** Error code 1

Stop in /var/tmp/libspf2-1.0.2.

Regards,
        Chris

Chris Miller
NetGate Internet
An iStrata Company