From owner-freebsd-hackers@freebsd.org Wed Dec 16 14:34:48 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 C6A304BE1C4; Wed, 16 Dec 2020 14:34:48 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (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 4CwyMC5dxPz3F5s; Wed, 16 Dec 2020 14:34:47 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x335.google.com with SMTP id y23so2659946wmi.1; Wed, 16 Dec 2020 06:34:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=a6NwnUJgbH0vSUkBPRucxiUCTxUHotf1DA2yp2WiaVE=; b=EJ8iJZwJmPgeVyyaqFSUESVzhMXWZdsn7+Ez34J1cAmyBat3oBNvjIE7Hzhwkt5pIs GP9Mdysi2eRAJ+tu3GIf7igj/4Dlor4RnwLeNfiFeWd/cmMxgCGM8a9w9ZsvSt7t+8GB nAu3bFoewZyWJNWNFZUDCDCd2tFGM9NF1/n1/3b+p508Y7EF3HqA+g5LBrbhCWJD9kY2 qUinOen0UkzSR4smVRFl68gaIS0z5lbIYqDjd9bL/GF17YIntC5kGPq4C6vhgkpQvwL7 qrYb8s+0aOR8gqNYxDTVzeiuiBYVcIRfE8Y8ZTFO/malu99T2E+p3l/57Yc+tQWVD0/r vbNg== 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:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=a6NwnUJgbH0vSUkBPRucxiUCTxUHotf1DA2yp2WiaVE=; b=j81VD/c2X916e1M8lUgxoq3sa4gcwIDkdv5yFUjpodVektuxeCn31z+1ylMhPlIhJR J+sZZDBdy8GNtAxfOVitZxWYKgXI5ltRlvpC7qxtQAzpmVyN1V4r8rlhEG6xKuNioei+ lSX8qcFSM963OwvC+GIHjpN/yDPpPhQuDmFZVvlfSXpcE21SCpgxclAeLiiTHlfgNYHl xgwPaXfg+X+NaVm+PTq5udQDqRkZkOXfRBH4uWB33VWt2I5+VQ0NdwhVZJX2LJ+oEuce F8QWfj4sslN/ZhGHfSYj5mYGhLWW3me0P0+i8/FiKGoHbKHP0f5i+IpneLcnbhRgDXBz aB8g== X-Gm-Message-State: AOAM532dAVOYtYrjtf+phf8o1NnZH5Hkp0blJ8sh+8XS9KrSgfpxpHrJ McHfBlq5nqQEcl20WetEVM0= X-Google-Smtp-Source: ABdhPJxSFAYzc9Rj+mFzQMAdR47MuOagt5CZBPuEMo35K4sguKi8j9IwL8u82auvFKyxcwr7BqfSXw== X-Received: by 2002:a1c:4c11:: with SMTP id z17mr3525154wmf.13.1608129285513; Wed, 16 Dec 2020 06:34:45 -0800 (PST) Received: from ernst.home (p5b02350e.dip0.t-ipconnect.de. [91.2.53.14]) by smtp.gmail.com with ESMTPSA id m81sm3220391wmf.29.2020.12.16.06.34.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Dec 2020 06:34:44 -0800 (PST) Date: Wed, 16 Dec 2020 15:34:43 +0100 From: Gary Jennejohn To: Rajesh Kumar Cc: freebsd-net@freebsd.org, FreeBSD Hackers Subject: Re: Netmap Library not getting installed on custom kernel installation Message-ID: <20201216143443.124709e8@ernst.home> In-Reply-To: References: Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CwyMC5dxPz3F5s X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=EJ8iJZwJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::335 as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-2.03 / 15.00]; HAS_REPLYTO(0.00)[gljennjohn@gmail.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::335:from]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[91.2.53.14:received]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.97)[0.971]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[gmail.com]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::335:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::335:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-net,freebsd-hackers] 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 14:34:48 -0000 On Wed, 16 Dec 2020 19:12:13 +0530 Rajesh Kumar wrote: > 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? > libnetmap is built with buildworld, not buildkernel. It's a user-land library and has nothing to do with "device netmap" being set in the kernel configuration file. I did buildworld and installworld on Sunday (Dec 13th) and libnetmap was newly built and newly installed, as expected. > 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? > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- Gary Jennejohn