From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AC1A6A09FD for ; Fri, 18 Dec 2020 23:38:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1B976CAC7; Fri, 18 Dec 2020 23:38:46 +0100 (CET) Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) by dpdk.org (Postfix) with ESMTP id F17AACABD for ; Fri, 18 Dec 2020 23:38:43 +0100 (CET) Received: by mail-ot1-f45.google.com with SMTP id i6so3474777otr.2 for ; Fri, 18 Dec 2020 14:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=softwareradiosystems-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=431QeCISXE5px6KlAQPC2DJt2n6tYTh7LU6ILg+YXnY=; b=fcNs2ydw1SWEzy2hX3KlLFUWH7Zugs5v5/z41KOiLtyTQcd1wa085I+wp7IZoDzghD IJhRTUpXMTUs4z0953hZwQkpupRV7w59c5yZBj8iiF4u0eOHSG5LK6d+/vG+MoWJsuox k+BJ7brDu0N9NfQqXOo+s+uCP/jvqgWKA6OLEBqYWyFQLHd/m4M6KaTFtSFyBKB7HXAR p3/W8Hr70lEom96K7Yz+75cCbeazJZfvdGzLzrscEQRzq2nUgdj3xTr8pI6YJt4pt/GB nd2hJur62yHR1qoUlofBaUsM+cJ+ZSPNP28FC3m7po5s3SHILpkRGfYghjtB1BDrZ58N Qu1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=431QeCISXE5px6KlAQPC2DJt2n6tYTh7LU6ILg+YXnY=; b=m97hixaLlaBBK3XOMxUywfbe7y6DIb+zbkWys+Zw+r/609/6Hz7R4OpJdngHNiKhrc CL1Rt+3oFqMgXMsiFoy3SCO0fdHTtudujtdRP9LBsPPyd8HRnrca4Xzc85Y9Qm1UYf0i SJd/DSXu+CNQyE8mlW+ZtFbwS1hFlA5nYCTwfOLb6qm4VPPdPvVJI486ZDWYCSGCfp42 vYtIf/ed8I7JA33GjbfD+9im51DqZUOnfUazCUukjmzjXW/FWDZSfOH+OVaW/xuDeEiB yleZP0XBnD9t/p3kvvda4RhLFfDTovS8Nz8LTn/cis+AQcl60WBXYIlMyb6o08EQuwUG LFiA== X-Gm-Message-State: AOAM531IuBSTWd43SREb/TWfQAV7wrEvZI90kMJ+YYhbqqETjc2bLlGG cAEMqzr+UmEemP1+ns9aXnqg5gUenBh7CcpxPSygWmpfsX9k8g== X-Google-Smtp-Source: ABdhPJx4rejoAK/iCsPB7L5TAZrtwvlKH+TPwFkNhm9QxzYd0c0ShT7xorS4bUYLt42EtW5ktmegyTfEDIABNKwPwIQ= X-Received: by 2002:a9d:3b1:: with SMTP id f46mr4567370otf.370.1608331120455; Fri, 18 Dec 2020 14:38:40 -0800 (PST) MIME-Version: 1.0 From: Justin Tallon Date: Fri, 18 Dec 2020 23:38:28 +0100 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] using dpdk as a shared library X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 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" Hey guys, We are trying to use dpdk (dpdk-stable-18.08.1) as a shared library. We have recompiled as a shared library by setting *CONFIG_RTE_BUILD_SHARED_LIB=y* My program compiles file and I can see the relevant libraries when I use ldd on the binary. I direct my binary look in the correct place by using export LD_LIBRARY_PATH and the binary appears to find the libraries. However, when the function rte_eth_dev_count_avail returns it returns a 0 and exits, when I run the same program with static libraries, it works correctly. Any help on this would be great! Regards, Justin ____ Justin Tallon Ph.D. Software Radio Systems (SRS) http://www.softwareradiosystems.com +353-86-067-0753 | justin.tallon@softwareradiosystems.com