|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
||||
openvpn 2.1_rc7 from ports (not packages)
Two part post -- (1) Advisory; and (2) who do I tell question.
(1) ADVISORY The rc7 port doesn't compile and make successfully. I downloaded the port of openvpn-2.1_rc7 from ftp://ftp.openbsd.org/pub/OpenBSD/distfiles. Unpacked and did Code:
./configure --disable-lzo make ... tun.c: In function `open_tun': tun.c: error: `IFF_MULTICAST' undeclared (first use in this function) tun.c: error: (Each undeclared identifier is reported only once tun.c: error: for each function it appears in.) *** Error code 1 ... /*then vital signs absent */ :-( Code:
tun.c #include <net/if.h> #include <sys/types.h> #include <sys/socket.h> Code:
./configure --disable-lzo make clean make /* worked this time */ make install /S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience. |
|
||||
Just sharing ...
One of the reasons I don't do ports is because I don't have "spare" hardware to keep an openBSD box -- with compiler tools -- around. My oBSD boxes are in service and it's just not good practice to put developer tools on production machines. So, in this case, enter VM Server (free edition). I downloaded the openBSD cd43.iso image. In VMware you can boot a virtual machine straight off this .iso. I then ran an over-the-network install of full blown openBSD, replete with compiler and related stuff. (I likely could have booted install43.iso too and avoided the over-the-net install.) OpenBSD 4.3 installed and runs beautifully as a guest O/S inside VM Server (368MB RAM allocation). I made (make'd) my openVPN 2.1 and transfered (scp) the install files -- one openVPN binary, and one openvpn.8 man page -- to my in service firewaall/vpn gateway machines. /S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience. Last edited by s2scott; 17th May 2008 at 01:50 AM. |
|
||||
I am not exactly sure what you were doing. Were you trying to use the -current port with a -release or -stable system? If so, you don't report your troubles anyone, as this is unsupported per FAQ 15.4.1.
If you have a problem with the -current port on a -current system, then the most helpful thing would work up a patch and submit it to the port maintainer: $ cd /usr/ports/net/openvpnPatches are most easily worked up with cvs(1) diff. Be sure to use diff(1)'s -u operand, as unified diffs are used for OpenBSD maintenance. If you cannot work up a patch, you can still contact the port maintainer with questions or concerns ... as long as you are running a supported environment. If you don't get a response from the maintainer after a reasonable period of time, you can post to the ports@ mailing list. |
|
|||
I also got the port version of openvpn-2.1rc7. It seems to be the same file as from the http://openvpn.net/index.php/downloads.html. I too ha the same error with `IFF_MULTICAST' and I followed the s2scott's fix but now I get
/usr/include/net/if.h:224: error: `AF_MAX' undeclared here (not in a function) /usr/include/net/if.h:556: error: field `ifru_addr' has incomplete type /usr/include/net/if.h:557: error: field `ifru_dstaddr' has incomplete type /usr/include/net/if.h:558: error: field `ifru_broadaddr' has incomplete type /usr/include/net/if.h:575: error: field `ifra_addr' has incomplete type /usr/include/net/if.h:576: error: field `ifra_dstaddr' has incomplete type /usr/include/net/if.h:578: error: field `ifra_mask' has incomplete type /usr/include/net/if.h:616: error: field `addr' has incomplete type /usr/include/net/if.h:617: error: field `dstaddr' has incomplete type In file included from /usr/include/net/if.h:634, from tun.c:40: /usr/include/net/if_arp.h:79: error: field `arp_pa' has incomplete type /usr/include/net/if_arp.h:80: error: field `arp_ha' has incomplete type *** Error code 1 Stop in /usr/src/openvpn-2.1_rc7 (line 92 of /usr/share/mk/sys.mk). Anybody encountered this? |
|
|||
ok, never mind, I found the problem. I also had to add
<code> #include <arpa/inet.h> </code> to tun.c |
|
||||
Quote:
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience. Last edited by s2scott; 22nd May 2008 at 06:37 AM. |
|
|||
Yes, we probably do. If you know any other way to run openvpn 2.1rc7 on stable OpenBSD, please share. I really need the Vista support. If not then let's continue. I now run into a problem while initializing the server. The initialization is stuck at:
TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ] There's no error message and it just stis there untill I kill it. Normally, the next line should be: TUN/TAP device tun1 opened Did anyone experience this yet? |
|
||||
Then you need to run -current.
In this way, you can either install OpenVPN from snapshot packages, or you can build it from ports. Both of those would be supported. By supported, I mean you could report your problem on the ports@ mailing list if it was a usability problem, or to the port maintainer directly if there was something wrong with the port. As it is, you are running blind, and praying someone will be able to help. Good luck. |
|
||||
Okay, for clarity, I fixed my own problem at the time of my original post. I figured out the deficiency, corrected the #includes and have been up and running happily ever since.
As a community member, I was, (1) sharing to the community the error and my "answer," and (2) simply seeking advise from you fine folks who work more often with ports then I do, with whom --back upstream-- I might (or should) tell/advise/share -- just so they know (not to support me). I wasn't seeking to get unsupported support from the ports keeper or developers. Just wanted to advise --after all, it is a release_candidate and this is exactly the purpose of RCs. Sorry if my postings read differently then intended. /S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience. |
|
||||
Scott, if your correction applies to a -current system, then by all means, send a patch to the maintainer. But if it only applies to -release/-stable, it's not applicable.
AFAICT from hex's posts, hex isn't using the ports scaffolding at all, but instead, is trying to port the application directly. If that's the case, it would explain why you both were seeing different results. |
|
||||
Quote:
/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience. |
|
||||
And in case anyone wonders "why 2.1rc7"... openvpn was born as a one-to-one vpn. While the 2.0 code stream evolved to support many-to-one connection topologies, the 2.1 code base is much more evolved in these regards (i.e. vpn server).
In my vpn topology, my openBSD machine is the "one" that the "many" clients (of various O/S's) will be connecting to, I wanted (needed) the 2.1rc7 on the openBSD 4.3 gateway. /S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
packages vs ports | zelut | FreeBSD Ports and Packages | 17 | 28th October 2009 08:19 AM |
Packages vs. Ports | guitarscn | OpenBSD Packages and Ports | 3 | 1st October 2008 04:43 AM |
Upgrading and rebuilding ALL packages/ports | chill | FreeBSD Ports and Packages | 8 | 16th June 2008 04:55 AM |
openVPN 2.1_rc7 (server) on openBSD 4.3 config examples | s2scott | Guides | 2 | 23rd May 2008 06:16 PM |
FAQ: FreeBSD Ports and Packages | Carpetsmoker | FreeBSD Ports and Packages | 0 | 1st May 2008 03:38 PM |