Skip to contentSkip to conversation

Some issues with openvpn-build/windows-nsis

Openvpn-devel Samuli Seppänen 2 participants 7 messages May 10, 2012 – May 11, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

I tried to generate a Windows installer on Ubuntu 11.10 amd64, but ran into some issues:

$ cd openvpn-build/windows-nsis
$ ./build-snapshot
--- snip ---

make[3]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[2]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[1]: Leaving directory `/home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' tap-windows
Fixup libtool files
Restore libtool files
ls: cannot access tmp/image-i686/openvpn-i686-*-bin.*: No such file or directory

The error message seems clear enough, but I'm wondering why the binaries are not where it looks for them:

$ ls tmp/image-i686
openvpn
$ ls tmp/image-i686/openvpn
bin  etc  include  lib  share
Signature · 12 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock


PS. For those interested in building and cross-compiling OpenVPN using
the new "openvpn-build" buildsystem, please take a look here:

<https://community.openvpn.net/openvpn/wiki/BuildingUsingGenericBuildsystem>
<https://github.com/OpenVPN/openvpn-build>
#1 lore raw

Il 10.05.2012 15:11, Samuli Seppänen ha scritto:

Quoted 21 lines

Hi,

I tried to generate a Windows installer on Ubuntu 11.10 amd64, but ran into some issues:

$ cd openvpn-build/windows-nsis
$ ./build-snapshot
--- snip ---

make[3]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[2]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[1]: Leaving directory `/home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' tap-windows
Fixup libtool files
Restore libtool files
ls: cannot access tmp/image-i686/openvpn-i686-*-bin.*: No such file or directory

Quoted 7 lines

The error message seems clear enough, but I'm wondering why the binaries are not where it looks for them:

$ ls tmp/image-i686
openvpn
$ ls tmp/image-i686/openvpn
bin  etc  include  lib  share

Oh, forgot to ask... is there a clean way to resume the build near the failure point? Rebuilding everything every time is very time-consuming.

Samuli

#2 lore raw
Quoted 25 lines · Samuli Seppänen

Il 10.05.2012 15:11, Samuli Seppänen ha scritto:

Quoted 24 lines

Hi,

I tried to generate a Windows installer on Ubuntu 11.10 amd64, but ran into some issues:

$ cd openvpn-build/windows-nsis
$ ./build-snapshot
--- snip ---

make[3]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[2]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[1]: Leaving directory `/home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' tap-windows
Fixup libtool files
Restore libtool files
ls: cannot access tmp/image-i686/openvpn-i686-*-bin.*: No such file or directory

The error message seems clear enough, but I'm wondering why the binaries are not where it looks for them:

Quoted 7 lines
Quoted 4 lines
$ ls tmp/image-i686
openvpn
$ ls tmp/image-i686/openvpn
bin  etc  include  lib  share

Oh, forgot to ask... is there a clean way to resume the build near the failure point? Rebuilding everything every time is very time-consuming.

No.... sorry, I didn't think it worth the effort as dependencies build is one time and you can use regular openvpn configure && make against the dependencies while developing.

But once you have the binary images you can use the windows-nsis/build script to only create installer out of them.

Alon.

#3 lore raw
In reply to Samuli Seppänen
Quoted 21 lines · Samuli Seppänen

Hi,

I tried to generate a Windows installer on Ubuntu 11.10 amd64, but ran into some issues:

$ cd openvpn-build/windows-nsis
$ ./build-snapshot
--- snip ---

make[3]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[2]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[1]: Leaving directory `/home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' tap-windows
Fixup libtool files
Restore libtool files
ls: cannot access tmp/image-i686/openvpn-i686-*-bin.*: No such file or directory

Quoted 7 lines

The error message seems clear enough, but I'm wondering why the binaries are not where it looks for them:

$ ls tmp/image-i686
openvpn
$ ls tmp/image-i686/openvpn
bin  etc  include  lib  share

This is strange, as you referred to dash, which I never tested, I will try and see if that is the problem.

Alon.

#4 lore raw
Quoted 26 lines · Samuli Seppänen
Quoted 24 lines

Hi,

