NetBSD Problem Report #6440

Received: (qmail 8908 invoked from network); 14 Nov 1998 12:18:23 -0000
Message-Id: <19981114121823.2A0E41D0B@mabelode.imrryr.org>
Date: Sat, 14 Nov 1998 04:18:23 -0800 (PST)
From: elric@imrryr.org
Reply-To: elric@imrryr.org
To: gnats-bugs@gnats.netbsd.org
Subject: on Alpha, -DARP_DEBUG causes errors when building netboot
X-Send-Pr-Version: 3.95

>Number:         6440
>Category:       kern
>Synopsis:       on Alpha, -DARP_DEBUG causes errors when building netboot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 14 04:20:01 +0000 1998
>Closed-Date:    Thu Oct 18 19:01:20 +0000 2001
>Last-Modified:  Thu Oct 18 19:01:20 +0000 2001
>Originator:     R. C. Dowdeswell
>Release:        Thu Nov 12 05:11:56 PST 1998
>Organization:
Not much.
>Environment:
System: NetBSD mabelode.imrryr.org 1.3H NetBSD 1.3H (MABELODE) #2: Wed Nov 4 02:16:40 PST 1998 elric@mabelode.imrryr.org:/usr/src/sys/arch/alpha/compile/MABELODE alpha


>Description:
	When making the netboot'er with -DARP_DEBUG on the alpha, the build
	failed with "warning: int format, different type arg (arg 2)". 
>How-To-Repeat:

 # cd /sys/arch/alpha/stand/netboot
 # make

cc -Wall -Wno-main -mno-fp-regs -g  -Werror -Wall -Wno-main -I. -DPRIMARY_BOOTBLOCK -DALPHA_BOOT_ECOFF -DALPHA_BOOT_ELF -DARP_DEBUG -I/usr/src/sys/arch/alpha/stand/netboot -D_STANDALONE -I/usr/src/sys/arch/alpha/stand/netboot/../.. -I/usr/src/sys/arch/alpha/stand/netboot/../../../.. -DPRIMARY_LOAD_ADDRESS="0x20000000" -DSECONDARY_LOAD_ADDRESS="0x20004000" -DHEAP_LIMIT="0x20040000"   -DCOMPAT_UFS  -D__INTERNAL_LIBSA_CREAD -c /usr/src/sys/lib/libsa/arp.c
cc1: warnings being treated as errors
/usr/src/sys/lib/libsa/arp.c: In function `arprecv':
/usr/src/sys/lib/libsa/arp.c:214: warning: int format, different type arg (arg 2)
*** Error code 1

Stop.
*** Error code 1

Stop.

>Fix:
Well, this seemed to make it build...

*** arp.c.orig  Sat Nov 14 04:12:48 1998
--- arp.c       Sat Nov 14 04:12:55 1998
***************
*** 211,217 ****
        if (n == -1 || n < sizeof(struct ether_arp)) {
  #ifdef ARP_DEBUG
                if (debug)
!                       printf("bad len=%d\n", n);
  #endif
                return (-1);
        }
--- 211,217 ----
        if (n == -1 || n < sizeof(struct ether_arp)) {
  #ifdef ARP_DEBUG
                if (debug)
!                       printf("bad len=%ld\n", n);
  #endif
                return (-1);
        }

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jdolecek 
State-Changed-When: Thu Oct 18 12:00:55 PDT 2001 
State-Changed-Why:  
Fixed. Thanks for report! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.