On Tue, 29 Jun 2004, Chris Miller wrote:
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?
This is a missing unistd.h, which while not relevant on Linux, appears to
be relevant on Solaris and FreeBSD.
There will be a release either later today or tomorrow which fixes this.
Alternatively, you can add
#include <unistd.h>
to the files in question to fix it immediately for yourself.
We have also had reports of FreeBSD not including /usr/local/include in
the #include search path by default. This will also be fixed in the next
minor release of both packages.
Thanks for the report.
S.
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
-------
Sender Policy Framework: http://spf.pobox.com/
Archives at http://archives.listbox.com/spf-discuss/current/
Send us money! http://spf.pobox.com/donations.html
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to
http://v2.listbox.com/member/?listname=spf-discuss(_at_)v2(_dot_)listbox(_dot_)com
--
Shevek http://www.anarres.org/
Robust SPF with MTA support http://www.libspf2.org/
SRS for the next generation http://www.libsrs2.org/