From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6378C388F7 for ; Thu, 29 Oct 2020 02:07:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 482FF20719 for ; Thu, 29 Oct 2020 02:07:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="SSw7r1zH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733240AbgJ2CHk (ORCPT ); Wed, 28 Oct 2020 22:07:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:28883 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727271AbgJ2CGz (ORCPT ); Wed, 28 Oct 2020 22:06:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603937214; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WiKrctRMP15lV20zK+4gtceZ71rNHyxvbqtsGTAZ6gU=; b=SSw7r1zHdlCTavCfgiAJiMhldECjvicNr9gEK6o09ndmDOv02Atuzp1AItSRggzZR7q24a YkM2OzfiT+DJRsDh3y5QOADFPPpnTmZ36zPgP5h16EFZPxBTisqajfo8/llLbOX98R13YM ngJesVHuyW45LrcVhnD9I222WdajGPU= Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-505-1oYhl0nFOnyilPwM6s5VWg-1; Wed, 28 Oct 2020 22:06:52 -0400 X-MC-Unique: 1oYhl0nFOnyilPwM6s5VWg-1 Received: by mail-pf1-f200.google.com with SMTP id a27so929992pfl.17 for ; Wed, 28 Oct 2020 19:06:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WiKrctRMP15lV20zK+4gtceZ71rNHyxvbqtsGTAZ6gU=; b=PUudYLQtlC+ZsfMBYidreCrQzCtPOrNajanhb06WSGDKXPCdfeu/HkG7iVXpTTgFmb UNglbAa0ojnCHT+wytTfWOrqi2Vj8b6oBTSadMqn81JsuI8hiKOg5dxRPURPQa5Sh5K8 kn7jigtrFpbu+mb5h19OpgwrAUgEJ21+HD85AnTneBYRC4habi+33AW8vBX7mL/eIEoK fl68/LBF3bUS2+Z+aBjyFJY0NfyWMoNyE6UWfsdG1OBa2BCYQXjBNXbChm7meG3bfYUc 3jDan6Y0obXZ+LHZoSEpGXkmKDHztOMV2d9Oh0yOz04enn5pzoJkD1+vIkWHlTTQJmXz xVQA== X-Gm-Message-State: AOAM532u/HunBDWmrZwdbfm1sdMw7gebzxrEWzKpmA+AKINwbxxQXSTi ZFIzJafci1eg+uwcYXRedfyM9RI4qbDqJmxV9n3dplBxWR2T7dTrFgSzh1hGYjjjzCTnnNzPvAN SEgrtPG9n0xwL38Q= X-Received: by 2002:a17:90a:d516:: with SMTP id t22mr1263710pju.118.1603937211118; Wed, 28 Oct 2020 19:06:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyMRb2uQE7ATVHZNR6LzlXGvxdkLkaB3eSdORGRWQ2lWVIA+j+MoIlCdPWs7FZrZGb6PJqag== X-Received: by 2002:a17:90a:d516:: with SMTP id t22mr1263683pju.118.1603937210851; Wed, 28 Oct 2020 19:06:50 -0700 (PDT) Received: from dhcp-12-153.nay.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id ne17sm679818pjb.44.2020.10.28.19.06.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 19:06:49 -0700 (PDT) Date: Thu, 29 Oct 2020 10:06:37 +0800 From: Hangbin Liu To: David Ahern Cc: Stephen Hemminger , Daniel Borkmann , Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , David Miller , Jesper Dangaard Brouer , netdev@vger.kernel.org, bpf@vger.kernel.org, Jiri Benc , Andrii Nakryiko , Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= Subject: Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support Message-ID: <20201029020637.GM2408@dhcp-12-153.nay.redhat.com> References: <20201023033855.3894509-1-haliu@redhat.com> <20201028132529.3763875-1-haliu@redhat.com> <7babcccb-2b31-f9bf-16ea-6312e449b928@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7babcccb-2b31-f9bf-16ea-6312e449b928@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Oct 28, 2020 at 05:02:34PM -0600, David Ahern wrote: > fails to compile on Ubuntu 20.10: > > root@u2010-sfo3:~/iproute2.git# ./configure > TC schedulers > ATM yes > IPT using xtables > IPSET yes > > iptables modules directory: /usr/lib/x86_64-linux-gnu/xtables > libc has setns: yes > SELinux support: yes > libbpf support: yes > ELF support: yes > libmnl support: yes > Berkeley DB: no > need for strlcpy: yes > libcap support: yes > > root@u2010-sfo3:~/iproute2.git# make clean > > root@u2010-sfo3:~/iproute2.git# make -j 4 > ... > /usr/bin/ld: ../lib/libutil.a(bpf_libbpf.o): in function `load_bpf_object': > bpf_libbpf.c:(.text+0x3cb): undefined reference to > `bpf_program__section_name' > /usr/bin/ld: bpf_libbpf.c:(.text+0x438): undefined reference to > `bpf_program__section_name' > /usr/bin/ld: bpf_libbpf.c:(.text+0x716): undefined reference to > `bpf_program__section_name' > collect2: error: ld returned 1 exit status > make[1]: *** [Makefile:27: ip] Error 1 > make[1]: *** Waiting for unfinished jobs.... > make: *** [Makefile:64: all] Error 2 You need to update libbpf to latest version. But this also remind me that I need to add bpf_program__section_name() to configure checking. I will see if I missed other functions' checking. Thanks Hangbin