Bug 800 - compile error --disable-ipv6
compile error --disable-ipv6
Status: RESOLVED FIXED
Product: NSD
Classification: Unclassified
Component: NSD Code
4.1.x
x86_64 FreeBSD
: P3 normal
Assigned To: NSD team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-21 06:14 CEST by vfx9as
Modified: 2016-07-21 09:10 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vfx9as 2016-07-21 06:14:56 CEST
nsd-4.1.10

./query.c:709:17: error: no member named 'ss_family' in 'struct sockaddr_in'; di
d you mean 'sin_family'?
                        (query->addr.ss_family == AF_INET6)?
                                     ^~~~~~~~~
                                     sin_family
/usr/include/netinet/in.h:97:14: note: 'sin_family' declared here
        sa_family_t     sin_family;

Enable IPV6 option, No error.
Comment 1 Wouter Wijngaards 2016-07-21 09:10:43 CEST
Hi vfx9as,

Thank you for the report.  It has been fixed after an earlier report of the same problem, in the code repository you can find the fixed code (query.c).  As a workaround you could edit the code to be 'sin_family', but only with the --disable-ipv6 option enabled.

Best regards, Wouter