Compiling on NetBSD?

75 views
Skip to first unread message

bortzmeyer

unread,
Oct 13, 2009, 4:36:21 PM10/13/09
to evldns-users
I find nothing in INSTALL or README about the OS on which evldns runs?

On NetBSD, it does not seem obvious:

% make
make all-am
/bin/ksh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -
I. -I/usr/local/include -Wall -g -O2 -MT network.lo -MD -MP -
MF .deps/network.Tpo -c -o network.lo network.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -Wall -g -O2 -MT
network.lo -MD -MP -MF .deps/network.Tpo -c network.c -fPIC -DPIC -
o .libs/network.o
network.c: In function 'bind_to_port':
network.c:44: error: storage size of 'addr4' isn't known
network.c:45: error: storage size of 'addr6' isn't known
network.c:60: error: 'IPPROTO_IPV6' undeclared (first use in this
function)
network.c:60: error: (Each undeclared identifier is reported only once
network.c:60: error: for each function it appears in.)
network.c:60: error: 'IPV6_V6ONLY' undeclared (first use in this
function)
network.c:78: error: 'INADDR_ANY' undeclared (first use in this
function)
network.c:86: error: 'in6addr_any' undeclared (first use in this
function)
network.c:45: warning: unused variable 'addr6'
network.c:44: warning: unused variable 'addr4'
*** Error code 1

Stop.
make: stopped in /home/stephane/Programmation/DNS/evldns-read-only
*** Error code 1

Stop.
make: stopped in /home/stephane/Programmation/DNS/evldns-read-only

bortzmeyer

unread,
Oct 13, 2009, 4:44:45 PM10/13/09
to evldns-users
On Oct 13, 10:36 pm, bortzmeyer <bortzme...@gmail.com> wrote:

> On NetBSD, it does not seem obvious:

OK, adding:

#include <netinet/in.h>

in network.c was enough. It now works.

% dig -p 5053 @localhost -x 10.1.1.1

; <<>> DiG 9.5.0-P2 <<>> -p 5053 @localhost -x 10.1.1.1
; (2 servers found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 62076
...

Ray Bellis

unread,
Nov 9, 2009, 9:39:28 PM11/9/09
to evldns-users

> OK, adding:
>
> #include <netinet/in.h>

Stéphane - apologies for not replying in person before, it seems that
the mail from the group got blocked in my gmail account!

Officially I test evldns on CentOS 5.0 and MacOS X 10.6

I'll check that your #include doesn't break anything on those two OSes
and then patch trunk accordingly.

Ray
Reply all
Reply to author
Forward
0 new messages