Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 630392004C8 for ; Mon, 9 May 2016 21:24:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5FEAA1609A8; Mon, 9 May 2016 19:24:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8412516099C for ; Mon, 9 May 2016 21:24:26 +0200 (CEST) Received: (qmail 40695 invoked by uid 500); 9 May 2016 19:24:25 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 40684 invoked by uid 99); 9 May 2016 19:24:25 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2016 19:24:25 +0000 Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id EF4CD1A00E4 for ; Mon, 9 May 2016 19:24:24 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id m64so211271074lfd.1 for ; Mon, 09 May 2016 12:24:24 -0700 (PDT) X-Gm-Message-State: AOPr4FUoDF+J64+7vPl85OMiPdFU0yAKKJqEBpD8GvODV2vj02FdMutm3cqwJhNhJEEdC8xNw+/Rzps+U3xRVQ== X-Received: by 10.112.133.166 with SMTP id pd6mr15330903lbb.125.1462821863431; Mon, 09 May 2016 12:24:23 -0700 (PDT) MIME-Version: 1.0 References: <3E657120E422654A9EB626F537B8AA911414EF20@shsmsx102.ccr.corp.intel.com> In-Reply-To: From: Benedikt Ritter Date: Mon, 09 May 2016 19:24:13 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [CRYPTO] How to build CRYPTO on Mac OS 10.11? To: Commons Developers List Content-Type: multipart/alternative; boundary=047d7b3435a48a2a5f05326dc1f0 archived-at: Mon, 09 May 2016 19:24:27 -0000 --047d7b3435a48a2a5f05326dc1f0 Content-Type: text/plain; charset=UTF-8 Hello Dapeng, Sun, Dapeng schrieb am Mi., 4. Mai 2016 um 05:33 Uhr: > Hi Benedikt, > > Hope this information will be helpful > > 1. Upgrade openssl to 1.0.1c above using brew(http://brew.sh/)[1]: > Check your openssl version, by default it's not 1.0.1 > $openssl version > OpenSSL 0.9.8r 8 Feb 2011 > > $ brew search openssl > $ brew install homebrew/versions/openssl101 > $ brew link openssl --force > > Open a new terminal window, test your openssl version, it should be 1.0.1 > now > $ openssl version > OpenSSL 1.0.1s 1 Mar 2016 > If not, please check if Homebrew /usr/local/bin if at the front of $PATH > > 2. Download and install JCE Unlimited Strength Jurisdiction Policy Files[2] > > Download the Java Cryptography Extension (JCE) Unlimited Strength > Jurisdiction Policy Files from Oracle. > For JDK 1.6: > http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html > For JDK 1.7: > http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html > For JDK 1.8: > http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html > > Uncompress and extract the downloaded file. The download includes a > Readme.txt and two .jar files with the same names as the existing policy > files. > > Replace local_policy.jar and US_export_policy.jar at > /lib/security/ > > 3. Set system environment JAVA_HOME[3] > $ echo $JAVA_HOME > In Mac OSX 10.5 or later, Apple recommends to set the $JAVA_HOME variable > to /usr/libexec/java_home, just export $JAVA_HOME in file ~/. bash_profile > or ~/.profile. > > I have tried it on local machine, please feel free to let me know if you > still have any problem. > I've followed your guide, but I'm still getting: compiling OSInfo.java gcc -arch x86_64 -Ilib/inc_mac -I/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/include -O2 -fPIC -mmacosx-version-min=10.5 -fvisibility=hidden -Ilib/include -I/usr/include -I"src/main/native/org/apache/commons/crypto/" -I"/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/include/darwin" -I"target/jni-classes/org/apache/commons/crypto/cipher" -I"target/jni-classes/org/apache/commons/crypto/random" -c src/main/native/org/apache/commons/crypto/random/OpensslCryptoRandomNative.c -o target/commons-crypto-1.0.0-SNAPSHOT-Mac-x86_64/OpensslCryptoRandom.o In file included from src/main/native/org/apache/commons/crypto/random/OpensslCryptoRandomNative.c:19: In file included from src/main/native/org/apache/commons/crypto/random/org_apache_commons_crypto_random.h:22: src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h:200:10: fatal error: 'openssl/aes.h' file not found #include So it looks like my openssl installation is not picked up by the build. I'm not sure what to do now. Maybe we can have a skype call, try to identify the problems on my machine together and document them on the website. I'll be on vacation the next week, so I won't have time to work on crypto until May, 19th. Regards, Benedikt > > Regards > Dapeng > > [1] > http://stackoverflow.com/questions/15185661/update-openssl-on-os-x-with-homebrew > [2] > https://www.attachmate.com/documentation/rweb/rweb-installguide/data/b1gdutii.htm > [3] > http://www.mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/ > > -----Original Message----- > From: Benedikt Ritter [mailto:britter@apache.org] > Sent: Wednesday, May 04, 2016 12:39 AM > To: Commons Developers List > Subject: Re: [CRYPTO] How to build CRYPTO on Mac OS 10.11? > > Chen, Haifeng schrieb am Di., 3. Mai 2016 um > 03:49 Uhr: > > > Sorry to not response in the past days due to Holiday here. > > We will start to check that. I agree that JNA is a good thing to try > > as long as the performance impact is in an acceptable level. > > > > It would be good enough for me to have some documentation on how to setup > the development environment. If none of the crypto developers uses Mac OS, > I'll need to figure out and document myself. Maybe somebody can help me via > hang out to understand better what the requirements are. > > Regards, > Benedikt > > > > > > > > -----Original Message----- > > From: sebb [mailto:sebbaz@gmail.com] > > Sent: Monday, May 2, 2016 6:51 PM > > To: Commons Developers List > > Subject: Re: [CRYPTO] How to build CRYPTO on Mac OS 10.11? > > > > On 2 May 2016 at 11:45, Benedikt Ritter wrote: > > > sebb schrieb am So., 1. Mai 2016 um 21:19 Uhr: > > > > > >> On 1 May 2016 at 19:17, Benedikt Ritter wrote: > > >> > Hi, > > >> > > > >> > today I started working on the site build. I ran into problems > > >> > with the native build and with different JDK versions. Can anybody > help? > > >> > I've documented my problems in CRYPTO-45 [1]. > > >> > > >> I think you have discovered why there were concerns about using JNI... > > >> > > > > > > :-) > > > > > > I think it just has to be documented. The problem seems to be > > > specific to Mac OS 10.11. > > > > But it's not possible to document these problems without having access > > to the relevant OS. > > > > And even if one does, this is a non-trivial exercise as you have just > > shown. > > > > > > > >> > > >> > Regards, > > >> > Benedikt > > >> > > > >> > [1] https://issues.apache.org/jira/browse/CRYPTO-45 > > >> > > >> ------------------------------------------------------------------- > > >> -- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > > >> For additional commands, e-mail: dev-help@commons.apache.org > > >> > > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > > For additional commands, e-mail: dev-help@commons.apache.org > > > > > --047d7b3435a48a2a5f05326dc1f0--