From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0067.outbound.protection.outlook.com [104.47.36.67]) by dpdk.org (Postfix) with ESMTP id 9B91F330D for ; Tue, 5 Sep 2017 10:37:27 +0200 (CEST) Received: from BLUPR0301CA0022.namprd03.prod.outlook.com (10.162.113.160) by BN3PR03MB2258.namprd03.prod.outlook.com (10.166.74.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Tue, 5 Sep 2017 08:37:26 +0000 Received: from BN1AFFO11OLC004.protection.gbl (2a01:111:f400:7c10::147) by BLUPR0301CA0022.outlook.office365.com (2a01:111:e400:5259::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10 via Frontend Transport; Tue, 5 Sep 2017 08:37:26 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11OLC004.mail.protection.outlook.com (10.58.53.75) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Tue, 5 Sep 2017 08:37:26 +0000 Received: from [10.232.134.49] (B35197-11.ap.freescale.net [10.232.134.49]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v858bN0k007285; Tue, 5 Sep 2017 01:37:24 -0700 To: "De Lara Guarch, Pablo" , "dev@dpdk.org" CC: "hemant.agrawal@nxp.com" , "Doherty, Declan" References: <20170728110738.28922-2-akhil.goyal@nxp.com> <20170829070205.11497-1-akhil.goyal@nxp.com> From: Akhil Goyal Message-ID: <3a3b9ff6-e0b6-8de1-4def-693e7f70f152@nxp.com> Date: Tue, 5 Sep 2017 14:07:22 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131490742463822641; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(3190300001)(339900001)(377454003)(199003)(51914003)(24454002)(189002)(13464003)(498600001)(54906002)(31686004)(86362001)(230700001)(64126003)(31696002)(229853002)(50466002)(76176999)(2950100002)(23676002)(50986999)(54356999)(8656003)(2501003)(4001350100001)(97736004)(36756003)(2906002)(65826007)(5660300001)(53546010)(106466001)(33646002)(65806001)(83506001)(81156014)(65956001)(81166006)(356003)(8676002)(53936002)(105606002)(47776003)(4326008)(104016004)(68736007)(305945005)(6246003)(8936002)(626005)(189998001)(85426001)(77096006); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2258; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC004; 1:Fpgpt8KO12FTrvQMXbcj93OOA81DFeHO+fnxez/OCYYAFTMFtSgDTCGxo//MkpF8k9JA+wAugJN8CsulcnJ0dZWvpWc8+1bQJ92PtkpadmB5jvT544Kt30l2VY9MgmYa X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 197c31b0-7793-44f5-99d4-08d4f4395643 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN3PR03MB2258; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2258; 3:z+z7keLIrraiUKiwV35WwEhxwFPuDKpKr3/aMK1yE2zOUToMz9YkK5HlzxwMmx15mAiAS0RfV+zuk95MK2yrEcFU5OZ1yuSNp5Aa/Bv32IrPxRcE2uoucqN3aVfx2kKfO5wn30qHLguxC8kBfJxVcKUg9NQUq/03DCao8fSTq1jKjECfaOLwoBZvvYvaY4NHRPIZTQ8spw2TGqjQZvtoopNBcJMLLfZEVxiCIBvoqHlSo/As0sTKh7/5L1x1QY5d0BowEzjf+7z7pXp98jPNInb7YsTAgxvzs6XBljmu/Bkh/6An96XgzWg4LYJ8BNmUnZiFph3YOwkYgG2LCGHYgFGfBIWDbPqv5bQbd2x/vwg=; 25:034r/1KPEfU8CxpzsXprGIi6YAYS17UotU9vilMVHtmqz4uFU2wCk5L0bnQqo93TZLEP7k3Zcnvqfyyulo71/cEyBdO15ldMSS9Nn7tuyyI+Va4MSthu/iiIL8aeCkuCd81LLdx9Go/58Fg4uZjZRE6G+n/nLkFqxpx1piGsAI7JBh3QI799sDq420RBaLsjZAS2LSKNaMg4wohHiJYL0emkeC787hypcGWeEiOiQfjwzpu6gxUoGWHGQCaZVpifLN9taGtYUhPol8jPpfeGfOyBqQ5arHYKU/8brxO5o0sSIrG2PRKwWPYjRZQbb+kjUk8+pWM/ovQLw2rpCgWsGw== X-MS-TrafficTypeDiagnostic: BN3PR03MB2258: X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2258; 31:3PK1Rgvq8b6jLhUTaawjINql8E9q7++i3TxSTgqhDjHHlEBPHp5YHu1pQCVq/AvHLWuAf5iE1eDIyRy/e8o/CJ//0dqT/3ULBzLLWdjTFgFU/LaTPrgGxw4aCTpI6axpFG1UvIYKs6dXCC+KnklbQJzHiGtX82ZN3BX+KTf1Oya1G/+SfZgZW6r2R7AHU/Xp8v9msw9RilQ8UjsyIV8HdqPT3i0ksYb80Ibadz2M2BE=; 4:APRRkJofGYCnmdlXMs2vVWoDVpqyAHOj0EHQcwrw8XRnK2CrPquzDFm5nNoUUndC26ZBBXiarHvp5y/V+8RPlHcvlyM7x4HzurOXvXAFq45dPPir1U63eAelpSXBrNQbVDsprZ4dUsN637EWKhNPmAynfavAlzugi0Z3ateczdbtFMfTcVBGlvBDHuLWgIw0bpjFT/C0+kU4p2A3SuiPc7DPUoaucT/5xoSDfZMCOt/LMnncvnnLdjd5gaJt/H98Xc2IYpFjHqFrnoO7xdEA0iZFPHSIHz6mTYSQIfMSe287MZLl4RYfe59mDiPHeWr5UkBxnPkUZN//6Ft4oIfUrg== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6055026)(6096035)(20161123559100)(20161123563025)(20161123556025)(20161123565025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR03MB2258; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR03MB2258; X-Forefront-PRVS: 0421BF7135 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjNQUjAzTUIyMjU4OzIzOkFJeGpQd0RwWjhwcityQWVMMk1LczhhZm8w?= =?utf-8?B?YzQvYVJ5dW9pR000ZnQ5VVpid3EyK2hTZWJLRExOSHJ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JKdU52N3QvaXJzZ1d5c3JqRlBMZnk5RGM5b09jZXgxS0o0?= =?utf-8?B?MXhMcHhpQnlRPT0=?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2258; 6:3xO2Shw9loaffGacF8v5SuRfFbYLllfg1ydSjaAlmDtzF5RMrNno1p7FND4vurStbSUc0qo9XE3uCX2kRdrqWvoUB9vS53OIBgfXXCxBW6M1suu6tvmWoPEcR/TAI5qxbVNrc/nkxsKNDRLgODiYT2WKBPkRFb4wdcLBaBlOs09qLPLv7hJe6Vd7vFiuXNUFLm2+eSilaIIwWIToU4ocO4y9o1awm3N3XrPYmOqkQvSxo7tFOTeBGaNbmzKz1GRKTR1L6PlzyGcMGuckaowF2ptLaOfYt6Rmm2o6XQX6p2SfP80zlHHRA3K7aVjtTj0yiDUuNM9GKP3EPUxHhiErrw==; 5:rE2C2T2qSxQEGfUp7pvLBlz8Q2WPVmRfovbuKdy8IVLcaF5pDWtxHu7DPoLlXCdApDAy3Wye9udwnVWRT5skVADpgv6auImqLTQv9PTarvlOuXh5Oa2yyyqBgc5eMR2rwS+I08dVNnmrQC1J0mCjXA==; 24:VE8qCHLRyCR+c93PWKuPOX0mST/cW1zmpzULUmTWbf+nox8QAAgpUe5bawuq34WVBXT6dJlwBu/hLdJ7+0bbTPrkA1l/b6d/MHcYA15WAWw=; 7:4HFl03QbeN7bPq3xo0BOeafnGz1zqcUH/DWAzSlg417LpU1P9F3JJf9MGkUuWNlx5MSzL6C6BSDQMdxZlbyjQAkD32pCxDzXyrtkq58zqP80+yDAs9omB0jxev3ShU8PCVHBWcmJPyfDiICgXmC8dovv8vAWFBdG8a0Rwj33NwWTEtEQOYIXSTLdTe0h7w5SwR+BNtvzQXg0olUXTL8w5UO7E04l/+WtmKz3Gn4U1JI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2017 08:37:26.1950 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2258 Subject: Re: [dpdk-dev] [PATCH v2] crypto/openssl: add openssl path for cross compile X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2017 08:37:28 -0000 Hi Pablo, On 9/5/2017 1:52 PM, De Lara Guarch, Pablo wrote: > Hi Akhil, > >> -----Original Message----- >> From: Akhil Goyal [mailto:akhil.goyal@nxp.com] >> Sent: Tuesday, August 29, 2017 8:02 AM >> To: dev@dpdk.org; De Lara Guarch, Pablo >> >> Cc: hemant.agrawal@nxp.com; Doherty, Declan >> ; Akhil Goyal >> Subject: [PATCH v2] crypto/openssl: add openssl path for cross compile >> >> OPENSSL_PATH should be defined in case openssl driver is cross compiled >> >> Signed-off-by: Akhil Goyal >> --- > > ... > >> --- a/mk/rte.app.mk >> +++ b/mk/rte.app.mk >> @@ -151,7 +151,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_MB) >> += -lrte_pmd_aesni_mb >> _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_MB) += - >> L$(AESNI_MULTI_BUFFER_LIB_PATH) -lIPSec_MB >> _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += - >> lrte_pmd_aesni_gcm >> _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += - >> L$(AESNI_MULTI_BUFFER_LIB_PATH) -lIPSec_MB >> -_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += -lrte_pmd_openssl - >> lcrypto >> +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += - >> L${OPENSSL_PATH}/lib -lrte_pmd_openssl -lcrypto > > I am getting the following messages when compiling: > > /usr/bin/ld: skipping incompatible /lib/libcrypto.so when searching for -lcrypto > /usr/bin/ld: skipping incompatible /lib/librt.so when searching for -lrt > /usr/bin/ld: skipping incompatible /lib/libm.so when searching for -lm > > Since, OPENSSL_PATH is not defined in my system, it is trying to link against libraries in /lib/. > I suggest adding a condition to add the openssl directory only if OPENSSL_PATH is defined: > > +ifeq ($(OPENSSL_PATH),) > +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += -lrte_pmd_openssl -lcrypto > +else > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += -L${OPENSSL_PATH}/lib -lrte_pmd_openssl -lcrypto > +endif > > Would this work for you? > Thanks for the suggestion. yes this would be fine. I will update the patch accordingly. -Akhil