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 A7D31A0524 for ; Fri, 6 Nov 2020 02:35:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 01BDC126B; Fri, 6 Nov 2020 02:35:43 +0100 (CET) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) by dpdk.org (Postfix) with ESMTP id 99958100C for ; Fri, 6 Nov 2020 02:35:41 +0100 (CET) Received: by mail-ed1-f46.google.com with SMTP id p93so3597275edd.7 for ; Thu, 05 Nov 2020 17:35:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=RvsuLz9msdHKBOECgzY5RJ4oajEAasjFMleibub7pyU=; b=vhI4H1X/LTUM7VDI/AKMUOO26AiIBgzHjk7STFxGtG0YRHXEfGLU19mNiDXkb6HfA3 OoWgQDBqUFf4NX2BF2I1Gr7XxV9F7jT+XtoLmWiw7QYdWwTmXpXd7H7tFTBwXGoR+Dj0 MnAM4Ovb7JBuSguOrCRibxNjuv/iUHgRf3U5OJ2tbZIIPgdE646aaZSAnfaayDPdOvvR hKDR3Yu+LrZyWeREl8KpRwU48JmbCHsA2QE7mRW2IvOSf+9xMvn26065m0Do700yBoyM fVPw97IRDvWJ3IvqhDRkrE0FRo0EnLy0Ub3GhusEnK7REBFw1DlWu9BISd5TRHjTmmkq /Twg== 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=RvsuLz9msdHKBOECgzY5RJ4oajEAasjFMleibub7pyU=; b=VW2gY7diFYYY8Yfjl3NcRU8no/im0lhFhDAxOwxf0WvYimTw5jY9fFmdmuSrDDO5gB zBn4su9taXc/h+CO6GF8CNN6oY2oXPHrtwiMPctrcWX8hvyAIfIlj8m+TCN/vuRcFNAF OH3tu5VR+wI6bBvAcUvAldhVzHTGrW9y9+ln23Ui3FklTVs3vz9dFvlU2K+uOIH9b6Mq bpNb1BhrUMGd6DKHM1XgKoATizT69jUplOS0CKatKB1+YrpkupyHhbzcDqHlFs0EOkp7 0KammHL2KihkYPWBx1eaeIEzB5G+eOOb22z3ZOA1CuUrz7nF8dijIt9tILevJrRoH4Xg 1UBQ== X-Gm-Message-State: AOAM531apgRqH6kRDYPiGclYdjTujrh2P0TZmdtXL7ucWmf8nDOSA4mO nrGn8cepsO5xBs4AYuifxuPPisOKcpTTuj81LK80lKgSUn9Tug== X-Google-Smtp-Source: ABdhPJwuV2KMzb/7f+6+JD9uJwDxl+rVzDwQF2bu3SDyVdFdMpitYI6HXABsVg/FkpcuWTgURpOBwY4yCg0Gb/s0wB4= X-Received: by 2002:aa7:dbca:: with SMTP id v10mr3651613edt.219.1604626539792; Thu, 05 Nov 2020 17:35:39 -0800 (PST) MIME-Version: 1.0 From: Sudharshan Krishnakumar Date: Thu, 5 Nov 2020 17:35:27 -0800 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] issue with building DPDK app using static option 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" Hi All, I am using DPDK version 19.11 on Ubuntu 18.04. I am building DPDK using meson/ninja using steps here-> https://doc.dpdk.org/guides/linux_gsg/build_dpdk.html Also built DPDK example app -> examples/packet_ordering. When building example app packet_ordering, running make, by default builds the shared version which is named packet_ordering-shared, which links the application with DPDK shared libraries. This version of the application-> packet_ordering-shared(which uses shared libraries), runs fine. But for reasons(outside of this context), I need to build the static version of this app, packet_ordering-static, by running make static, but it fails with several(thousands) undefined reference errors. Some of the undefined reference errors below: - sw_evdev_selftest.c:(.text+0xd6cc): undefined reference to `rte_event_dev_xstats_by_name_get' - /usr/local/lib/x86_64-linux-gnu/librte_pmd_bnx2x.a(net_bnx2x_bnx2x.c.o): In function `bnx2x_set_power_state': Atleast for the errors that I checked, the static libraries exist, and those functions are defined in those libraries. /home:>> /usr/local/lib/x86_64-linux-gnu$ nm librte_bus_pci.a | grep rte_pci_read_config 00000000000010d0 T rte_pci_read_config /home:>> /usr/local/lib/x86_64-linux-gnu$ nm librte_eventdev.a | grep rte_event_dev_xstats_by_name_get 0000000000002d60 T rte_event_dev_xstats_by_name_get I also printed the LDFLAGS_STATIC and LDFLAGS_SHARED(just to compare output) and other flags in the Makefile. I have the build output(attached), that has those linker flags printed, along with the several undefined reference errors. Please let me know. thanks, Sudha