Hello,

ipaudit fails to build after update to recent snapshot on sparc64:

===>  Checking files for ipaudit-0.95p0
>> Fetch http://ipaudit.sourceforge.net//download/ipaudit-0.95.tgz
ipaudit-0.95.tgz 100% |*********************************| 52412
00:00    
>> (SHA256) ipaudit-0.95.tgz: OK
===>  Verifying specs:  c m pcap c m pcap
===>  found c.55.0 m.5.2 pcap.6.0
===>  Extracting for ipaudit-0.95p0
===>  Patching for ipaudit-0.95p0
===>  Configuring for ipaudit-0.95p0
===>  Building for ipaudit-0.95p0
cd src && make all
cc -O2 -pipe -c ipaudit.c -I/usr/include/pcap 
ipaudit.c: In function 'main':
ipaudit.c:451: error: 'DLT_OLD_PFLOG' undeclared (first use in this function)
ipaudit.c:451: error: (Each undeclared identifier is reported only once
ipaudit.c:451: error: for each function it appears in.)
ipaudit.c: In function 'get_packetoffset':
ipaudit.c:1308: error: 'DLT_OLD_PFLOG' undeclared (first use in this function)

DLT_OLD_PFLOG is now gone from /usr/include/net/bpf.h.

Could we just remove the DLT_OLD_PFLOG related parts from
patches/patch-src_ipaudit_c?

Attached is a diff with DLT_OLD_PFLOG related stuff removed.

Regards,
Markus

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/ipaudit/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile    27 Jan 2009 01:01:16 -0000      1.5
+++ Makefile    8 Jul 2010 14:04:48 -0000
@@ -3,7 +3,7 @@
 COMMENT=               IP traffic summarizer
 
 DISTNAME=              ipaudit-0.95
-PKGNAME=               ${DISTNAME}p0
+PKGNAME=               ${DISTNAME}p1
 CATEGORIES=            net sysutils
 
 HOMEPAGE=              http://ipaudit.sourceforge.net/
Index: patches/patch-src_ipaudit_c
===================================================================
RCS file: /cvs/ports/net/ipaudit/patches/patch-src_ipaudit_c,v
retrieving revision 1.1
diff -u -p -r1.1 patch-src_ipaudit_c
--- patches/patch-src_ipaudit_c 27 Jan 2009 01:01:16 -0000      1.1
+++ patches/patch-src_ipaudit_c 8 Jul 2010 14:04:48 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-src_ipaudit_c,v 1.1 2009/01/27 01:01:16 sthen Exp $
---- src/ipaudit.c.orig Thu Jan 25 21:04:00 2001
-+++ src/ipaudit.c      Tue Jan 27 00:36:02 2009
+--- src/ipaudit.c.orig Thu Jan 25 22:04:00 2001
++++ src/ipaudit.c      Thu Jul  8 15:58:01 2010
 @@ -40,6 +40,8 @@ Include Files
  #include <stdio.h>
  #include <stdlib.h>
@@ -24,7 +24,7 @@ $OpenBSD: patch-src_ipaudit_c,v 1.1 2009
  
  /*
  ------------------------------------------------------------------------
-@@ -434,6 +442,18 @@ if (debug_m) {
+@@ -434,6 +442,16 @@ if (debug_m) {
                                printf ("DataLinkType = %s\n", "DLT_RAW"); 
break;
                        case DLT_ATM_RFC1483: 
                                printf ("DataLinkType = %s\n", 
"DLT_ATM_RFC1483"); break;
@@ -34,8 +34,6 @@ $OpenBSD: patch-src_ipaudit_c,v 1.1 2009
 +                              printf ("DataLinkType = %s\n", "DLT_ENC"); 
break;
 +                      case DLT_PPP_ETHER: 
 +                              printf ("DataLinkType = %s\n", 
"DLT_PPP_ETHER"); break;
-+                      case DLT_OLD_PFLOG: 
-+                              printf ("DataLinkType = %s\n", 
"DLT_OLD_PFLOG"); break;
 +                      case DLT_PFLOG: 
 +                              printf ("DataLinkType = %s\n", "DLT_PFLOG"); 
break;
 +                      case DLT_PFSYNC: 
@@ -43,7 +41,7 @@ $OpenBSD: patch-src_ipaudit_c,v 1.1 2009
                        default:
                                printf ("DataLinkType = %d\n", DataLinkType);
                }
-@@ -1278,6 +1298,22 @@ int get_packetoffset (int DataLinkType) {
+@@ -1278,6 +1296,19 @@ int get_packetoffset (int DataLinkType) {
                case DLT_NULL:
                        PacketOffset = POFF_NULL;
                        break;
@@ -53,9 +51,6 @@ $OpenBSD: patch-src_ipaudit_c,v 1.1 2009
 +                      break;
 +              case DLT_PPP_ETHER:
 +                      PacketOffset = 8;
-+                      break;
-+              case DLT_OLD_PFLOG:
-+                      PacketOffset = 28;
 +                      break;
 +              case DLT_ENC:
 +                      PacketOffset = ENC_HDRLEN;

Reply via email to