Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: vpnc: devel

Errors while compiling vpnc from svn sources on FreeBSD 5.2.1

 

 

vpnc devel RSS feed   Index | Next | Previous | View Threaded


c.lackas at fz-juelich

Aug 2, 2004, 7:41 PM

Post #1 of 1 (287 views)
Permalink
Errors while compiling vpnc from svn sources on FreeBSD 5.2.1

* Marcin Gajewski <mgajewski [at] rewo> [040802 19:07]:

Hello Marcin,

> 1. While i'm trying to compile vpnc from svn sources (2004-08-02), i
> get this error:

why don't you just use the security/vpnc port (which is based on
0.2-rm+zomb.1 right now)?

> $ gmake
> gcc -W -Wall -O -g '-DVERSION="0.2-rm+zomb.2"' -I/usr/local/include
> -I/usr/local/include -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN -c -o
> isakmp-pkt.o isakmp-pkt.c
> In file included from isakmp-pkt.c:26:
> config.h:59: error: syntax error before "ssize_t"
> gmake: *** [isakmp-pkt.o] Error 1

Here a

#include <unistd.h>

in config.h is missing (attached a patch).

> also when i do "gmake -k" (ignore errors) i'm getting this:
> $ gmake -k
> In file included from vpnc.h:22,
> from config.c:31:
> /usr/include/net/if.h:247: error: field `ifru_addr' has incomplete type

And here a

#include <sys/socket.h>

in vpnc.h. Both changes should be portable, but I cannot test them on
anything else right now.

Best regards
Christian

--
Forschungszentrum Juelich Central Institute For Electronics (ZEL)
Leo-Brandt-Strasse 52425 Juelich, Germany
Tel: +49-2461-61 2425 Fax: +49-2461-61 3990
-------------- next part --------------
Index: config.h
===================================================================
--- config.h (revision 27)
+++ config.h (working copy)
@@ -19,6 +19,8 @@
#ifndef __CONFIG_H__
#define __CONFIG_H__

+#include <unistd.h>
+
enum config_enum {
CONFIG_NONE,
CONFIG_CONFIG_SCRIPT,
Index: vpnc.h
===================================================================
--- vpnc.h (revision 27)
+++ vpnc.h (working copy)
@@ -19,6 +19,7 @@
#ifndef __VPNC_H__
#define __VPNC_H__

+#include <sys/socket.h>
#include <net/if.h>
#include "sysdep.h"
#include "isakmp.h"

vpnc devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.