Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338540 - net-misc/openvpn fails to build with -ssl
Summary: net-misc/openvpn fails to build with -ssl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Dirkjan Ochtman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 383537
Blocks:
  Show dependency tree
 
Reported: 2010-09-24 11:23 UTC by Philipp
Modified: 2012-02-16 10:51 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Include openvpn.h in options.c (openvpn-2.1.2-options-fix.patch,226 bytes, patch)
2010-09-24 11:24 UTC, Philipp
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp 2010-09-24 11:23:27 UTC
options.c: In function 'parse_http_proxy_fallback':
options.c:1474:33: error: dereferencing pointer to incomplete type
options.c:1477:4: error: dereferencing pointer to incomplete type
options.c:1478:5: error: dereferencing pointer to incomplete type

The problem here is that the context struct is only declared in options.c.
The definition is in openvpn.h which doesn't seem to be included.

I tried the build with USE="-*" if that matters.
Comment 1 Philipp 2010-09-24 11:24:10 UTC
Created attachment 248504 [details, diff]
Include openvpn.h in options.c
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-09-27 10:39:45 UTC
This is not a problem with gcc-4.5.1, but with the -ssl flag. Can you try with ssl? It's been mailed to one of the openvpn mailing lists, so it should be fixed in some future release.
Comment 3 Philipp 2010-09-27 12:19:17 UTC
You are right, it works with USE=ssl, sorry about that.
Because a friend of mine still had gcc-4.4 and it worked for him, I thought of it being an issue introduced with gcc-4.5.
Comment 4 David Butler 2011-09-10 14:06:27 UTC
I can confirm this on 2.1.4 as well
Comment 5 Marcin Mirosław 2011-11-18 22:02:34 UTC
Openvpn-2.2.0 also fails to compile without ssl.
Comment 6 kfm 2011-11-18 23:18:53 UTC
Several patches were applied between 2.2.0 and 2.2.1 which address this issue, among others. A version bump and a stabilisation push would be the simplest solution. Alternatively, the patches could be cherry picked and backported from here:-

http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn.git;a=shortlog;h=refs/tags/v2.2.1
Comment 7 Dirkjan Ochtman (RETIRED) gentoo-dev 2012-02-16 10:51:26 UTC
2.2.2 is in the tree.