Message-ID: <4F4B584A.30705@...515...> Date: Mon, 27 Feb 2012 12:17:46 +0200 From: =?ISO-8859-1?Q?Samuli_Sepp=E4nen?= MIME-Version: 1.0 References: <4F466205.5020006@...1030...> <4F4978D2.70706@...1030...> <4F4A31E1.2080503@...1030...> <4F4A4929.6040407@...1030...> <4F4A52DB.1040907@...1030...> In-Reply-To: Subject: Re: [Openvpn-devel] static build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable To: Alon Bar-Lev Cc: "openvpn-devel@lists.sourceforge.net" > 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, openvpn can be compiled stat= ically. > Figure it out your-self. Timeout guys, getting personal does not help. 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". Best regards, --=20 Samuli Sepp=E4nen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock > On Sun, Feb 26, 2012 at 5:42 PM, Mr Dash Four > wrote: >>> 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 to re-adjust as I was using a >> newer version, but I am not aware of any alterations that you have made = to >> these - if you have done so, please state what these alterations are? >> >> I don't know whether you've altered the original build script or not, but >> the end result, before applying my changes, clearly produces openvpn >> executable, which has external dependencies on all statically-produced .= la >> files/libraries (lzo, openssh etc) - they are all packed in the .tar arc= hive >> produced at the end of this script (located in the /lib directory to be = more >> precise). >> >> I don't know what you are trying to prove by posting the above though - = the >> final gcc linker call, which produces the openvpn executable before pack= ing >> the image does *not* have any static-linking related options whatsoever!= I >> could post the exact gcc command line, but I do not have access to that >> machine at present. >> >> These options are, as I already pointed out previously, "-static", >> "-static-gcc" as well as "-ldl" - the latter being a new dependencies, >> necessary to offset the fact that all dl* calls (dlopen etc) won't be >> satisfied if static linking is invoked, so this external library needs t= o be >> included so that static linking succeeds, otherwise you will get "unknown >> symbol" errors. >> >> Again, all that is provided you haven't altered any of the core source >> and/or makefile scripts in any way (I haven't used your own - alonbv - r= epos >> to download these, but downloaded these packages from their original sou= rce >> where these projects are created - openvpn.net, openssh.org etc). If you >> have made such alterations, I'd like to know what changes have you made? >> > -------------------------------------------------------------------------= ----- > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing=20 > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel