Skip to contentSkip to conversation

Crosscompile OpenVPN 2.1.1

Openvpn-devel Eike Lohmann 3 participants 9 messages Jan 20, 2010 – Jan 25, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

I am searching for the best way to compile OpenVPN 2.1.1 for Windows, I have tried it on Windows with mingw+msys and on cygwin with the native win32 option. Right now I am on Linux using the mingw crosscompiler and could compile lzo2-03, openssl-0.9.8l, pkcs11-helper-1.07.

When I try to configure openvpn-2.1.1(./configure --host=i586-mingw32msvc --with-lzo-headers=../lzo-2.03/usr/local/include/lzo --with-lzo-lib=../lzo-2.03/usr/local/lib) it stops everytime at:

configure: checking for LZO Library and Header files... checking lzo/lzo1x.h usability... no
checking lzo/lzo1x.h presence... no
checking for lzo/lzo1x.h... no
checking lzo1x.h usability... yes
checking lzo1x.h presence... yes
checking for lzo1x.h... yes
checking for lzo1x_1_15_compress in -llzo... no
configure: error: LZO headers were found but LZO library was not found

lza installdir:
openvpn-2.1.1$ ls -la ../lzo-2.03/usr/local/lib
insgesamt 820
drwxr-xr-x 2 4096 2010-01-19 16:55 .
drwxr-xr-x 4 4096 2010-01-19 16:29 ..
-rw-r--r-- 1 826766 2010-01-19 16:55 liblzo2.a
-rwxr-xr-x 1 740 2010-01-19 16:55 liblzo2.la

What exactly is missing and how to build it?

Thanks and best Regards

Eike

#1 lore raw
Quoted 2 lines · Eike Lohmann

checking for lzo1x_1_15_compress in -llzo... no
configure: error: LZO headers were found but LZO library was not found

..

Quoted 1 line

What exactly is missing and how to build it?

Look in config.log for the exact error from the configure test. It would help to also post it here.

//Peter

#2 lore raw

Meanwhile I switched over to the prebuild package, but get the same error here.
(configure: error: LZO headers were found but LZO library was not found)

In config.log I see

configure:11102: result: no
configure:11135: checking for lzo/lzo1x.h
configure:11142: result: no
configure:11166: checking lzo1x.h usability
configure:11183: i586-mingw32msvc-gcc -c -g -O2 -I../lzo-2.02/include/lzo -I. conftest.c >&5
configure:11189: $? = 0
configure:11203: result: yes
configure:11207: checking lzo1x.h presence
configure:11222: i586-mingw32msvc-gcc -E -I../lzo-2.02/include/lzo -I. conftest.c
configure:11228: $? = 0
configure:11242: result: yes
configure:11275: checking for lzo1x.h
configure:11282: result: yes
configure:11301: checking for lzo1x_1_15_compress in -llzo configure:11336: i586-mingw32msvc-gcc -o conftest.exe -g -O2 -I../lzo-2.02/include/lzo -I. -L../lzo-2.02 conftest.c -llzo -lwinmm -liphlpapi -lcrypt32 -lwininet -lws2_32 -lgdi32 >&5 /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld:
cannot find -llzo
collect2: ld returned 1 exit status
configure:11342: $? = 1
configure: failed program was:
| /* confdefs.h. */

If I set the headerpath from "../lzo-2.03/usr/local/include/lzo" to "../lzo-2.03/usr/local/include" the configure will find the headers and libs, so it seems to be a wrong errormessage.

After seting the path to openssl and disable selinux (./configure --host=i586-mingw32msvc --with-lzo-headers=../lzo-2.02/include --with-lzo-lib=../lzo-2.02 --with-ssl-headers=../openssl-0.9.8l/include --with-ssl-lib=../openssl-0.9.8l --disable-selinux)
I can go on with make and run into the next problem:

