Netmap Library not getting installed on custom kernel installation
gljennjohn at gmail.com
Wed Dec 16 14:34:48 UTC 2020
On Wed, 16 Dec 2020 19:12:13 +0530
Rajesh Kumar <rajfbsd at gmail.com> wrote:
> 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.
> On Wed, Dec 16, 2020 at 3:33 PM Rajesh Kumar <rajfbsd at 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-hackers at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-hackers