[nsd-users] [PATCH] Fix trunk build on OpenBSD

Oliver Peter lists at peter.de.com
Wed Oct 10 23:27:35 UTC 2012


This is an OpenBSD 5.1/i386 machine:

Error:

gcc -I. -g -O2  -o nsd -combine -fwhole-program `echo answer.o axfr.o buffer.o configlexer.o configparser.o dname.o dns.o edns.o iterated_hash.o lookup3.o namedb.o nsec3.o options.o packet.o query.o rbtree.o radtree.o rdata.o region-allocator.o rrl.o tsig.o tsig-openssl.o udb.o udbradtree.o udbzone.o util.o xfrd-disk.o xfrd-notify.o xfrd-tcp.o xfrd.o remote.o difffile.o ipc.o netio.o nsd.o server.o dbaccess.o dbcreate.o zlexer.o zonec.o zparser.o | sed -e 's;\\([^ \\.]*\\)\\.o;./\\1.c;g'` b64_pton.o b64_ntop.o pselect.o -lssl -lcrypto -levent
./server.c: In function 'handle_tcp_writing':
./server.c:1889: error: array type has incomplete element type
./server.c:1894: error: incompatible implicit declaration of function 'writev'
/usr/include/sys/uio.h:79: error: previous implicit declaration of 'writev' was here
*** Error code 1

Patch:

Index: server.c
===================================================================
--- server.c    (revision 3675)
+++ server.c    (working copy)
@@ -12,6 +12,7 @@
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/socket.h>
+#include <sys/uio.h>
 #include <sys/wait.h>
 
 #include <netinet/in.h>

-- 
Oliver PETER       oliver at opdns.de       0x456D688F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20121011/25ec48e0/attachment.bin>


More information about the nsd-users mailing list