From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from plane.gmane.org ([80.91.229.3]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WOENx-0000fY-6v for ptxdist@pengutronix.de; Thu, 13 Mar 2014 23:46:16 +0100 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WOENv-0002ML-D1 for ptxdist@pengutronix.de; Thu, 13 Mar 2014 23:45:55 +0100 Received: from 216.106.33.202.reverse.socket.net ([216.106.33.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Mar 2014 23:45:55 +0100 Received: from jdwilson.rfc by 216.106.33.202.reverse.socket.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Mar 2014 23:45:55 +0100 From: jdwilson Date: Thu, 13 Mar 2014 22:45:30 +0000 (UTC) Message-ID: References: <201403120953.00500.jbe@pengutronix.de> Mime-Version: 1.0 Subject: Re: [ptxdist] =?utf-8?q?ptxdist-2012=2E03=2E00_python2=2E6=2C_hashlib?= =?utf-8?q?=2Epy=2C=09flup=2Epy_install_fails_ImportError=3A_No_mod?= =?utf-8?q?ule_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="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Juergen, Thank you for the feedback. I have figured out what the issue is. The default options to build openssl 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. 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 how 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) and where does HOST_OPENSSL_PKG get defined? (Running grep through ptxdist/rules only shows the host-openssl.make file). Any help would be much appreciated. Regards, jd -- ptxdist mailing list ptxdist@pengutronix.de