"FATAL: make openssl" when trying to create windows installe

Instructions and tips on how to roll your own client installer.
alexxtasi
OpenVPN User
Posts: 13
Joined: Thu Dec 12, 2013 9:28 am

"FATAL: make openssl" when trying to create windows installe

Postby alexxtasi » Sat Sep 13, 2014 11:00 am

Hi all
I am trying to create a windows installer having my own configuration file...
I am following Creating a NSIS installer howto on https://community.openvpn.net/openvpn/wiki/BuildingUsingGenericBuildsystem#CreatingaNSISinstallerwindows-nsissubdir and I understand that those steps help me:

* install dependencies
* build openvpn
* create nsis installer

I am using ubuntu 14.04 so for the dependencies I run

Code: Select all

sudo apt-get install git mingw-w64 gcc-4.6-arm-linux-gnueabi man2html dos2unix nsis unzip

I fetched openvpn-build scripts with

Code: Select all

git clone https://github.com/OpenVPN/openvpn-build.git

and run the nsis script with

Code: Select all

cd windows-nsis/
./build-complete

just as the wiki steps suggested.

There was an error

Code: Select all

created directory `/home/user/projects/openvpn-NSIS-installer/openvpn-build/windows-nsis/tmp/image-i686/openvpn/tmp/man7'
installing man1/CA.pl.1
installing man1/asn1parse.1
installing man1/ca.1
installing man1/ciphers.1
installing man1/cms.1
cms.pod around line 457: Expected text after =item, not a number
cms.pod around line 461: Expected text after =item, not a number
cms.pod around line 465: Expected text after =item, not a number
cms.pod around line 470: Expected text after =item, not a number
cms.pod around line 474: Expected text after =item, not a number
POD document had syntax errors at /usr/bin/pod2man line 71.
make: *** [install_docs] Error 255
FATAL: make openssl
FATAL: build i686 >&2


searching, I found that it is an openssl build issue on https://github.com/openssl/openssl/issues/57 so I tried to modify the generic/build script on line 226 to use "make install_sw" instead of "make install"

Code: Select all

${MAKE} install_sw INSTALL_PREFIX="${INSTALL_ROOT}" INSTALLTOP="/" MANDIR="/tmp" || die "make openssl"

according to the issue, but it also result with errors, this time

Code: Select all

making install in engines...
make[1]: Entering directory `/home/user/projects/openvpn-NSIS-installer/openvpn-build/windows-nsis/tmp/build-i686/openssl-1.0.1g/engines'
installing 4758cca
cp: cannot stat ‘4758ccaeay32.dll’: No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/user/projects/openvpn-NSIS-installer/openvpn-build/windows-nsis/tmp/build-i686/openssl-1.0.1g/engines'
make: *** [install_sw] Error 1
FATAL: make openssl
FATAL: build i686 >&2


What is the solution on this error so I can build openvpn ?
Does this openssl issue has to do with it anyway ?
I did not manage to create an issue on https://github.com/OpenVPN/openvpn-build for this ?

regards

alexxtasi
OpenVPN User
Posts: 13
Joined: Thu Dec 12, 2013 9:28 am

Re: "FATAL: make openssl" when trying to create windows inst

Postby alexxtasi » Wed Sep 17, 2014 10:45 am

Hi again

* I found no solution to the second issue (error when running the generic/build script having edit it - add install_sw as described above). So the question why the error

Code: Select all

cp: cannot stat ‘4758ccaeay32.dll’: No such file or directory
comes up remains to me, but it is not so trivial cause :

* Without editing the generic/build script, but editing only the generic/build.vars (set OPENSSL_VERSION="${OPENSSL_VERSION:-1.0.1i}" - the latest version of openssl) everything goes fine with the openvpn build process and the windows installer is created !!

any idea for the first would be appreciated (just for knowledge satisfaction ;-) )

regards


Return to “Rolling Your Own Installer”

Who is online

Users browsing this forum: No registered users and 2 guests