From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by dpdk.org (Postfix) with ESMTP id 19D304C74 for ; Tue, 11 Sep 2018 12:50:00 +0200 (CEST) Received: by mail-oi0-f46.google.com with SMTP id l82-v6so46215525oih.11 for ; Tue, 11 Sep 2018 03:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kaust.edu.sa; s=google; h=mime-version:from:date:message-id:subject:to; bh=2J4b/H1fNNFLq+22x5OUatVCjz6fhKA4xBx3YE1m9fM=; b=YI0lM4LnRho87j35lIgEahu1KoIi5V+UziTVmFauP3Nbw4J32tTylLPP/ab+2Mbp4L dJ3IudulYbTlhY7loC0YMSd0ANO3/gLgxKako2+3FhH2bN//uVDINOjfQiGsXFNsU2p5 klMO7bHQPWfmI3xmzrFialmbojz3Smm9g6+YY= 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=2J4b/H1fNNFLq+22x5OUatVCjz6fhKA4xBx3YE1m9fM=; b=sKZd0GzjZ/gWPYuEcWSXkZcF48ancOLDx/hnAAmjNOysJqBRSsD162+fNIinAKg/1i n3F+9Xiw+5BmpVMF/xZQ/fhxsLwY/hNv9NFs2Bs19INf4m9pkJJ7JTC3Wo5kx3pkabud 0DaNOBfnpVVT5xusEMm9JzN6NKICx0aqOjTqzZ9/kHzBcGiuDdaUI5IM9391wBp4aX7U cylwYe8ibf7jQIVvufvnqfDECUYGxLdDDHO0VSrHMywFkl633Ju8Sv+bfEYNGSIUN4jK Q6wwOctwYPNdyodXfVGj+ZhBNninDOz/0z5scMBqDViF4nmqqz8Pws/r56+SG4PTnWM/ 3T/w== X-Gm-Message-State: APzg51C8TQidQo0Mb8oZwhQb00ib/WaT0Cftp6YcrUbX0D0VsGBYHrVS k0yAMR1gQYZFW35DRMFr0LoR9BnSrhyBUObPJaraadT40O2/fiEeL+sPJNwEhFFIGHUsr/Uu6SM qwdavCw== X-Google-Smtp-Source: ANB0Vda1vEu9m7TEU2KaP8fl8x0YEh5hLsuGLbGfzpkZJlrL0Bbrv7Uk8KjoV6s98xKKaMCAxIHAgw== X-Received: by 2002:aca:a90f:: with SMTP id s15-v6mr25571597oie.129.1536662999829; Tue, 11 Sep 2018 03:49:59 -0700 (PDT) Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com. [209.85.218.49]) by smtp.gmail.com with ESMTPSA id m7-v6sm18042394oia.32.2018.09.11.03.49.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Sep 2018 03:49:58 -0700 (PDT) Received: by mail-oi0-f49.google.com with SMTP id y207-v6so46172475oie.13 for ; Tue, 11 Sep 2018 03:49:58 -0700 (PDT) X-Received: by 2002:aca:3254:: with SMTP id y81-v6mr24820566oiy.317.1536662998576; Tue, 11 Sep 2018 03:49:58 -0700 (PDT) MIME-Version: 1.0 From: Amedeo Sapio Date: Tue, 11 Sep 2018 13:49:31 +0300 X-Gmail-Original-Message-ID: Message-ID: To: users@dpdk.org X-KAUSTGmailUsers: PPSPAMCheckPass Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] DPDK application as a 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: , X-List-Received-Date: Tue, 11 Sep 2018 10:50:01 -0000 Dear all, I am writing a program that uses dpdk. I wrote the program based on the dpdk examples, in particular using the Makefile provided in the examples. If i compile the program as an APP (as describe here ), all goes well. However, my code is part of a larger project, for which the use of a separate makefile causes a lot of troubles. So I compiled my code as a library, as described in the same page. Now, the program that calls the functions in the library (to initialize the EAL) is getting this error: MBUF: error setting mempool handler Cannot init mbuf pool I also made an experiment with the l2fwd example. The example compiled as an app works correctly. But if I compile it as a library and then I call the functions in this library from another program, I get: EAL: Error - exiting with code: 1 Cause: No Ethernet ports - bye I have one ethernet port using the igb_uio driver (seen from dpdk-devbind.py). When I compile my program, I link the following libraries: dpdk, pthread, dl, numa. DPDK is compiled from source as described here . Thanks for your help, --- Amedeo -- This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.