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 9DB47A0540 for ; Tue, 14 Jul 2020 18:11:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EECD51C1BB; Tue, 14 Jul 2020 18:11:21 +0200 (CEST) Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) by dpdk.org (Postfix) with ESMTP id D12BB1C1AA for ; Tue, 14 Jul 2020 18:11:20 +0200 (CEST) Received: by mail-io1-f49.google.com with SMTP id q74so17899363iod.1 for ; Tue, 14 Jul 2020 09:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0zOzQgWpMWmpvIoBNzJk98uAgn+YFHziUXogXmtij38=; b=DPy88T+nqB5c5pKQkfIxuIQSVfGrHRD2/LaTtksvzb5GdzIpVynf+YqYrj3a9tWnOd GnR2xQVXEw0jhFop+jX09/Jx8fn17WTtAiUTyaHevCjMwsQ/VwbhzB48Yk7K4gui+y1r L0ARBwYc0xJs30thDcNwUMG/A6d7n7LvrEcNsAHgY2KNnslqL2xKp62e2IfS1fPnuS4m 2TBTZUa1X/cESwve/i4Pz5pRN8ORSbL6lYCtS1JQE32I1mNevKN8b7h3FrJ/YtKGO31W u2gqNHoL96TLjdN4AGc8uoUFeL3lgBiDxgJHBTzc5O0TcktPEM+7JqagFdlBk+XxGeTf UHAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0zOzQgWpMWmpvIoBNzJk98uAgn+YFHziUXogXmtij38=; b=dxnHFq0xi19RIKikgpYc+u4qCgNRv7MkZM28MEPthz0aGYWbvn5waq/IOk6hRPop9c eh09cuMx3lPwruqR8LpzNyAC59p5P8ebjGWmElMbhwHgEdRbpS8F2+MfFGhXbjkUlOGj 5tgExL/XxYpd1tZ96oiHPi2Kf6kyarXSkMawSvoM+K1egn8jgDuNCSVW49FkewzbrN5b iYOa2Za9K0KyoW2JFzJtY42N+tMEKak9WIRda+q5bf69hKUmnIPQSkDSoB8FkCUyVLfR 6pH0ZVwwcOPkk/M/f4+bt5naeZbgF3BBldO7yB+IVnNcTKxzCzl1m/usYBcb3NnkkcXd AtSQ== X-Gm-Message-State: AOAM532Ja5mR6KObOmMWKAUBGuKkNzOnviXoKvULmKnl0jePLyNkNRJU WawvMhBJmcAOCa51j+qXM+hmFyeo7uJ/CkXld7rWzH88fds= X-Google-Smtp-Source: ABdhPJxsOnkbq3aTknQtUNUNsL+UHHP81HKeMJUQyD1fCvUyt5FKQEJn1RE8zHwAEQOtx6iVfS0zKjrhtal37qStRx8= X-Received: by 2002:a6b:b2d1:: with SMTP id b200mr5525344iof.137.1594743079995; Tue, 14 Jul 2020 09:11:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Aldrich Date: Tue, 14 Jul 2020 17:11:09 +0100 Message-ID: To: users Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Missing symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0' 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" I think this is fixed now. I am building with CMake and needed to declare the target libraries as PUBLIC not PRIVATE. On Tue, Jul 14, 2020 at 12:25 PM David Aldrich wrote: > Hi > I have built a single shared library consisting of my code and multiple > dpdk libraries, using dpdk-stable-18.11.8 on Centos 7 with the gcc > compiler. > > When I link the library to my main.cpp I get linker error: > > undefined reference to symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0' > > Now, I see: > > $ nm librte_eal.so | grep cpu_get_flag_enabled > 000000000002ec70 T rte_cpu_get_flag_enabled > > so 'rte_cpu_get_flag_enabled' is present but > symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0' is not present > in librte_eal.so. So that explains the linker error. > > What does the suffix '@@DPDK_2.0' indicate? > > How would I build a dpdk library with such symbols? > > Do I need librte_eal2.so? > > Best regards > David >