Mailing List Archive

libspf2 problem: "spf_request.h: error: field `ipv4' has incomplete type"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi libspf2 developers,

I am experiencing the following problems with libspf2 1.2.5 (Debian package
libspf2-dev 1.2.5-3):

- ----------------------------------------------------------------------
$ cat foo.c
#include <stdio.h>
#include <spf2/spf.h>

int main(int argc, char* argv[]) {
printf("Foo\n");
}

$ gcc -o foo foo.c
In file included from /usr/include/spf2/spf_response.h:165,
from /usr/include/spf2/spf_record.h:25,
from /usr/include/spf2/spf_server.h:21,
from /usr/include/spf2/spf.h:27,
from foo.c:2:
/usr/include/spf2/spf_request.h:29: error: field `ipv4' has incomplete type
/usr/include/spf2/spf_request.h:30: error: field `ipv6' has incomplete type
In file included from /usr/include/spf2/spf_dns.h:106,
from /usr/include/spf2/spf_server.h:22,
from /usr/include/spf2/spf.h:27,
from foo.c:2:
/usr/include/spf2/spf_dns_rr.h:30: error: field `a' has incomplete type
/usr/include/spf2/spf_dns_rr.h:34: error: field `aaaa' has incomplete type
/usr/include/spf2/spf_dns_rr.h:53: error: syntax error before "time_t"
/usr/include/spf2/spf_dns_rr.h:60: error: syntax error before '}' token
- ----------------------------------------------------------------------

Is this a known problem? It seems as if arpa/inet.h isn't being included
by spf_request.h and spf_dns_rr.h, even though it should be.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC8MVrwL7PKlBZWjsRAikXAJ9Pmt/RdFZHxdzyxu009NCLBQeQmgCdG3Av
kChEgo3IqyuZIuT4LPKtFHc=
=XA2x
-----END PGP SIGNATURE-----

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel@v2.listbox.com