make all-recursive
make[1]: Betrete Verzeichnis '/home/eike/eikedev/openvpn_211/2.1_rc22-prebuilt/openvpn-2.1.1' Making all in images
make[2]: Betrete Verzeichnis '/home/eike/eikedev/openvpn_211/2.1_rc22-prebuilt/openvpn-2.1.1/images' make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/eike/eikedev/openvpn_211/2.1_rc22-prebuilt/openvpn-2.1.1/images' Making all in service-win32
make[2]: Betrete Verzeichnis '/home/eike/eikedev/openvpn_211/2.1_rc22-prebuilt/openvpn-2.1.1/service-win32' i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I.. -I../openssl-0.9.8l/include -I../lzo-2.02/include -I. -g -O2 -MT openvpnserv.o -MD -MP -MF .deps/openvpnserv.Tpo -c -o openvpnserv.o openvpnserv.c
mv -f .deps/openvpnserv.Tpo .deps/openvpnserv.Po i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I.. -I../openssl-0.9.8l/include -I../lzo-2.02/include -I. -g -O2 -MT service.o -MD -MP -MF .deps/service.Tpo -c -o service.o service.c mv -f .deps/service.Tpo .deps/service.Po
i586-mingw32msvc-gcc -g -O2 -L../openssl-0.9.8l -L../lzo-2.02 -o openvpnserv.exe openvpnserv.o service.o -lssl32 -leay32 -llzo2 -lwinmm -liphlpapi -lcrypt32 -lwininet -lws2_32 -lgdi32 /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld:
cannot find -lssl32
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [openvpnserv.exe] Fehler 1
make[2]: Verlasse Verzeichnis '/home/eike/eikedev/openvpn_211/2.1_rc22-prebuilt/openvpn-2.1.1/service-win32' make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/eike/eikedev/openvpn_211/2.1_rc22-prebuilt/openvpn-2.1.1'
make: *** [all] Fehler 2

p.s.: I made very good experience with visual c++ on windows. lzo, pkcs-helper, openssl all could be compiled without big problems, but since openvpn 2.1rc4 the script for visual c++ is missing.

Regrads, Eike

Quoted 27 lines · Peter Stuge
Quoted 3 lines · Eike Lohmann

checking for lzo1x_1_15_compress in -llzo... no
configure: error: LZO headers were found but LZO library was not found

..

Quoted 2 lines

What exactly is missing and how to build it?

Look in config.log for the exact error from the configure test. It would help to also post it here.

//Peter

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#3 lore raw
In reply to Eike Lohmann

Take my build from http://opensc-project.com/build

Quoted 50 lines · Eike Lohmann

Hello,

I am searching for the best way to compile OpenVPN 2.1.1 for Windows, I have tried it on Windows with mingw+msys and on cygwin with the native win32 option. Right now I am on Linux using the mingw crosscompiler and could compile lzo2-03, openssl-0.9.8l, pkcs11-helper-1.07.

When I try to configure openvpn-2.1.1(./configure --host=i586-mingw32msvc --with-lzo-headers=../lzo-2.03/usr/local/include/lzo --with-lzo-lib=../lzo-2.03/usr/local/lib) it stops everytime at:

configure: checking for LZO Library and Header files... checking lzo/lzo1x.h usability... no
checking lzo/lzo1x.h presence... no
checking for lzo/lzo1x.h... no
checking lzo1x.h usability... yes
checking lzo1x.h presence... yes
checking for lzo1x.h... yes
checking for lzo1x_1_15_compress in -llzo... no
configure: error: LZO headers were found but LZO library was not found

lza installdir:
openvpn-2.1.1$ ls -la ../lzo-2.03/usr/local/lib
insgesamt 820
drwxr-xr-x 2 4096 2010-01-19 16:55 .
drwxr-xr-x 4 4096 2010-01-19 16:29 ..

(quoted diff) +0 -2
-rw-r--r-- 1 826766 2010-01-19 16:55 liblzo2.a
-rwxr-xr-x 1 740 2010-01-19 16:55 liblzo2.la

What exactly is missing and how to build it?

Thanks and best Regards

Eike

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#4 lore raw

Ops...
http://opensc-project.org/build

Quoted 55 lines · Alon Bar-Lev

Take my build from http://opensc-project.com/build

Quoted 51 lines · Eike Lohmann

Hello,

I am searching for the best way to compile OpenVPN 2.1.1 for Windows, I have tried it on Windows with mingw+msys and on cygwin with the native win32 option. Right now I am on Linux using the mingw crosscompiler and could compile lzo2-03, openssl-0.9.8l, pkcs11-helper-1.07.

When I try to configure openvpn-2.1.1(./configure --host=i586-mingw32msvc --with-lzo-headers=../lzo-2.03/usr/local/include/lzo --with-lzo-lib=../lzo-2.03/usr/local/lib) it stops everytime at:

configure: checking for LZO Library and Header files... checking lzo/lzo1x.h usability... no
checking lzo/lzo1x.h presence... no
checking for lzo/lzo1x.h... no
checking lzo1x.h usability... yes
checking lzo1x.h presence... yes
checking for lzo1x.h... yes
checking for lzo1x_1_15_compress in -llzo... no
configure: error: LZO headers were found but LZO library was not found

lza installdir:
openvpn-2.1.1$ ls -la ../lzo-2.03/usr/local/lib
insgesamt 820
drwxr-xr-x 2 4096 2010-01-19 16:55 .
drwxr-xr-x 4 4096 2010-01-19 16:29 ..

