From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 44FFB377E for ; Thu, 28 Jul 2016 06:49:28 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id o80so89417922wme.1 for ; Wed, 27 Jul 2016 21:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=07fT3iWgJFpiIHjZiiRQRCm5uuuXUXgCJEKuPkh38mc=; b=LPD6vOuaNZRhvDblc2xpzNxKQwdhtwhuTGY0gWqA2yOxd8rh1RgMAAsB9QRazkShbK SFm0XMlSjwkAsvX7C2TEWEhz9xAlHGgMNIm6Ifh3geYQ9R04eG/Trc5gfJt3wsh4Gzzo 6Tq6rR7/pkNrxc87UPEsgR4QpwGEmht3MF2I6sqhnfjLJYQF4EUqzUI6zPU7aRfRGRKw Y7Ktx7PEnEP7FLnJr9yP3IN8AQOyUIQOganHdSmAHDThGk7ttjLms2OMfEf4oluucYsr i0nTkAYuRq1Ric+hYCFwzP5DkaaF5qj0FhUsXEIC6pdqjnO/CqmQYOvDiydyGhITMzlR UZkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=07fT3iWgJFpiIHjZiiRQRCm5uuuXUXgCJEKuPkh38mc=; b=eaUr/Hbrz8lehLrCMu4Y3mBuZe//WvqQFGK01wgTOquAAOUy9D/0r+kcxWwv6OTCaJ Ch4DhnIomtb6mY8L9IAR8Hs7nzZotJtXZakRerl5RVAMlh4DEuYvLCyu7Clkq5nwleFn pPNtt7gV1FpxzqFHoW/lPtaldzS2FiAA8WeOeVMqJxedJU63kcZWnLpgiPipj3AKf5J8 Uk2NrFf6ckkuUG1RZ/qKch3pj4y149jR210W9X4h9WUCNBVjV9RC+uaqRehcijwWeImE 77b7zoLOiEyyg5EGX166T4fkO0gTSiVHyO96gGSW25UrBPKZEbhCG8TRd2W4mTL50hUW mVSg== X-Gm-Message-State: AEkoout/YiwGH6lEMKUZq/OqKSS327TzNZ+PDdJRbGzKBZdBuYKvca0UFUbHH4OFKYKgQXCvfgoNbYKtjnhjtQ== X-Received: by 10.28.182.136 with SMTP id g130mr34531346wmf.21.1469681367831; Wed, 27 Jul 2016 21:49:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.158.233 with HTTP; Wed, 27 Jul 2016 21:49:27 -0700 (PDT) In-Reply-To: <20160728044529.DDE6C3604BE@narya.tortall.net> References: <20160728044529.DDE6C3604BE@narya.tortall.net> From: Chinmaya Dwibedy Date: Thu, 28 Jul 2016 10:19:27 +0530 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Fwd: Undelivered Mail Returned to Sender X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2016 04:49:28 -0000 Hi All, I have downloaded the IPsec mult-buffer library (ipsec_043.zip) from Intel site (mentioned at http://dpdk.org/doc/guides-16.04/cryptodevs/aesni_mb.html) and compiled it using #make YASM=/usr/bin/yasm. Upon trying to create a shared library from static library using #gcc -shared -Wl,--whole-archive libIPSec_MB.a -o libIPSec_MB.so, it gives the below link error. /usr/bin/ld: libIPSec_MB.a(aes128_cntr_by4_sse.o): relocation R_X86_64_PC32 against symbol `byteswap_const' cannot be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status [root@mgmt-rig-7 code]# The version of yasm is 1.3.0. The release note at http://yasm.tortall.net/releases/Release1.3.0.html clearly says that, yasm-1.3.0 has a full support for shared objects. Then why it gives aforesaid error. Can anyone please let me know if I am missing anything or it is an issue with yasm? Thank you in advance for your support and time. Please feel free to let me know if additional information is needed. Here are the procedures followed to configure and install yasm. wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz tar -xvzf yasm-1.3.0.tar.gz cd yasm-1.3.0 ./configure && make -j 4 && sudo make install [root@local code]# /usr/bin/yasm --version yasm 1.3.0 Compiled on Jul 28 2016. Copyright (c) 2001-2014 Peter Johnson and other Yasm developers. Run yasm --license for licensing overview and summary. [root@ local code]# Here are the complier flags and assembler flags used in Makefile. LIB=libIPSec_MB.a YASM=/nfs/site/disks/iots4/engineering/cai_isa/tools/yasm-bdw/yasm OBJ_DIR=obj INCLUDE_DIRS := include . INCLUDES := $(foreach i,$(INCLUDE_DIRS),-I $i) CXX := g++ CC := gcc CXXFLAGS := -g -D LINUX -D NDEBUG $(INCLUDES) -O2 -fPIC ASMFLAGS := -f x64 -f elf64 -X gnu -g dwarf2 -D LINUX -D __linux__ $(INCLUDES) Regards, Chinmaya