× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.xlcpp121.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.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.