On Mon, Oct 13, 2014 at 10:51 PM, Roman Shevchenko via freebsd-net < freebsd-net@freebsd.org> wrote:
> I have a trouble while compile netmap-ipfw. > make NETMAP_INC=./sys > Building userspace ... > gmake[1]: Entering directory `/root/netmap-ipfw/ipfw' > (cd ../objs; gmake -f ../Makefile.kipfw include_e) > gmake[2]: Entering directory `/root/netmap-ipfw/objs' > Building /root/netmap-ipfw/objs/../objs/include_e ... > gmake[2]: Leaving directory `/root/netmap-ipfw/objs' > CC ipfw2.c > CC dummynet.c > CC main.c > CC ipv6.c > CC altq.c > CC ../extra/glue.c > LD ipfw > gmake[1]: Leaving directory `/root/netmap-ipfw/ipfw' > Building datapath ... > gmake[1]: Entering directory `/root/netmap-ipfw/objs' > CC ../sys/netpfil/ipfw/ip_fw2.c > CC ../sys/netpfil/ipfw/ip_fw_pfil.c > CC ../sys/netpfil/ipfw/ip_fw_sockopt.c > CC ../sys/netpfil/ipfw/ip_fw_dynamic.c > CC ../sys/netpfil/ipfw/ip_fw_table.c > CC ../sys/netpfil/ipfw/ip_fw_log.c > CC ../sys/netpfil/ipfw/ip_dummynet.c > CC ../sys/netpfil/ipfw/ip_dn_io.c > CC ../sys/netpfil/ipfw/ip_dn_glue.c > CC ../sys/netpfil/ipfw/dn_heap.c > CC ../sys/netpfil/ipfw/dn_sched_fifo.c > CC ../sys/netpfil/ipfw/dn_sched_wf2q.c > CC ../sys/netpfil/ipfw/dn_sched_rr.c > CC ../sys/netpfil/ipfw/dn_sched_qfq.c > CC ../sys/netpfil/ipfw/dn_sched_prio.c > CC ../sys/net/radix.c > CC ../sys/netinet/in_cksum.c > CC ../extra/ipfw2_mod.c > CC ../extra/missing.c > CC ../extra/session.c > CC ../extra/netmap_io.c > ../extra/netmap_io.c: In function 'netmap_fwd': > ../extra/netmap_io.c:93: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:93: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:94: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:94: error: dereferencing pointer to incomplete type > cc1: warnings being treated as errors > ../extra/netmap_io.c:97: warning: implicit declaration of function > 'nm_ring_empty' > ../extra/netmap_io.c:118: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:118: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:122: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:123: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:123: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:127: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:128: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:128: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:128: error: 'NS_BUF_CHANGED' undeclared (first use in > this function) > ../extra/netmap_io.c:128: error: (Each undeclared identifier is reported > only once > ../extra/netmap_io.c:128: error: for each function it appears in.) > ../extra/netmap_io.c:129: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:129: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:130: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:132: warning: implicit declaration of function > 'nm_pkt_copy' > ../extra/netmap_io.c:132: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:132: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:132: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:133: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:133: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:133: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:134: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:136: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:136: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:136: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:136: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:137: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:137: error: 'NS_INDIRECT' undeclared (first use in > this function) > ../extra/netmap_io.c:143: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:145: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:145: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:145: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:146: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:152: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:152: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:152: warning: implicit declaration of function > 'nm_ring_next' > ../extra/netmap_io.c:152: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:157: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:157: error: 'NIOCTXSYNC' undeclared (first use in > this function) > ../extra/netmap_io.c: In function 'netmap_read': > ../extra/netmap_io.c:221: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:221: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:222: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:222: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:222: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:227: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:227: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:238: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:239: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:240: error: invalid use of undefined type 'struct > netmap_slot' > ../extra/netmap_io.c:241: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:242: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:242: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:244: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:249: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:249: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:254: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c: In function 'netmap_add_port': > ../extra/netmap_io.c:317: warning: implicit declaration of function > 'calloc' > ../extra/netmap_io.c:317: warning: incompatible implicit declaration of > built-in function 'calloc' > ../extra/netmap_io.c:318: warning: implicit declaration of function > 'nm_open' > ../extra/netmap_io.c:318: warning: assignment makes pointer from integer > without a cast > ../extra/netmap_io.c:325: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:327: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:339: error: dereferencing pointer to incomplete type > ../extra/netmap_io.c:339: error: dereferencing pointer to incomplete type > gmake[1]: *** [netmap_io.o] Error 1 > gmake[1]: Leaving directory `/root/netmap-ipfw/objs' > gmake: *** [kipfw] Error 2 > > My system is FreeBSD 9.2 > Does it have any solution? > yes, you need to backport the netmap code from HEAD or stable/10, and then point NETMAP_INC to /usr/src/sys/ (netmap applications would still compile provided you have the right headers, but then they would fail at runtime if you don't have a matching kernel version) cheers luigi > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org" > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, ri...@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+------------------------------- _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"