(quoted diff) +0 -2
-rw-r--r-- 1 826766 2010-01-19 16:55 liblzo2.a
-rwxr-xr-x 1 740 2010-01-19 16:55 liblzo2.la

What exactly is missing and how to build it?

Thanks and best Regards

Eike

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]...

#6 lore raw

You should run the build script it will build all including openvpn. You can adjust it later to build whatever you need.

Quoted 70 lines · Eike Lohmann

Hi, what should I try there the openvpn binary or the libs? I am not familiar with openbc.

Regards, Eike

Quoted 60 lines · Alon Bar-Lev

Ops...
http://opensc-project.org/build

Quoted 55 lines · Alon Bar-Lev

Take my build from http://opensc-project.com/build

Quoted 51 lines · Eike Lohmann

Hello,

I am searching for the best way to compile OpenVPN 2.1.1 for Windows, I have tried it on Windows with mingw+msys and on cygwin with the native win32 option. Right now I am on Linux using the mingw crosscompiler and could compile lzo2-03, openssl-0.9.8l, pkcs11-helper-1.07.

When I try to configure openvpn-2.1.1(./configure --host=i586-mingw32msvc --with-lzo-headers=../lzo-2.03/usr/local/include/lzo --with-lzo-lib=../lzo-2.03/usr/local/lib) it stops everytime at:

configure: checking for LZO Library and Header files... checking lzo/lzo1x.h usability... no
checking lzo/lzo1x.h presence... no
checking for lzo/lzo1x.h... no
checking lzo1x.h usability... yes
checking lzo1x.h presence... yes
checking for lzo1x.h... yes
checking for lzo1x_1_15_compress in -llzo... no
configure: error: LZO headers were found but LZO library was not found

lza installdir:
openvpn-2.1.1$ ls -la ../lzo-2.03/usr/local/lib
insgesamt 820
drwxr-xr-x 2 4096 2010-01-19 16:55 .
drwxr-xr-x 4 4096 2010-01-19 16:29 ..

(quoted diff) +0 -2
-rw-r--r-- 1 826766 2010-01-19 16:55 liblzo2.a
-rwxr-xr-x 1 740 2010-01-19 16:55 liblzo2.la

What exactly is missing and how to build it?

Thanks and best Regards

Eike

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#7 lore raw

Hi Alon,

thanks, this is the only working way for me.
I am compiling with i586-mingw32msvc, where do i get the i686 crosscompiler for Debian or Ubuntu? My gentoo box is ~3 years old, I better don't touch it. :)

If I want to set some different options to the buildprocess, do I edit the ./build script or is there another smart way?

Thanks, Eike

Quoted 78 lines · Alon Bar-Lev

You should run the build script it will build all including openvpn. You can adjust it later to build whatever you need.

Quoted 73 lines · Eike Lohmann

Hi, what should I try there the openvpn binary or the libs? I am not familiar with openbc.

Regards, Eike

Quoted 63 lines · Alon Bar-Lev

Ops...
http://opensc-project.org/build

Quoted 57 lines · Alon Bar-Lev

Take my build from http://opensc-project.com/build

Quoted 52 lines · Eike Lohmann

Hello,

I am searching for the best way to compile OpenVPN 2.1.1 for Windows, I have tried it on Windows with mingw+msys and on cygwin with the native win32 option. Right now I am on Linux using the mingw crosscompiler and could compile lzo2-03, openssl-0.9.8l, pkcs11-helper-1.07.

When I try to configure openvpn-2.1.1(./configure --host=i586-mingw32msvc --with-lzo-headers=../lzo-2.03/usr/local/include/lzo --with-lzo-lib=../lzo-2.03/usr/local/lib) it stops everytime at:

configure: checking for LZO Library and Header files... checking lzo/lzo1x.h usability... no
checking lzo/lzo1x.h presence... no
checking for lzo/lzo1x.h... no
checking lzo1x.h usability... yes
checking lzo1x.h presence... yes
checking for lzo1x.h... yes
checking for lzo1x_1_15_compress in -llzo... no
configure: error: LZO headers were found but LZO library was not found

lza installdir:
openvpn-2.1.1$ ls -la ../lzo-2.03/usr/local/lib
insgesamt 820
drwxr-xr-x 2 4096 2010-01-19 16:55 .
drwxr-xr-x 4 4096 2010-01-19 16:29 ..

(quoted diff) +0 -2
-rw-r--r-- 1 826766 2010-01-19 16:55 liblzo2.a
-rwxr-xr-x 1 740 2010-01-19 16:55 liblzo2.la

What exactly is missing and how to build it?

Thanks and best Regards

Eike

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#8 lore raw
In reply to Alon Bar-Lev

