Subject: pkg/37500: net/tcpdump cannot be compiled on Solaris
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <naoto@morishima.net>
List: pkgsrc-bugs
Date: 12/08/2007 12:10:00
>Number: 37500
>Category: pkg
>Synopsis: net/tcpdump cannot be compiled on Solaris
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Dec 08 12:10:00 +0000 2007
>Originator: Naoto Morishima
>Release:
>Organization:
>Environment:
SunOS XXXX 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V210
>Description:
net/tcpdump cannot be compiled on Solaris 10, at least with sunpro cc.
>How-To-Repeat:
Try to compile it on Solaris with sunpro cc.
>Fix:
Following patches will fix this problem.
--- print-icmp.c.orig Sat Dec 8 12:37:16 2007
+++ print-icmp.c Sat Dec 8 12:37:29 2007
@@ -300,9 +300,6 @@
u_int8_t icmp_ext_data[1];
};
-struct icmp_mpls_ext_common_header_t {
-};
-
struct icmp_mpls_ext_object_header_t {
u_int8_t length[2];
u_int8_t class_num;
--- addrtoname.c.orig Wed Sep 20 04:07:55 2006
+++ addrtoname.c Sat Dec 8 12:46:08 2007
@@ -68,7 +68,7 @@
#include "extract.h"
#include "oui.h"
-#ifndef ETHER_ADDR_LEN
+#ifndef ETHERMTU
#include "ether.h"
#endif