I tried to generate a Windows installer on Ubuntu 11.10 amd64, but ran into some issues:

$ cd openvpn-build/windows-nsis
$ ./build-snapshot
--- snip ---

make[3]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[2]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[1]: Leaving directory `/home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' tap-windows
Fixup libtool files
Restore libtool files
ls: cannot access tmp/image-i686/openvpn-i686-*-bin.*: No such file or directory

The error message seems clear enough, but I'm wondering why the binaries are not where it looks for them:

Quoted 8 lines
Quoted 4 lines
$ ls tmp/image-i686
openvpn
$ ls tmp/image-i686/openvpn
bin  etc  include  lib  share

This is strange, as you referred to dash, which I never tested, I will try and see if that is the problem.

Alon.

What I know is that if I work around this problem, I get a shell syntax error later on... and if I switch #!/bin/sh to #!/bin/bash in "build-snapshot", that syntax error goes away. To be more precise, the error occurs at openvpn-build/windows-nsis/build:5, which is

   ROOT="${ROOT:-tmp}"

I don't have full logs at hand right now, unfortunately.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#5 lore raw
Quoted 34 lines · Samuli Seppänen
Quoted 26 lines · Samuli Seppänen
Quoted 24 lines

Hi,

I tried to generate a Windows installer on Ubuntu 11.10 amd64, but ran into some issues:

$ cd openvpn-build/windows-nsis
$ ./build-snapshot
--- snip ---

make[3]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[2]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[1]: Leaving directory `/home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' tap-windows
Fixup libtool files
Restore libtool files
ls: cannot access tmp/image-i686/openvpn-i686-*-bin.*: No such file or directory

The error message seems clear enough, but I'm wondering why the binaries are not where it looks for them:

Quoted 8 lines
Quoted 4 lines
$ ls tmp/image-i686
openvpn
$ ls tmp/image-i686/openvpn
bin  etc  include  lib  share

This is strange, as you referred to dash, which I never tested, I will try and see if that is the problem.

Alon.

Quoted 8 lines

What I know is that if I work around this problem, I get a shell syntax error later on... and if I switch #!/bin/sh to #!/bin/bash in "build-snapshot", that syntax error goes away. To be more precise, the error occurs at openvpn-build/windows-nsis/build:5, which is

  ROOT="${ROOT:-tmp}"

I don't have full logs at hand right now, unfortunately.

No the problem was in much later phase... dash does not support ${XXX//} syntax. Fixed now.
Can you please try again?

Thanks!
Alon.

#6 lore raw

Il 10.05.2012 18:18, Alon Bar-Lev ha scritto:

Quoted 41 lines · Samuli Seppänen
Quoted 40 lines
Quoted 25 lines · Samuli Seppänen
Quoted 24 lines

Hi,

I tried to generate a Windows installer on Ubuntu 11.10 amd64, but ran into some issues:

$ cd openvpn-build/windows-nsis
$ ./build-snapshot
--- snip ---

make[3]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[2]: Leaving directory /home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' make[1]: Leaving directory `/home/samuli/opt/openvpn-build/windows-nsis/tmp/build-i686/pkcs11-helper-1.10' tap-windows
Fixup libtool files
Restore libtool files
ls: cannot access tmp/image-i686/openvpn-i686-*-bin.*: No such file or directory

The error message seems clear enough, but I'm wondering why the binaries are not where it looks for them:

Quoted 8 lines
Quoted 4 lines
$ ls tmp/image-i686
openvpn
$ ls tmp/image-i686/openvpn
bin  etc  include  lib  share

This is strange, as you referred to dash, which I never tested, I will try and see if that is the problem.

Alon.

What I know is that if I work around this problem, I get a shell syntax error later on... and if I switch #!/bin/sh to #!/bin/bash in "build-snapshot", that syntax error goes away. To be more precise, the error occurs at openvpn-build/windows-nsis/build:5, which is

  ROOT="${ROOT:-tmp}"
Quoted 7 lines
Quoted 1 line

I don't have full logs at hand right now, unfortunately.

No the problem was in much later phase... dash does not support ${XXX//} syntax. Fixed now.
Can you please try again?

Thanks!
Alon.

Yeah, will do.

Samuli