From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D4509A0548 for ; Tue, 20 Apr 2021 18:25:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C38B541749; Tue, 20 Apr 2021 18:25:01 +0200 (CEST) Received: from clt-mbsout-01.mbs.boeing.net (clt-mbsout-01.mbs.boeing.net [130.76.144.162]) by mails.dpdk.org (Postfix) with ESMTP id BEDAE41735 for ; Tue, 20 Apr 2021 18:24:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by clt-mbsout-01.mbs.boeing.net (8.15.2/8.15.2/DOWNSTREAM_MBSOUT) with SMTP id 13KGOw58002636; Tue, 20 Apr 2021 12:24:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boeing.com; s=boeing-s1912; t=1618935898; bh=hu7TW2Qzvi/A6QJTJg4gMH50zDlqwSagjvbPUJ73syA=; h=From:To:Subject:Date:From; b=buNhUI682G+d7GJ0Uijn42kMwyCPpWdToPglIvNGdlmMTq4jiap6rf+r/n8Q9/7MN MjHRfher+iCa7bjSpb3yr3n/sXrBbObnStiwcysKJfyYDIC6SmDJUqx8Ch3NYKNvxn GnfLRBlkUwe087mwd0Mqewk7QclwaCdtZu1jECRTrssIKVulu6N49Q74XKAN3WkZhn l9Ca6+WBopZRIJOl1wHqd10fPgW50u/BaMFi6h2RSQaSHo7uap45tFZyeeDJtKRczG xVF03p9CkPiai9DsWG8JRmYtYQHGVzRw/Klt3EjzwDXYdGTwPw1etbh2QGHrK4Hjxz pbDEtJVWha2vw== Received: from XCH16-07-12.nos.boeing.com (xch16-07-12.nos.boeing.com [144.115.66.114]) by clt-mbsout-01.mbs.boeing.net (8.15.2/8.15.2/8.15.2/UPSTREAM_MBSOUT) with ESMTPS id 13KGOqmD002592 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=OK); Tue, 20 Apr 2021 12:24:52 -0400 Received: from XCH16-07-10.nos.boeing.com (144.115.66.112) by XCH16-07-12.nos.boeing.com (144.115.66.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.2242.4; Tue, 20 Apr 2021 09:24:50 -0700 Received: from XCH16-07-10.nos.boeing.com ([fe80::1522:f068:5766:53b5]) by XCH16-07-10.nos.boeing.com ([fe80::1522:f068:5766:53b5%2]) with mapi id 15.01.2176.009; Tue, 20 Apr 2021 09:24:50 -0700 From: "Templin (US), Fred L" To: "users@dpdk.org" , Stephen Hemminger Thread-Topic: dpdk-20.11 and shared libraries Thread-Index: Adc1/fli+4+6Q8dTRM29ym5j+b52Jw== Date: Tue, 20 Apr 2021 16:24:50 +0000 Message-ID: <3e2a222c70864e73965adbe64b5c72a2@boeing.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.137.12.6] x-tm-snts-smtp: 28E18F7457B6DEA120259E603FBDB7B328BBBCE8D4B002E6D46906344E238D022000:8 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-TM-AS-GCONF: 00 Subject: [dpdk-users] dpdk-20.11 and shared libraries X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi, I have put a lot of time into learning about dpdk-20.11 but I have not = yet found documentation on how to use it with shared libraries. In dpdk-20.11, the e= xamples are all built as "static" by default meaning that the entire kitchen sink o= f all DPDK libraries are linked in during the "ld" phase and the resulting binary is h= uge. When built as "static", the examples all appear to work fine as everything is lo= aded by default at runtime. When I build the examples as "shared", however, the story is completely dif= ferent. Examples that run fine as "static" do not work at all when built as "shared= ". It is clear that somehow the build procedure is not giving adequate instructions = to the loader so that all necessary libraries will be ready to go at runtime. I believe what needs to happen is that initialization code needs to be adde= d to the example "main.c" modules to initialize functions that will be needed by low= er levels but that are not being picked up on by the loader. But, I can find no docum= entation for how to do this. In my next message, I will send a code example of what = I have tried so far. Stephen, can you provide guidance on how to work with dpdk-20.11 in shared library environments? I would be happy to be pointed to any documentation I may be missing. Thanks - Fred