From owner-freebsd-hackers@freebsd.org Wed Dec 16 13:42:31 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5B32B4BD393; Wed, 16 Dec 2020 13:42:31 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CwxBt6ZFLz4vT7; Wed, 16 Dec 2020 13:42:30 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-oi1-x22b.google.com with SMTP id d203so6321322oia.0; Wed, 16 Dec 2020 05:42:30 -0800 (PST) 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=JKd/c1e9MQ+nWPR0mewY90955nZJz0S21qiaRcGcGZk=; b=ULWit7Kr3XqewYDA6J9KvdPXShV1quiSMj80aG9Ty5WUYopAsiSgnh2SF0PXfPSET9 VHho+0c6G4TmoyVaZ2NVYn0oIc8Om++Wu5TVS1Trzl3l1T7SkJWN2t8EZO5yVkyg2d/j fZfbonQsjS/2zSLwL/7OLr9sgBL2nRjsDzwLqQUfzz5DXFz+JDFBdfouUkbjJmgqtx6s 1LTDLoytBf2qy/DWfrkNop0vpOCiIGseLYImYVJbAlKxOmfsT38h9kc4uVxXuP1dyqV1 YnBTP7IFnl3sVgCOTlWOk41QL/RdWHA3hGF1BQaZCaKiYabS7T4IxGQqmiqEDwCwms/j 3jXA== 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=JKd/c1e9MQ+nWPR0mewY90955nZJz0S21qiaRcGcGZk=; b=LINCFb50MoJP032TzfLBsvRP8cC8EEXeT7Ln0D0m08n6eKptugDmtn+cyJEi+OtUFC iH0o3KPe21e7Qlc7li8j73Nk9bcz783sDZNEIo3jRC6qf37VRvHv9HPIlbTRVkJuZqZu Q53N9lsYGuRWZUzzTBg7cQVvR6+YH4XZg0Ed/zYuGNPZEMsKtm9k1JPFc73kY3r1R9zo eaMmyi7kHT/ksbtrD1LJNF+9yCc9JlRq7pYSI0MmpT7hgt8kPjVGvPDy7aSwymd5SDRt +CS96dTK471CUYnaIAgU05H21gb+xB2BWzVIPFUzu89UhM5FuutSVeJjdC7Xzj0LJcxd Pw5Q== X-Gm-Message-State: AOAM530YPd3JOYCQBVwXFHu4GUQnm/jPPRWe5fqJVhgfsEBI96U6e6M+ duChhxSSI7xY4iqwqu35nWBuNaPUOQhcI6Uw5BaNqS1K X-Google-Smtp-Source: ABdhPJwAzAaXby4GvtCgJfcEG9i4KSpdOQE9KURov83BCFVVvTNQ+XAPwu4U2WssJOW5RApx9zzg/jebj+VfEr9itMM= X-Received: by 2002:aca:4257:: with SMTP id p84mr1971644oia.68.1608126149508; Wed, 16 Dec 2020 05:42:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rajesh Kumar Date: Wed, 16 Dec 2020 19:12:13 +0530 Message-ID: Subject: Re: Netmap Library not getting installed on custom kernel installation To: freebsd-net@freebsd.org, FreeBSD Hackers X-Rspamd-Queue-Id: 4CwxBt6ZFLz4vT7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ULWit7Kr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rajfbsd@gmail.com designates 2607:f8b0:4864:20::22b as permitted sender) smtp.mailfrom=rajfbsd@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::22b:from]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(1.00)[0.995]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::22b:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::22b:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-net,freebsd-hackers]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2020 13:42:31 -0000 Hi, Got around this issue by manually copying necessary in /usr/obj Looks like libnetmap (src/lib/libnetmap) is not built and installed by default. Manually built them and copied the "libnetmap.h" and "libnetmap.so" (not just the header file) to appropriate directories in /usr/obj helps to get past the issue. But not sure why libnetmap is not built and installed though "device netmap" is set in the config file. Manually copying may not be the right approach. Can anyone suggest a cleaner way of getting things done? Thanks, Rajesh. On Wed, Dec 16, 2020 at 3:33 PM Rajesh Kumar wrote: > Hi, > > I am trying to compile the netmap tools(pkt-gen, bridge etc.,) and getting > the below error. > > > > > > */root//freebsd/tools/tools/netmap/pkt-gen.c:47:10: fatal error: > 'libnetmap.h' file not found#include ^~~~~~~~~~~~~1 > error generated.*** Error code 1* > > On debug, I don't see the libnetmap.h file getting installed in the > /usr/obj/ directory. Whereas, in another similar machine I have the file > in /usr/obj and compilation of netmap tools goes fine. For the test, I > just copied libnetmap.h from the source and it leads to linker error. So > seems the libnetmap library is not installed properly. > > I installed a custom kernel just disabling the debug options with the > FreeBSD-CURRENT branch. After rebooting to the custom kernel, I tried to > compile the netmap tools (with some changes) and ran into the above error. > > How to get the netmap tools compiled in this scenario? Am i missing > something? >