Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Oct 2007 15:07:17 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-current@freebsd.org
Cc:        Dmitry Morozovsky <marck@rinet.ru>, current@freebsd.org
Subject:   Re: libpcap build error @ RELENG_7
Message-ID:  <200710211507.22900.max@love2party.net>
In-Reply-To: <20071021143236.F43563@woozle.rinet.ru>
References:  <20071021143236.F43563@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1984007.xykUQem7Rt
Content-Type: multipart/mixed;
  boundary="Boundary-01=_K80GH7ECojCrb5l"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_K80GH7ECojCrb5l
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sunday 21 October 2007, Dmitry Morozovsky wrote:
> Hi there colleagues,
>
> during buildworld (erased /usr/obj, etc)
>
> =3D=3D=3D> lib/libpcap (all)
> cc -O2 -fno-strict-aliasing -pipe -march=3Dprescott -DHAVE_CONFIG_H
> -Dyylval=3Dpcapyylval -I/usr/src/lib/libpcap -I.
> -D_U_=3D"__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF
> -DHAVE_NET_PFVAR_H
> -I/usr/src/lib/libpcap/../../contrib/libpcap  -c grammar.c
> cc -O2 -fno-strict-aliasing -pipe -march=3Dprescott -DHAVE_CONFIG_H
> -Dyylval=3Dpcapyylval -I/usr/src/lib/libpcap -I.
> -D_U_=3D"__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF
> -DHAVE_NET_PFVAR_H
> -I/usr/src/lib/libpcap/../../contrib/libpcap  -c
> /usr/src/lib/libpcap/../../contrib/libpcap/pcap.c
> /usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:382: error: 'DLT_MFR'
> undeclared here (not in a function)
> /usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:383: error:
> 'DLT_JUNIPER_VP' undeclared here (not in a function)
> /usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:385: error:
> 'DLT_A429' undeclared here (not in a function)
> /usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:386: error:
> 'DLT_A653_ICM' undeclared here (not in a function)
> /usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:387: error: 'DLT_USB'
> undeclared here (not in a function)
> /usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:388: error:
> 'DLT_BLUETOOTH_HCI_H4' undeclared here (not in a function)
> /usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:389: error:
> 'DLT_CAN20B' undeclared here (not in a function)
> *** Error code 1
>
> Stop in /usr/src/lib/libpcap.
> *** Error code 1

I fat-fingered that one.  Fix attached, but I'll do a buildworld this time=
=20
to make sure.  Sorry!

Hand me that pointy-hat, please? :-\

>
> marck@mck-s420:/usr/src> cvs -R stat contrib/libpcap/pcap.h
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> File: pcap.h            Status: Up-to-date
>
>    Working revision:    1.12.2.2        Sun Oct 21 08:42:21 2007
>    Repository revision: 1.12.2.2      =20
> /home/ncvs/src/contrib/libpcap/pcap.h,v Sticky Tag:          RELENG_7
> (branch: 1.12.2)
>    Sticky Date:         (none)
>    Sticky Options:      (none)
>
> Any hints?
>
> Sincerely,
> D.Marck                                     [DM5020, MCK-RIPE,
> DM3-RIPN] [ FreeBSD committer:				     marck@FreeBSD.org ]
> -----------------------------------------------------------------------
>- *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru
> ***
> -----------------------------------------------------------------------
>- _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to
> "freebsd-current-unsubscribe@freebsd.org"



=2D-=20
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

--Boundary-01=_K80GH7ECojCrb5l
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="bpf_DLT.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="bpf_DLT.diff"

Index: sys/net/bpf.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/sys/net/bpf.h,v
retrieving revision 1.47
diff -u -r1.47 bpf.h
=2D-- sys/net/bpf.h	26 Feb 2007 22:24:14 -0000	1.47
+++ sys/net/bpf.h	21 Oct 2007 12:49:29 -0000
@@ -547,6 +547,140 @@
 #define DLT_JUNIPER_CHDLC       181
