From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Beisert Date: Fri, 14 Mar 2014 09:28:58 +0100 References: <201403120953.00500.jbe@pengutronix.de> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201403140928.58580.jbe@pengutronix.de> Subject: Re: [ptxdist] =?iso-8859-1?q?ptxdist-2012=2E03=2E00_python2=2E6=2C_ha?= =?iso-8859-1?q?shlib=2Epy=2C_=09flup=2Epy_install_fails_ImportError=3A_No?= =?iso-8859-1?q?_module_named_=5Fsha256?= Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: jdwilson Hi, On Thursday 13 March 2014 23:45:30 jdwilson wrote: > I have figured out what the issue is. The default options to build opens= sl > for the *build-host* need to be set so that at least no-ssl2 is defined, > and possibly "shared". I think the latter is needed because python may be > looking for the dynamic lib. The default openssl build only produces the > static libs. > > Background: In a sandbox rootfs under Linux 12.04LTS I installed openssl > and found that both _hashlib and _ssl were not included in the libcrypt.a > or ssl.a modules. After I ran through ./configure's options, I added > "shared" and "no-ssl2" to the ./configure command line, (as well as > specifying my sandbox env using --prefix). Disabling ssl2 resolves the > issue/bug with ssl2 (SSLv2_method), which can be addressed later. If you need to add the "--shared" and the "--no-ssl2" config parameter, add= it = to the HOST_OPENSSL_CONF_OPT variable in "rules/host-openssl.make". > Having hashlib and ssl available will keep the "from hashlib import md5" > from failing when flup.py is installed (see original posting). > > Right now I'm trying to work through the ptxdist guru doc to understand h= ow > to properly modify the host-openssl.in,.make so that I can define the > options to build the host-openssl correctly. > > More specifically, I can't find documentation as to how to enable > "PTXCONF_HOST_OPENSSL" in menuconfig (other than manually editing the > ptxconfig file) Add it to the *.in package menu file which depends on HOST_OPENSSL config MY_PACKAGE_WHICH_DEPENDS_ON_HOST_OPENSSL tristate prompt "my package which depends on host openssl" select HOST_OPENSSL <----------- help friesel, frasel,.... Regards, Juergen -- = Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 | Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutroni= x.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de