Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2014 17:01:35 +0100
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        "C. L. Martinez" <carlopmart@gmail.com>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: netmap-libpcap doesn't installs under FreeBSD10
Message-ID:  <CA%2BhQ2%2Bj=ZaeoAgZcdzC0fDiUuRa4=5WkyP4CRdURerwKK7yNTQ@mail.gmail.com>
In-Reply-To: <CAEjQA5J1e5YeXjiOezXwOGZQueputwXsj2Pu3ZcqHxen-Q4-xA@mail.gmail.com>
References:  <CAEjQA5%2BAcMAApi7_RMw6frjxsyfudanRnfp=iLahg3faOgzhYw@mail.gmail.com> <CA%2BhQ2%2Bi%2BOG5Adn2bQ1LNpfrLhphAXtO9XmmYfR2GP2rXJpA5hQ@mail.gmail.com> <CAEjQA5J1e5YeXjiOezXwOGZQueputwXsj2Pu3ZcqHxen-Q4-xA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 4, 2014 at 1:00 PM, C. L. Martinez <carlopmart@gmail.com> wrote:

> On Tue, Mar 4, 2014 at 11:45 AM, Luigi Rizzo <rizzo@iet.unipi.it> wrote:
> >
> >
> >
> > On Tue, Mar 4, 2014 at 11:27 AM, C. L. Martinez <carlopmart@gmail.com>
> > wrote:
> >>
> >> Hi all,
> >>
> >>  When I try to compile netmap-libpcap, these errors appears:
> >>
> >> root@plzfsiem01:/tmp/j/netmap-libpcap # make
> >> cc -fpic -I. -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -g -O2
> >> -c ./pcap-bpf.c
> >> cc -fpic -I. -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -g -O2
> >> -c ./pcap-netmap.c
> >> ./pcap-netmap.c:117:9: warning: implicit declaration of function
> >> 'nm_dispatch' is invalid in C99 [-Wimplicit-function-declaration]
> >>                 ret = nm_dispatch((void *)d, cnt, (void
> >> *)pcap_netmap_filter, (void *)p);
> >
> >
> > almost surely you have an old version of netmap.h and netmap_user.h
> > in /usr/include/net
> >
> > You should update to the version in stable/10 (at the very least
> > manually copy these two headers)
> >
> > cheers
> > luigi
>
> Thanks Luigi. Only netmap.h and netmap_user.h?? Can I use default
> files provided by FreeBSD 10-RELEASE under sys/dev/netmap or do I need
> to update them??
>

as i said, you need to update the files.
you will also need the updated netmap kernel module so in the end
it might be worthwhile upgrading to stable/10

cheers
luigi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2Bj=ZaeoAgZcdzC0fDiUuRa4=5WkyP4CRdURerwKK7yNTQ>