Date: Wed, 16 Dec 2020 21:53:21 +0100 From: Vincenzo Maffione <vmaffione@freebsd.org> To: Rajesh Kumar <rajfbsd@gmail.com> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: Netmap Library not getting installed on custom kernel installation Message-ID: <CA%2B_eA9j9PjpHMbCxGZq10U%2BJupyjS-QTukiXW9SHtxjDLgFttA@mail.gmail.com> In-Reply-To: <CAAO%2BANPPxB8CZnCyVST6vhNXu5g=zWbddh6rr8x0znn9YoS1_Q@mail.gmail.com> References: <CAAO%2BANM8FUXPzXcTUjknnvnr4OYSn%2BVWsYDs7KpBT6SgwT2BVQ@mail.gmail.com> <CAAO%2BANPPxB8CZnCyVST6vhNXu5g=zWbddh6rr8x0znn9YoS1_Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Rajesh, The libnetmap library is part of the userland utilities, whereas netmap itself is a kernel subsystem. This means that when you enable "device netmap", and you run "make buildkernel", you get a kernel with netmap included. Also the low level kernel headers are installed (e.g. /usr/include/net/netmap.h). On the other hand, libnetmap gets installed (libnetmap.h + libnetmap.so + libnetmap.a + ...) when you run "make buildworld" and "make installworld", because that's a userland component. On a side note, the netmap tools (pkt-gen, bridge, lb, etc.) should really be a port. Another TODO item. Regards, Vincenzo Il giorno mer 16 dic 2020 alle ore 14:42 Rajesh Kumar <rajfbsd@gmail.com> ha scritto: > 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 <rajfbsd@gmail.com> 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 <libnetmap.h> ^~~~~~~~~~~~~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-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B_eA9j9PjpHMbCxGZq10U%2BJupyjS-QTukiXW9SHtxjDLgFttA>