So I am pretty green at some of this still. I would call the setup.py for cryptography at the end of this bash script?
-----Original Message-----
From: OpenSource <opensource-bounces@xxxxxxxxxxxx> On Behalf Of Massimo Fantin
Sent: Wednesday, August 22, 2018 12:35 PM
To: opensource@xxxxxxxxxxxx
Subject: Re: [IBMiOSS] failure on installing cryptography
The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin.
You need libffi packages to compile first :
https://sourceware.org/libffi/
i use this script to compile :
===================================================================================================================================
#!/QOpenSys/pkgs/bin/bash
OBJECT_MODE=64
export CONFIG_SHELL=/QOpenSys/pkgs/bin/bash
export CONFIG_ENV_ARGS=/QOpenSys/pkgs/bin/bash
export CC=gcc
export CFLAGS='-maix64 -fPIC -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51
-D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_ALL_SOURCE -DFUNCPROTO=15'
export CXX="g++ -maix64"
export CXXFLAGS=$CFLAGS
export F77=xlf
#export FFLAGS="-O -I/QOpenSys/pkgs/include"
export AR="ar -X64"
export NM="nm -X64"
export LD="ld -b64"
# for 32-bit applications
#export LDFLAGS='-L/QOpenSys/pkgs/lib
-Wl,-blibpath:/QOpenSys/pkgs/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000'
# for 64-bit applications
export LDFLAGS="-Wl,-brtl -Wl,-bexpall -Wl,-bbigtoc -Wl,-blibpath:/QOpenSys/pkgs/lib:/usr/lib:/lib:./src/elfobjs
-Wl,-bmaxdata:0x80000000"
export PATH=/QOpenSys/pkgs/bin:/QOpenSys/pkgs/sbin:/usr/local/bin
./configure --prefix=/QOpenSys/pkgs --host=powerpc-ibm-aix6.1.0.0 make clean make make install
====================================================================================================================
Massimo Fantin
Il 22/08/2018 18:56, Jeremy Meyer ha scritto:
Trying to install the cryptography package on our IBM I and I get the following error from pip:
import _cffi_backend as backend
ImportError: Could not load module /QOpenSys/pkgs/lib/python3.6/site-packages/cffi-1.11.5-py3.6-os400-powerpc64.egg/_cffi_backend.so.
The local-exec model was used for thread-local
storage, but the module is not the main program.
Examine the .loader section header with the 'dump -Hv' command.
Any ideas. I found a link talking about the _thread storage class on AIX but I don't know enough to understand it.
https://www.ibm.com/support/knowledgecenter/en/SSGH3R_12.1.0/com.ibm.x
lcpp121.aix.doc/language_ref/thread.html
Jeremy Meyer
NOTICE: This electronic mail message and any files transmitted with it
are intended exclusively for the individual or entity to which it is
addressed. The message, together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or
distribution is strictly prohibited. If you have received this message
in error, please immediately advise the sender by reply email and delete all copies.
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list To post a message email: OpenSource@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
https://archive.midrange.com/opensource.
NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message,
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution
is strictly prohibited. If you have received this message in error, please
immediately advise the sender by reply email and delete all copies.
As an Amazon Associate we earn from qualifying purchases.