After compile I copy the openvpn.exe for testing in my existing OpenVPN installation on my windowsbox, if i try to start it via the openvpngui it reports: "SSLEAY32.dll is missing"
I tried to compile openssl no-shared but that didn't chaged anything, what do I have to change ?

Best regards

Eike

Quoted 78 lines · Alon Bar-Lev

You should run the build script it will build all including openvpn. You can adjust it later to build whatever you need.

Quoted 73 lines · Eike Lohmann

Hi, what should I try there the openvpn binary or the libs? I am not familiar with openbc.

Regards, Eike

Quoted 63 lines · Alon Bar-Lev

Ops...
http://opensc-project.org/build

Quoted 57 lines · Alon Bar-Lev

Take my build from http://opensc-project.com/build

Quoted 52 lines · Eike Lohmann

Hello,

I am searching for the best way to compile OpenVPN 2.1.1 for Windows, I have tried it on Windows with mingw+msys and on cygwin with the native win32 option. Right now I am on Linux using the mingw crosscompiler and could compile lzo2-03, openssl-0.9.8l, pkcs11-helper-1.07.

When I try to configure openvpn-2.1.1(./configure --host=i586-mingw32msvc --with-lzo-headers=../lzo-2.03/usr/local/include/lzo --with-lzo-lib=../lzo-2.03/usr/local/lib) it stops everytime at:

configure: checking for LZO Library and Header files... checking lzo/lzo1x.h usability... no
checking lzo/lzo1x.h presence... no
checking for lzo/lzo1x.h... no
checking lzo1x.h usability... yes
checking lzo1x.h presence... yes
checking for lzo1x.h... yes
checking for lzo1x_1_15_compress in -llzo... no
configure: error: LZO headers were found but LZO library was not found

lza installdir:
openvpn-2.1.1$ ls -la ../lzo-2.03/usr/local/lib
insgesamt 820
drwxr-xr-x 2 4096 2010-01-19 16:55 .
drwxr-xr-x 4 4096 2010-01-19 16:29 ..

(quoted diff) +0 -2
-rw-r--r-- 1 826766 2010-01-19 16:55 liblzo2.a
-rwxr-xr-x 1 740 2010-01-19 16:55 liblzo2.la

What exactly is missing and how to build it?

Thanks and best Regards

Eike

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#9 lore raw

You should also copy the dlls from the base.

Quoted 91 lines · Eike Lohmann

After compile I copy the openvpn.exe for testing in my existing OpenVPN installation on my windowsbox, if i try to start it via the openvpngui it reports: "SSLEAY32.dll is missing"
I tried to compile openssl no-shared but that didn't chaged anything, what do I have to change ?

Best regards

Eike

Quoted 78 lines · Alon Bar-Lev

You should run the build script it will build all including openvpn. You can adjust it later to build whatever you need.

Quoted 73 lines · Eike Lohmann

Hi, what should I try there the openvpn binary or the libs? I am not familiar with openbc.

Regards, Eike

Quoted 63 lines · Alon Bar-Lev

Ops...
http://opensc-project.org/build

Quoted 57 lines · Alon Bar-Lev

Take my build from http://opensc-project.com/build

Quoted 52 lines · Eike Lohmann

Hello,

I am searching for the best way to compile OpenVPN 2.1.1 for Windows, I have tried it on Windows with mingw+msys and on cygwin with the native win32 option. Right now I am on Linux using the mingw crosscompiler and could compile lzo2-03, openssl-0.9.8l, pkcs11-helper-1.07.

When I try to configure openvpn-2.1.1(./configure --host=i586-mingw32msvc --with-lzo-headers=../lzo-2.03/usr/local/include/lzo --with-lzo-lib=../lzo-2.03/usr/local/lib) it stops everytime at:

configure: checking for LZO Library and Header files... checking lzo/lzo1x.h usability... no
checking lzo/lzo1x.h presence... no
checking for lzo/lzo1x.h... no
checking lzo1x.h usability... yes
checking lzo1x.h presence... yes
checking for lzo1x.h... yes
checking for lzo1x_1_15_compress in -llzo... no
configure: error: LZO headers were found but LZO library was not found

lza installdir:
openvpn-2.1.1$ ls -la ../lzo-2.03/usr/local/lib
insgesamt 820
drwxr-xr-x 2  4096 2010-01-19 16:55 .
drwxr-xr-x 4  4096 2010-01-19 16:29 ..

(quoted diff) +0 -2
-rw-r--r-- 1 826766 2010-01-19 16:55 liblzo2.a
-rwxr-xr-x 1 740 2010-01-19 16:55 liblzo2.la

What exactly is missing and how to build it?

Thanks and best Regards

Eike

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel