From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by dpdk.org (Postfix) with ESMTP id BCEAD7F0D for ; Tue, 11 Nov 2014 13:00:40 +0100 (CET) Received: by mail-lb0-f171.google.com with SMTP id b6so7494581lbj.30 for ; Tue, 11 Nov 2014 04:10:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XVfU0eHTJ5tm2yrJbLqDrvka85dWAL0BrHCt1flcRxU=; b=wq2YH2NmIeBeurar9tEEfUH6pg4lCUcQfOP4neA5MBJvGp6SD52kLJxFmgozz/tkN7 ZY8c3NbkDxBwpv48MphRJJ6AwriCBc1T2492LuBLJqGBqi4XEMFXeM9jI4BFJ2VUXVMv JxhorZaRH77sNts6zjDmIfX7KpWYXYJMN6NtvFZl9Kk2OF6zNiV6F1DY6QYuzPkPK16I 6x2CAguV4IZ4AhpOVge1/ZT2dF9dQWBvA/W8Tj0UO4+SdPbI4iP+NKBiazT2n/cGSeS0 1IZ2WtXpjKImLNpF5qXB/oxQ1sJTELnX1+42/2JXyAKvjhxPLbutsyE/u0/5ivP/Bthf PIvw== MIME-Version: 1.0 X-Received: by 10.152.8.1 with SMTP id n1mr35367694laa.28.1415707829996; Tue, 11 Nov 2014 04:10:29 -0800 (PST) Received: by 10.25.216.158 with HTTP; Tue, 11 Nov 2014 04:10:29 -0800 (PST) In-Reply-To: <91383E96CE459D47BCE92EFBF5CE73B004E9D503@IRSMSX108.ger.corp.intel.com> References: <91383E96CE459D47BCE92EFBF5CE73B004E9D503@IRSMSX108.ger.corp.intel.com> Date: Tue, 11 Nov 2014 13:10:29 +0100 Message-ID: From: Newman Poborsky To: "Gonzalez Monroy, Sergio" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] building shared library X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2014 12:00:41 -0000 Hi, I want to build one .so file with my app (it contains API that I want to call through JNI) and all DPDK libs that I use in my app. As I've already mentioned, when I build and start my dpdk app as a standalone application, I can see that before main() is called, there is a call to 'rte_eal_driver_register()' function for every driver. When I build .so file, this does not happen and no driver is registered so everyting after rte_eal_init() fails. BR, Newman On Tue, Nov 11, 2014 at 11:37 AM, Gonzalez Monroy, Sergio < sergio.gonzalez.monroy@intel.com> wrote: > Hi Newman, > > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Newman Poborsky > > Sent: Monday, November 10, 2014 2:23 PM > > > > Hi, > > > > is it possible to build a dpdk app as a shared library? > > > > I tried to put 'include $(RTE_SDK)/mk/rte.extshared.mk' in my Makefile > (and > > define SHARED) and it builds .so lib, but all rte_* symbols are > undefined. > > > Can you elaborate a bit on how you are building DPDK and your app? > Is your objective to build a single .so containing your app and all DPDK > libs? > Or do you want your app to have a link dependency on DPDK shared libs? > >