openvpnserv building under MSVC
Hi!
It's me again - author of the eduVPN client for Windows. This time I have a new problem. And, a solution I'd like to share with OpenVPN community.
I am considering bundling openvpn.exe, openvpnserv.exe, and standard TAP drivers with eduVPN client to allow some degree of independence from stock OpenVPN installations.
However, our version of openvpnserv.exe should have some modifications (different named pipe, different registry key) to avoid collision with stock OpenVPN installation. But that's our long term goal.
Unfortunately, maintaining a mingw build environment for our own OpenVPN binaries is an overkill. Therefore, in the first stage, I have updated the Microsoft Visual Studio C++ project files to be able to compile openvpnserv.exe again:
- Project files were updated to Microsoft Visual Studio C++ 2017 Community Edition.
- Some minor updates were made to .h/.c files to compile using MSVC again.
- Support for x64 platform was added.
- All MSVC warnings were addressed and fixed.
Can I deliver the patches for above?
Best regards,
Simon Rozman
wow.
did you try to build it on App Veyor ? (I tried, no success)
2017-10-10 17:22 GMT+05:00 Simon Rozman <[email protected]...>:
Quoted 39 lines
Hi!
It's me again - author of the eduVPN client for Windows. This time I have a new problem. And, a solution I'd like to share with OpenVPN community.
I am considering bundling openvpn.exe, openvpnserv.exe, and standard TAP drivers with eduVPN client to allow some degree of independence from stock OpenVPN installations.
However, our version of openvpnserv.exe should have some modifications (different named pipe, different registry key) to avoid collision with stock
OpenVPN installation. But that's our long term goal.Unfortunately, maintaining a mingw build environment for our own OpenVPN binaries is an overkill. Therefore, in the first stage, I have updated the Microsoft Visual Studio C++ project files to be able to compile openvpnserv.exe again:
- Project files were updated to Microsoft Visual Studio C++ 2017 Community Edition.
- Some minor updates were made to .h/.c files to compile using MSVC again.
- Support for x64 platform was added.
- All MSVC warnings were addressed and fixed.Can I deliver the patches for above?
Best regards,
Simon Rozman------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
No, I have fixed it to build using locally installed Visual Studio 2017 Community Edition.
It really wasn't much trouble. Somebody just needed to wipe the dust off it and fix some things that got out of sync as OpenVPN development continued over years.
I am preparing separate patches for separate tasks that were done at https://github.com/Amebis/openvpn. After I am done testing, I would like to contribute them here the official way. Since I'm new here, I might need some guidance though.
Best regards,
Simon
From: Илья Шипицин [mailto:[email protected]...]
Sent: Tuesday, October 10, 2017 3:10 PM
To: Simon Rozman
Cc: openvpn-devel ([email protected])
Subject: Re: [Openvpn-devel] openvpnserv building under MSVC
wow.
did you try to build it on App Veyor ? (I tried, no success)
2017-10-10 17:22 GMT+05:00 Simon Rozman <[email protected]...>:
Hi!
It's me again - author of the eduVPN client for Windows. This time I have a new problem. And, a solution I'd like to share with OpenVPN community.
I am considering bundling openvpn.exe, openvpnserv.exe, and standard TAP drivers with eduVPN client to allow some degree of independence from stock OpenVPN installations.
However, our version of openvpnserv.exe should have some modifications (different named pipe, different registry key) to avoid collision with stock OpenVPN installation. But that's our long term goal.
Unfortunately, maintaining a mingw build environment for our own OpenVPN binaries is an overkill. Therefore, in the first stage, I have updated the Microsoft Visual Studio C++ project files to be able to compile openvpnserv.exe again:
- Project files were updated to Microsoft Visual Studio C++ 2017 Community Edition.
- Some minor updates were made to .h/.c files to compile using MSVC again.
- Support for x64 platform was added.
- All MSVC warnings were addressed and fixed.
Can I deliver the patches for above?
Best regards,
Simon Rozman
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Hi,
I have fixed msvc-*.bat files in the project root too now. So now IDE can be launched from command line, as well as MSVC building works from command line now. I see you have forked OpenVPN repository on GitHub and applied my patches, so you might be interested in this one too. Let me know.
Otherwise, I am curious about OpenVPN dev-team preferences now.
1. Should I post all MSVC-specific file changes as a one single large patch? (.sln/.vcxproj/.bat files, without .h/.c)
2. Should I continue posting MSVC specific project & batch file in small steps?
I don't want to make too much confusion here and/or risk some or all of my work to get overlooked or rejected.
Best regards,
Simon
From: Илья Шипицин [mailto:[email protected]...]
Sent: Tuesday, October 10, 2017 3:10 PM
To: Simon Rozman
Cc: openvpn-devel ([email protected])
Subject: Re: [Openvpn-devel] openvpnserv building under MSVC
wow.
did you try to build it on App Veyor ? (I tried, no success)
2017-10-10 17:22 GMT+05:00 Simon Rozman <[email protected]...>:
Hi!
It's me again - author of the eduVPN client for Windows. This time I have a new problem. And, a solution I'd like to share with OpenVPN community.
I am considering bundling openvpn.exe, openvpnserv.exe, and standard TAP drivers with eduVPN client to allow some degree of independence from stock OpenVPN installations.
However, our version of openvpnserv.exe should have some modifications (different named pipe, different registry key) to avoid collision with stock OpenVPN installation. But that's our long term goal.
Unfortunately, maintaining a mingw build environment for our own OpenVPN binaries is an overkill. Therefore, in the first stage, I have updated the Microsoft Visual Studio C++ project files to be able to compile openvpnserv.exe again:
- Project files were updated to Microsoft Visual Studio C++ 2017 Community Edition.
- Some minor updates were made to .h/.c files to compile using MSVC again.
- Support for x64 platform was added.
- All MSVC warnings were addressed and fixed.
Can I deliver the patches for above?
Best regards,
Simon Rozman
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Hi,
Quoted 1 line · Simon Rozman
1. Should I post all MSVC-specific file changes as a one single large patch? (.sln/.vcxproj/.bat files, without .h/.c)
That would be my preference. But for the existing patches (unless they are stale), keep 'em as they are.
Quoted 1 line
I don't want to make too much confusion here and/or risk some or all of my work to get overlooked or rejected.
Don't be dramatic, as we've already merged part of "all your work" :-)
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Hi,
Quoted 1 line
Quoted 1 line
1. Should I post all MSVC-specific file changes as a one single
large
Quoted 3 lines
patch? (.sln/.vcxproj/.bat files, without .h/.c)
That would be my preference. But for the existing patches (unless they
are
Quoted 1 line
stale), keep 'em as they are.
Then, you can safely discard all my patches that were .sln/.vxcproj/.bat related.
Once the .h/.c related patches get reviewed, we can get back to this and I prepare you one patch to fast forward all MSVC building stuff. It's a moving target: since the "13 patch bundle", I have refined the project files, setup AppVeyor building, etc.
Best regards,
Simon
Hi,
I am learning this whole mingw-generic build environment just to be able to test openvpn build before I submit any patch. And only now, I realized what you probably meant below.
No, I haven’t upgraded openvpn-build to build on MSVC yet. Let alone on App Veyor. I'd like to fix building of the core openvpn project first.
Best regards,
Simon
From: Илья Шипицин [mailto:[email protected]...]
Sent: Tuesday, October 10, 2017 3:10 PM
To: Simon Rozman
Cc: openvpn-devel ([email protected])
Subject: Re: [Openvpn-devel] openvpnserv building under MSVC
wow.
did you try to build it on App Veyor ? (I tried, no success)
2017-10-13 13:10 GMT+05:00 Simon Rozman <[email protected]...>:
Quoted 4 lines
Hi,
Quoted 9 lines
I am learning this whole mingw-generic build environment just to be able to test openvpn build before I submit any patch. And only now, I realized what you probably meant below.
No, I haven’t upgraded openvpn-build to build on MSVC yet. Let alone on App Veyor. I'd
openvpn-build is a separate project
Quoted 2 lines
like to fix building of the core openvpn project first.
yep, I meant App Veyor for openvpn core itself
Quoted 20 lines
Best regards,
Simon
*From:* Илья Шипицин [mailto:[email protected]...] *Sent:* Tuesday, October 10, 2017 3:10 PM
*To:* Simon Rozman
*Cc:* openvpn-devel ([email protected]) *Subject:* Re: [Openvpn-devel] openvpnserv building under MSVCwow.
did you try to build it on App Veyor ? (I tried, no success)
Hi,
Quoted 10 lines
-----Original Message-----
From: Илья Шипицин [mailto:[email protected]...]
Sent: Friday, October 13, 2017 10:28 AM
To: Simon Rozman
Cc: openvpn-devel ([email protected])
Subject: Re: [Openvpn-devel] openvpnserv building under MSVCyep, I meant App Veyor for openvpn core itself
I have setup AppVeyor building for core openvpn-msvc now. Please, check out my fork at https://github.com/Amebis/openvpn.
I repeat: this is for openvpnserv only for the time being. I am not confident, I can revise entire openvpn.exe code to make it MSVC compliant. If only I had more time.
Beast regards,
Simon
Hi,
Quoted 11 lines · Simon Rozman
Unfortunately, maintaining a mingw build environment for our own OpenVPN binaries is an overkill. Therefore, in the first stage, I have updated the Microsoft Visual Studio C++ project files to be able to compile openvpnserv.exe again:
- Project files were updated to Microsoft Visual Studio C++ 2017 Community Edition.
- Some minor updates were made to .h/.c files to compile using MSVC again.
- Support for x64 platform was added.
- All MSVC warnings were addressed and fixed.Can I deliver the patches for above?
This sounds good. Please send patches (preferably with git-send-email, in reasonable chunks) to the list so we can review and merge. Please rebase on top of master.
"Reasonable chunks" is a very subjective thing, of course :-) - in this case I'd group the MSVC specific things into one patch (like, project files and such), and the rest into one or more patches depending on the number of changes.
MSVC-only things are easier to review as there won't be any impact to other platforms or build systems, while generic "fix warning" patches have the tendency to introduce warnings elsewhere (like, printf() format specifiers vs. "what is a time_t" being a prime example).
Anyway, thanks for dusting off these corners :-)
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Hi,
Quoted 2 lines
This sounds good. Please send patches (preferably with git-send-email, in reasonable chunks) to the list so we can review and merge. Please rebase
on
Quoted 3 lines
top of master.
"Reasonable chunks" is a very subjective thing, of course :-) - in this
case I'd
Quoted 1 line
group the MSVC specific things into one patch (like, project files and
such),
Quoted 3 lines
and the rest into one or more patches depending on the number of changes.
MSVC-only things are easier to review as there won't be any impact to
other
Quoted 2 lines
platforms or build systems, while generic "fix warning" patches have the tendency to introduce warnings elsewhere (like,
printf()format specifiers
vs.
Quoted 3 lines
"what is a
time_t" being a prime example).Anyway, thanks for dusting off these corners :-)
I hope I haven't over-divided things into chunks. Following your recommendations, no single chunk updates both C sources and MSVC related files. I'm afraid the [PATCH 05/13] might fail on mingw, but as mentioned in its description there are a couple of work-arounds possible. I am not comfortable with mingw to test it myself. Hence, I got this MSVC resurrection idea.
I shall look into the building of openvpn.exe under MSVC in the days to come. At least to get an estimate how much work would require me to re-establish MSVC build for it as well.
I have been happily using OpenVPN to connect remote computers for more than a decade. Perhaps it's time now to give something in return. :)
Best regards,
Simon