[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] OpenVPN 1.5-beta13 released


  • Subject: Re: [Openvpn-users] OpenVPN 1.5-beta13 released
  • From: "James Yonan" <jim@xxxxxxxxx>
  • Date: Mon, 3 Nov 2003 12:58:27 -0000

Claas Hilbrecht <claas+maillinglists.openvpn@xxxxxxxxxxxxxxxxx> said:

> OpenVPN 1.5-beta13 gives the following error on debian woody after a 
> "./configure && make".
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/home/babel/tmpssl/include 
> -I/home/babel/tmplzo/include -I.  -g -O2 -c `test -f options.c || echo 
> './'`options.c
> options.c: In function `init_options':
> options.c:359: `KEY_DIRECTION_BIDIRECTIONAL' undeclared (first use in this 
> function)
> options.c:359: (Each undeclared identifier is reported only once
> options.c:359: for each function it appears in.)
> options.c: In function `options_string':
> options.c:643: warning: initialization makes pointer from integer without a 
> cast
> options.c:653: storage size of `kt' isn't known
> options.c: In function `add_option':
> options.c:1580: `MAX_CIPHER_KEY_LENGTH' undeclared (first use in this 
> function)
> make[1]: *** [options.o] Fehler 1
> make[1]: Leaving directory `/home/babel/openvpn-1.5_beta13'
> make: *** [all] Fehler 2

I think I see the problem.  I can reproduce if I do a

/configure --disable-ssl && make

The problem is that options.c needs to explicitly include crypto.h because if
SSL is disabled, it won't get it automatically through ssl.h.

Try this patch:

--- options.c.orig      2003-11-02 16:32:05.000000000 -0700
+++ options.c   2003-11-03 05:51:03.000000000 -0700
@@ -36,6 +36,7 @@
 #include "openvpn.h"
 #include "common.h"
 #include "shaper.h"
+#include "crypto.h"
 #include "ssl.h"
 #include "options.h"
 #include "openvpn.h"

James