=20
 /*
+ * Multi Link Frame Relay (FRF.16)
+ */
+#define DLT_MFR                 182
+
+/*
+ * Juniper-private data link type, as per request from
+ * Hannes Gredler <hannes@juniper.net>.=20
+ * The DLT_ is used for internal communication with a
+ * voice Adapter Card (PIC)
+ */
+#define DLT_JUNIPER_VP          183
+
+/*
+ * Arinc 429 frames.
+ * DLT_ requested by Gianluca Varenni <gianluca.varenni@cacetech.com>.
+ * Every frame contains a 32bit A429 label.
+ * More documentation on Arinc 429 can be found at
+ * http://www.condoreng.com/support/downloads/tutorials/ARINCTutorial.pdf
+ */
+#define DLT_A429                184
+
+/*
+ * Arinc 653 Interpartition Communication messages.
+ * DLT_ requested by Gianluca Varenni <gianluca.varenni@cacetech.com>.
+ * Please refer to the A653-1 standard for more information.
+ */
+#define DLT_A653_ICM            185
+
+/*
+ * USB packets, beginning with a USB setup header; requested by
+ * Paolo Abeni <paolo.abeni@email.it>.
+ */
+#define DLT_USB			186
+
+/*
+ * Bluetooth HCI UART transport layer (part H:4); requested by
+ * Paolo Abeni.
+ */
+#define DLT_BLUETOOTH_HCI_H4	187
+
+/*
+ * IEEE 802.16 MAC Common Part Sublayer; requested by Maria Cruz
+ * <cruz_petagay@bah.com>.
+ */
+#define DLT_IEEE802_16_MAC_CPS	188
+
+/*
+ * USB packets, beginning with a Linux USB header; requested by
+ * Paolo Abeni <paolo.abeni@email.it>.
+ */
+#define DLT_USB_LINUX		189
+
+/*
+ * Controller Area Network (CAN) v. 2.0B packets.
+ * DLT_ requested by Gianluca Varenni <gianluca.varenni@cacetech.com>.
+ * Used to dump CAN packets coming from a CAN Vector board.
+ * More documentation on the CAN v2.0B frames can be found at
+ * http://www.can-cia.org/downloads/?269
+ */
+#define DLT_CAN20B              190
+
+/*
+ * IEEE 802.15.4, with address fields padded, as is done by Linux
+ * drivers; requested by Juergen Schimmer.
+ */
+#define DLT_IEEE802_15_4_LINUX	191
+
+/*
+ * Per Packet Information encapsulated packets.
+ * DLT_ requested by Gianluca Varenni <gianluca.varenni@cacetech.com>.
+ */
+#define DLT_PPI			192
+
+/*
+ * Header for 802.16 MAC Common Part Sublayer plus a radiotap radio header;
+ * requested by Charles Clancy.
+ */
+#define DLT_IEEE802_16_MAC_CPS_RADIO	193
+
+/*
+ * Juniper-private data link type, as per request from
+ * Hannes Gredler <hannes@juniper.net>.=20
+ * The DLT_ is used for internal communication with a
+ * integrated service module (ISM).
+ */
+#define DLT_JUNIPER_ISM         194
+
+/*
+ * IEEE 802.15.4, exactly as it appears in the spec (no padding, no
+ * nothing); requested by Mikko Saarnivala <mikko.saarnivala@sensinode.com=
>.
+ */
+#define DLT_IEEE802_15_4	195
+
+/*
+ * Various link-layer types, with a pseudo-header, for SITA
+ * (http://www.sita.aero/); requested by Fulko Hew (fulko.hew@gmail.com).
+ */
+#define DLT_SITA		196
+
+/*
+ * Various link-layer types, with a pseudo-header, for Endace DAG cards;
+ * encapsulates Endace ERF records.  Requested by Stephen Donnelly
+ * <stephen@endace.com>.
+ */
+#define DLT_ERF			197
+
+/*
+ * Special header prepended to Ethernet packets when capturing from a
+ * u10 Networks board.  Requested by Phil Mulholland
+ * <phil@u10networks.com>.
+ */
+#define DLT_RAIF1		198
+
+/*
+ * IPMB packet for IPMI, beginning with the I2C slave address, followed
+ * by the netFn and LUN, etc..  Requested by Chanthy Toeung
+ * <chanthy.toeung@ca.kontron.com>.
+ */
+#define DLT_IPMB		199
+
+/*
+ * Juniper-private data link type, as per request from
+ * Hannes Gredler <hannes@juniper.net>.=20
+ * The DLT_ is used for capturing data on a secure tunnel interface.
+ */
+#define DLT_JUNIPER_ST          200
+
+/*
+ * Bluetooth HCI UART transport layer (part H:4), with pseudo-header
+ * that includes direction information; requested by Paolo Abeni.
+ */
+#define DLT_BLUETOOTH_HCI_H4_WITH_PHDR	201
+
+/*
  * The instruction encodings.
  */
 /* instruction classes */

--Boundary-01=_K80GH7ECojCrb5l--

--nextPart1984007.xykUQem7Rt
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQBHG08KXyyEoT62BG0RAgxZAJ9vl30HKPr7CEjkBrN9glVU7s0wwACeNtod
4e7VEdxxD6LTHXlxJz8bVUQ=
=fGbI
-----END PGP SIGNATURE-----

--nextPart1984007.xykUQem7Rt--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710211507.22900.max>