[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: spiped 1.3.0 coming soon



On Mon, Apr 01, 2013 at 05:43:46PM -0700, Colin Percival wrote:
> Hi all,
> 
> I'm hoping to release spiped-1.3.0 in the next few days.  Non-trivial changes
> since 1.2.2 are:
> 
> * Man pages are included (thanks Andreas!) and installed if you specify MAN1DIR=
> on the 'make install' command line.
> 
> * If asprintf is a macro it's undefined before being redefined.
> 
> * _POSIX_C_SOURCE is set to 200809L.
> 
> * Protocol-layer keep-alives are enabled, unless -j is specified, in which case
> they are disabled.
> 
> * In spiped, the target address is re-resolved every 60 seconds, unless -R is
> specified, which disables address re-resolution, or -r <rtime> is specified,
> which changes the time between address re-resolutions to <rtime> seconds.
> 
> Source code is at https://code.google.com/p/spiped/.
> 
> Is there anything else anyone thinks ought to be included in 1.3.0?
> 
> -- 
> Colin Percival
> Security Officer Emeritus, FreeBSD | The power to serve
> Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid
> 

So I checked out spiped from svn then ran VERSION=1.3.0 make publish.
I then tested building from there on an OpenBSD amd64 snapshot from 4/1.
With the new addition of 200809L anywhere sys/sockets.h was added I also
had to add sys/types.h.

Now that spiped uses dnsthread which in turn uses pthread functions I
had to add -lpthread to the list of spiped LDADD_REQs.

Diff attached. Hopefully this was also the sort of thing you were
looking for.

-- 
James Turner
--- lib/dnsthread/dnsthread.c	Mon Apr  1 21:01:43 2013
+++ lib/dnsthread/dnsthread.c	Mon Apr  1 21:42:52 2013
@@ -1,3 +1,4 @@
+#include <sys/types.h>
 #include <sys/socket.h>
 
 #include <errno.h>
--- lib/util/sock_util.c	Mon Apr  1 21:01:43 2013
+++ lib/util/sock_util.c	Mon Apr  1 21:43:07 2013
@@ -1,3 +1,4 @@
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 
--- proto/proto_conn.c	Mon Apr  1 21:01:43 2013
+++ proto/proto_conn.c	Mon Apr  1 21:39:36 2013
@@ -1,3 +1,4 @@
+#include <sys/types.h>
 #include <sys/socket.h>
 
 #include <assert.h>
--- spipe/main.c	Mon Apr  1 21:01:43 2013
+++ spipe/main.c	Mon Apr  1 21:49:24 2013
@@ -1,3 +1,4 @@
+#include <sys/types.h>
 #include <sys/socket.h>
 
 #include <inttypes.h>
--- spipe/pushbits.c	Mon Apr  1 21:01:43 2013
+++ spipe/pushbits.c	Mon Apr  1 21:49:38 2013
@@ -1,3 +1,4 @@
+#include <sys/types.h>
 #include <sys/socket.h>
 
 #include <pthread.h>
--- spiped/Makefile	Mon Apr  1 21:05:45 2013
+++ spiped/Makefile	Mon Apr  1 21:46:33 2013
@@ -3,7 +3,7 @@ PROG=spiped
 MAN1=${PROG}.1
 SRCS=main.c dispatch.c proto_conn.c proto_crypt.c proto_handshake.c proto_pipe.c sha256.c elasticarray.c ptrheap.c timerqueue.c dnsthread.c asprintf.c daemonize.c entropy.c monoclock.c noeintr.c sock.c sock_util.c warnp.c events_immediate.c events_network.c events_timer.c events.c network_accept.c network_buf.c network_connect.c crypto_aesctr.c crypto_dh.c crypto_dh_group14.c crypto_entropy.c crypto_verify_bytes.c
 IDIRS=-I ../proto -I ../lib/alg -I ../lib/datastruct -I ../lib/dnsthread -I ../lib/util -I ../lib/events -I ../lib/network -I ../lib/crypto
-LDADD_REQ=-lcrypto
+LDADD_REQ=-lcrypto -lpthread
 
 all:	${PROG}