Re: [Openvpn-devel] static build

2012-02-28 Thread Samuli Seppänen
>> Mr Dash Four: could you try following the steps Alon gave in his earlier >> mail to see if it works for you? The buildsystem fetches the >> dependencies from standard URLs, see "openvpn-build/generic/build.vars". >> > Except that they are not "standard", at least not all of them. > The Alon'

Re: [Openvpn-devel] static build

2012-02-27 Thread Gert Doering
Hi, On Mon, Feb 27, 2012 at 03:28:46PM +, Mr Dash Four wrote: > The Alon's version of "openvpn 2.3_alpha1" is very different from > "openvpn 2.3_alpha1" downloaded from the official openvpn git repository > using the same tag! If you do not believe me - take a look for yourself. This is wel

Re: [Openvpn-devel] static build

2012-02-27 Thread Mr Dash Four
Mr Dash Four: could you try following the steps Alon gave in his earlier mail to see if it works for you? The buildsystem fetches the dependencies from standard URLs, see "openvpn-build/generic/build.vars". Except that they are not "standard", at least not all of them. The openvpn url in bu

Re: [Openvpn-devel] static build

2012-02-27 Thread Samuli Seppänen
> This is my last reply on this thread. > What I show you is that without any change I compile static code for > arm using cross compiler. > I guess I am far more knowledgeable than you to tell me what is right, > and I disapprove your comments and language. > > So the answer to your initial quest

Re: [Openvpn-devel] static build

2012-02-26 Thread Alon Bar-Lev
This is my last reply on this thread. What I show you is that without any change I compile static code for arm using cross compiler. I guess I am far more knowledgeable than you to tell me what is right, and I disapprove your comments and language. So the answer to your initial question: yes, open

Re: [Openvpn-devel] static build

2012-02-26 Thread Mr Dash Four
arm-unknown-linux-gnueabi-objdump: image-arm-static/openvpn/sbin/openvpn: Invalid operation Huh? Have you altered the sources/makefiles of openvpn or any of the dependent libraries (lzo, openssh etc) by any chance? I noticed you are applying a single patch to the lzo source, which I had t

Re: [Openvpn-devel] static build

2012-02-26 Thread Alon Bar-Lev
$ git clone https://github.com/alonbl/openvpn-build.git $ cd openvpn.build $ DO_REALLY_STATIC=1 IMAGEROOT=`pwd`/image-arm-static CHOST=arm-unknown-linux-gnueabi CBUILD=x86_64-pc-linux-gnu ./build $ file image-arm-static/openvpn/sbin/openvpn image-arm-static/openvpn/sbin/openvpn: ELF 32-bit LSB exec

Re: [Openvpn-devel] static build

2012-02-26 Thread Mr Dash Four
You can check if executable is static by using arm-unknown-linux-gnueabi-readelf --relocas. The fact that the archive has a lot of files does not mean the openvpn is not static. Well, I don't really know what you understand "static linking" to be, but to me it means that all external functio

Re: [Openvpn-devel] static build

2012-02-26 Thread Alon Bar-Lev
Hello, You can check if executable is static by using arm-unknown-linux-gnueabi-readelf --relocas. The fact that the archive has a lot of files does not mean the openvpn is not static. Anyway it is working at my side, and it is a standard process. You can adjust the script for your needs. Alon.

Re: [Openvpn-devel] static build

2012-02-26 Thread Mr Dash Four
Reason being, I suspect, that the lzo static libraries cannot be found (strange as the compilation succeeded). I need tmp/openvpn/config.log Better to have the complete build output... This was done in mock environment (both the rpm and "normal" build). When I did this from outside,

Re: [Openvpn-devel] static build

2012-02-26 Thread Alon Bar-Lev
On Sun, Feb 26, 2012 at 2:12 AM, Mr Dash Four wrote: >> To cross compile master to arm in static, do: >> $ git clone git://github.com/alonbl/openvpn-build.git >> $ cd openvpn-build/generic >> $ CHOST="arm-unknown-linux-gnueabi" CBUILD="x86_64-pc-linux-gnu" >> DO_STATIC=1 ./build >> >> It will crea

Re: [Openvpn-devel] static build

2012-02-26 Thread Mr Dash Four
> To cross compile master to arm in static, do: > $ git clone git://github.com/alonbl/openvpn-build.git > $ cd openvpn-build/generic > $ CHOST="arm-unknown-linux-gnueabi" CBUILD="x86_64-pc-linux-gnu" > DO_STATIC=1 ./build > > It will create static dependencies, but dynamic libc, if you want > real

Re: [Openvpn-devel] static build

2012-02-24 Thread Mr Dash Four
I am working on a new build system for OpenVPN, you can check it[1] out. To cross compile master to arm in static, do: $ git clone git://github.com/alonbl/openvpn-build.git $ cd openvpn-build/generic $ CHOST="arm-unknown-linux-gnueabi" CBUILD="x86_64-pc-linux-gnu" DO_STATIC=1 ./build It will c

Re: [Openvpn-devel] static build

2012-02-23 Thread Alon Bar-Lev
Hello, I am working on a new build system for OpenVPN, you can check it[1] out. To cross compile master to arm in static, do: $ git clone git://github.com/alonbl/openvpn-build.git $ cd openvpn-build/generic $ CHOST="arm-unknown-linux-gnueabi" CBUILD="x86_64-pc-linux-gnu" DO_STATIC=1 ./build It w