From issues-return-104-archive-asf-public=cust-asf.ponee.io@milagro.apache.org Wed Aug 14 16:57:49 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id C6FE51802C7 for ; Wed, 14 Aug 2019 18:57:48 +0200 (CEST) Received: (qmail 20527 invoked by uid 500); 14 Aug 2019 16:57:48 -0000 Mailing-List: contact issues-help@milagro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@milagro.apache.org Delivered-To: mailing list issues@milagro.apache.org Received: (qmail 20518 invoked by uid 99); 14 Aug 2019 16:57:48 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2019 16:57:48 +0000 From: GitBox To: issues@milagro.apache.org Subject: [GitHub] [incubator-milagro-crypto-c] GuillaumeCisco edited a comment on issue #38: Python wrappers Message-ID: <156580186812.28045.4412006015825519372.gitbox@gitbox.apache.org> Date: Wed, 14 Aug 2019 16:57:48 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit GuillaumeCisco edited a comment on issue #38: Python wrappers URL: https://github.com/apache/incubator-milagro-crypto-c/issues/38#issuecomment-521329526 What I tried: Using the file `test_pair_FP256BN.c` which use `CURVE_Order_FP256BN`. Creating the .so (from python wrapper generated directory) using: `gcc -g -I../../include -I../../../../include -fPIC -Wall -Wextra ../../test/test_pair_FP256BN.c -shared -o ./test_pair_FP256BN.so` With a file named test_pair_FP256BN.py: ``` import cffi ffi = cffi.FFI() ffi.cdef(""" int main(); """) lib = ffi.dlopen("./rom.so") lib.main() ``` Then: ``` $> python Python 2.7.15+ (default, Nov 27 2018, 23:36:35) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import test_pair_FP256BN Traceback (most recent call last): File "", line 1, in ImportError: ./test_pair_FP256BN.so: undefined symbol: CURVE_Order_FP256BN ``` There is something I'm not doing correctly... ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@milagro.apache.org For additional commands, e-mail: issues-help@milagro.apache.org