NetBSD Problem Report #35786
From kre@munnari.OZ.AU Thu Feb 22 15:34:43 2007
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id B711563B879
for <gnats-bugs@gnats.NetBSD.org>; Thu, 22 Feb 2007 15:34:43 +0000 (UTC)
Message-Id: <200702221534.l1MFYXkD015739@jade.coe.psu.ac.th>
Date: Thu, 22 Feb 2007 22:34:33 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@NetBSD.org
Subject: net/arping compilation errors (NetBSD 3.0)
X-Send-Pr-Version: 3.95
>Number: 35786
>Category: pkg
>Synopsis: net/arping compilation errors (NetBSD 3.0
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: rillig
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 22 15:35:00 +0000 2007
>Closed-Date: Thu Feb 22 17:16:54 +0000 2007
>Last-Modified: Fri Feb 23 14:20:01 +0000 2007
>Originator: Robert Elz
>Release: NetBSD 3.99.15 (pkgsrc current within past 8 hours)
>Organization:
Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 3.99.15 NetBSD 3.99.15 (GENERIC-1.696-20060125) #8: Wed Jan 25 04:59:39 ICT 2006 kre@jade.coe.psu.ac.th:/usr/obj/current/kernels/JADE_ASUS i386
Architecture: i386
Machine: i386
>Description:
Since the recent upgrade, arping no longer compiles
(on NetBSD 3.0 anyway, using pkg_comp and libkver to get
a fairly pure NetBSD 3.0 release environment)
>How-To-Repeat:
attempt to compile net/arping
Expect to see ...
===> Building for arping-2.05nb1
Will now try to compile arping 2.x. If you have Libnet 1.0.x
(as opposed to 1.1.x) then this will fail and you should try
compiling arping 1.x.
Note that arping 1.x has been tested *A LOT* more than
arping 2.x, so if you have problems (especially compilation
problems), then try arping 1.x with libnet 1.0.x. Also, mail
me about it. thomas@habets.pp.se
For information on how to compile arping 1.x, type
'make arping1'
sleep 3
cc -g -o arping arping-2/arping.c -lnet -lpcap
arping-2/arping.c:48:20: libnet.h: No such file or directory
which is the most likely real problem. That's
followed by lots of errors (hardly unexpected)
arping-2/arping.c:94: error: parse error before '*' token
arping-2/arping.c:94: warning: data definition has no type or storage class
arping-2/arping.c: In function `do_libnet_init':
arping-2/arping.c:124: error: `LIBNET_ERRBUF_SIZE' undeclared (first use in this
function)
arping-2/arping.c:124: error: (Each undeclared identifier is reported only once
arping-2/arping.c:124: error: for each function it appears in.)
arping-2/arping.c:138: error: `LIBNET_LINK' undeclared (first use in this functi
on)
arping-2/arping.c:140: warning: assignment makes pointer from integer without a
cast
arping-2/arping.c: In function `pingmac_send':
arping-2/arping.c:394: error: syntax error before "icmp"
arping-2/arping.c:397: error: `icmp' undeclared (first use in this function)
arping-2/arping.c:397: error: `ICMP_ECHO' undeclared (first use in this function
)
arping-2/arping.c:411: error: `ipv4' undeclared (first use in this function)
arping-2/arping.c:412: error: `LIBNET_IPV4_H' undeclared (first use in this func
tion)
arping-2/arping.c:412: error: `LIBNET_ICMPV4_ECHO_H' undeclared (first use in th
is function)
arping-2/arping.c:429: error: `eth' undeclared (first use in this function)
arping-2/arping.c:431: error: `ETHERTYPE_IP' undeclared (first use in this funct
ion)
arping-2/arping.c:450: error: `errno' undeclared (first use in this function)
arping-2/arping.c: In function `pingip_send':
arping-2/arping.c:462: error: syntax error before "arp"
arping-2/arping.c:463: error: `arp' undeclared (first use in this function)
arping-2/arping.c:463: error: `ARPHRD_ETHER' undeclared (first use in this funct
ion)
arping-2/arping.c:464: error: `ETHERTYPE_IP' undeclared (first use in this funct
ion)
arping-2/arping.c:467: error: `ARPOP_REQUEST' undeclared (first use in this func
tion)
arping-2/arping.c:480: error: `eth' undeclared (first use in this function)
arping-2/arping.c:482: error: `ETHERTYPE_ARP' undeclared (first use in this func
tion)
arping-2/arping.c:501: error: `errno' undeclared (first use in this function)
arping-2/arping.c: In function `pingip_send':
arping-2/arping.c:462: error: syntax error before "arp"
arping-2/arping.c:463: error: `arp' undeclared (first use in this function)
arping-2/arping.c:463: error: `ARPHRD_ETHER' undeclared (first use in this funct
ion)
arping-2/arping.c:464: error: `ETHERTYPE_IP' undeclared (first use in this funct
ion)
arping-2/arping.c:467: error: `ARPOP_REQUEST' undeclared (first use in this func
tion)
arping-2/arping.c:480: error: `eth' undeclared (first use in this function)
arping-2/arping.c:482: error: `ETHERTYPE_ARP' undeclared (first use in this func
tion)
arping-2/arping.c:501: error: `errno' undeclared (first use in this function)
arping-2/arping.c: In function `pingip_recv':
arping-2/arping.c:524: error: `errno' undeclared (first use in this function)
arping-2/arping.c:528: error: `LIBNET_ETH_H' undeclared (first use in this funct
ion)
arping-2/arping.c:530: error: dereferencing pointer to incomplete type
arping-2/arping.c:530: error: `ARPOP_REPLY' undeclared (first use in this functi
on)
arping-2/arping.c:531: error: dereferencing pointer to incomplete type
arping-2/arping.c:531: error: `ETHERTYPE_IP' undeclared (first use in this funct
ion)
arping-2/arping.c:532: error: dereferencing pointer to incomplete type
arping-2/arping.c:532: error: `ARPHRD_ETHER' undeclared (first use in this funct
ion)
arping-2/arping.c:534: error: dereferencing pointer to incomplete type
arping-2/arping.c:535: error: `LIBNET_ARP_H' undeclared (first use in this funct
ion)
arping-2/arping.c:537: error: invalid application of `sizeof' to an incomplete t
ype
arping-2/arping.c:547: error: dereferencing pointer to incomplete type
arping-2/arping.c:565: error: dereferencing pointer to incomplete type
arping-2/arping.c:575: error: dereferencing pointer to incomplete type
arping-2/arping.c: In function `pingmac_recv':
arping-2/arping.c:608: error: `errno' undeclared (first use in this function)
arping-2/arping.c:613: error: `LIBNET_ETH_H' undeclared (first use in this funct
ion)
arping-2/arping.c:614: error: `LIBNET_IPV4_H' undeclared (first use in this func
tion)
arping-2/arping.c:616: error: dereferencing pointer to incomplete type
arping-2/arping.c:616: error: `ICMP_ECHOREPLY' undeclared (first use in this fun
ction)
arping-2/arping.c:617: error: dereferencing pointer to incomplete type
arping-2/arping.c:619: error: dereferencing pointer to incomplete type
arping-2/arping.c:623: error: dereferencing pointer to incomplete type
arping-2/arping.c:634: error: dereferencing pointer to incomplete type
arping-2/arping.c:636: error: dereferencing pointer to incomplete type
arping-2/arping.c:640: error: dereferencing pointer to incomplete type
arping-2/arping.c:645: error: dereferencing pointer to incomplete type
arping-2/arping.c:649: error: dereferencing pointer to incomplete type
arping-2/arping.c:655: error: dereferencing pointer to incomplete type
arping-2/arping.c:659: error: dereferencing pointer to incomplete type
arping-2/arping.c: In function `ping_recv':
arping-2/arping.c:735: error: `errno' undeclared (first use in this function)
arping-2/arping.c:744: error: `EINTR' undeclared (first use in this function)
arping-2/arping.c: In function `main':
arping-2/arping.c:813: error: `LIBNET_ERRBUF_SIZE' undeclared (first use in this
function)
arping-2/arping.c:912: error: `LIBNET_RESOLVE' undeclared (first use in this fun
ction)
arping-2/arping.c:983: warning: assignment makes pointer from integer without a
cast
arping-2/arping.c:1023: warning: assignment makes pointer from integer without a
cast
arping-2/arping.c:1146: error: `SIGINT' undeclared (first use in this function)
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/pkg_comp/obj/pkgsrc/net/arping/default/.gcc/bin/gcc -g -o arping arping-2/arpin
g.c -I/pkg_comp/obj/pkgsrc/net/arping/default/.buildlink/include -L/pkg_comp/obj
/pkgsrc/net/arping/default/.buildlink/lib -lnet -lpcap
*** Error code 1
Stop.
make: stopped in /pkg_comp/obj/pkgsrc/net/arping/default/arping-2.05
*** Error code 1
>Fix:
Since the recent change was a change of libnet package
versions to depend upon, I'd tend to guess that there's
something different between this one and the one that
used to be used, that's resulting in the .h file not being
located (that or the change wasn't done completely, and
something else more than what was updated needs updating).
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Thu, 22 Feb 2007 17:16:54 +0000
Responsible-Changed-Why:
I broke it.
State-Changed-From-To: open->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Thu, 22 Feb 2007 17:16:54 +0000
State-Changed-Why:
I've fixed it (hopefully).
From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35786 CVS commit: pkgsrc/net/arping
Date: Thu, 22 Feb 2007 17:15:22 +0000 (UTC)
Module Name: pkgsrc
Committed By: rillig
Date: Thu Feb 22 17:15:21 UTC 2007
Modified Files:
pkgsrc/net/arping: Makefile distinfo
Removed Files:
pkgsrc/net/arping/patches: patch-aa
Log Message:
I know I had tested the package when I did the last change, and it had
worked. But somehow, today it didn't work anymore.
Fixed everything by removing the patch for the Makefile and doing the
whole build command in the package Makefile.
Fixes PR 35786.
To generate a diff of this commit:
cvs rdiff -r1.11 -r1.12 pkgsrc/net/arping/Makefile
cvs rdiff -r1.3 -r1.4 pkgsrc/net/arping/distinfo
cvs rdiff -r1.2 -r0 pkgsrc/net/arping/patches/patch-aa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/35786 (net/arping compilation errors (NetBSD 3.0)
Date: Fri, 23 Feb 2007 17:11:34 +0700
Date: Thu, 22 Feb 2007 17:16:56 +0000 (UTC)
From: rillig@NetBSD.org
Message-ID: <20070222171656.43F6963B879@narn.NetBSD.org>
| I've fixed it (hopefully).
Yes, and thanks.
kre
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.