Date: Mon, 13 Oct 2014 13:51:47 -0700 From: Roman Shevchenko <l1ght13aby@yahoo.com> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: netmap-ipfw Message-ID: <1413233507.12196.YahooMailNeo@web121806.mail.ne1.yahoo.com>
next in thread | raw e-mail | index | archive | help
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? From owner-freebsd-net@FreeBSD.ORG Mon Oct 13 21:04:56 2014 Return-Path: <owner-freebsd-net@FreeBSD.ORG> Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 877E0B7A for <freebsd-net@freebsd.org>; Mon, 13 Oct 2014 21:04:56 +0000 (UTC) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0BFC5EE0 for <freebsd-net@freebsd.org>; Mon, 13 Oct 2014 21:04:55 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id h11so4919246wiw.7 for <freebsd-net@freebsd.org>; Mon, 13 Oct 2014 14:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=l95XKO9PkRgBqrTtdazZ1pUcAibNO4wkJnxuEKg/0hU=; b=sLOC0giRO8YJsuEa2vk5xWdfNyfU/qrsdh7s21yP0mk1TGJM4/ZDFp6d3FnjeGw54B 1wmkw9U4Uv3sgbHtAFV1GvfTHIchWTKGlkjK94kP2BD41CgJb82af/r5c/UeL4UJcU41 JCBKRdQ6UCM5V7QsnI5/ciCWhB9yyryZIjo9sfsoKSraOL4MhDSMQgjalXIRrMcdVQHY uut7FOpSrtDG8OdleaWZ3ZMRNU3hbsVfe8YFiMeqO9jk073xPvh5zw2querJ7yuC6aXI b41ZgIhwtxT+VW4DCJfy5rqlrRPBr2qN3vrucwWZiDzSwqBRkzJJMxvEwolYI6lYZytB b0rg== MIME-Version: 1.0 X-Received: by 10.180.38.34 with SMTP id d2mr1297906wik.55.1413234294245; Mon, 13 Oct 2014 14:04:54 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.194.19.9 with HTTP; Mon, 13 Oct 2014 14:04:54 -0700 (PDT) In-Reply-To: <1413233507.12196.YahooMailNeo@web121806.mail.ne1.yahoo.com> References: <1413233507.12196.YahooMailNeo@web121806.mail.ne1.yahoo.com> Date: Mon, 13 Oct 2014 23:04:54 +0200 X-Google-Sender-Auth: vkKzHBkr7WKYwtC49i3DOgaC-Og Message-ID: <CA+hQ2+gEovZ_JAQRikwpCEULo=xr9NhuHpXSL__FOmbrxsh=Aw@mail.gmail.com> Subject: Re: netmap-ipfw From: Luigi Rizzo <rizzo@iet.unipi.it> To: Roman Shevchenko <l1ght13aby@yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-net>, <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net/> List-Post: <mailto:freebsd-net@freebsd.org> List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>, <mailto:freebsd-net-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 13 Oct 2014 21:04:56 -0000 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=3D./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 i= n > 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? > =E2=80=8Byes, 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 =E2=80=8B > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > --=20 -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@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) -----------------------------------------+-------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1413233507.12196.YahooMailNeo>