Subject: bin/22041: am-utils embeds incorrect info into binary (PR bin/17103 again ?)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 07/03/2003 16:08:38
>Number:         22041
>Category:       bin
>Synopsis:       am-utils embeds incorrect info into binary (PR bin/17103 again ?)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 03 07:09:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 1.6U
>Organization:
>Environment:
System: NetBSD firefly.localdomain 1.6U NetBSD 1.6U (FIREFLY) #98: Wed Jul 2 19:23:07 JST 2003 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY i386
Architecture: i386
Machine: i386
>Description:

In src/usr.sbin/amd/include/config.h(rev. 1.31), HOST_ARCH and HOST_CPU are defined as "i386".
On my sparc64 machine, amd -v returns following result:

# amd -v
Copyright (c) 1997-2003 Erez Zadok
Copyright (c) 1990 Jan-Simon Pendry
Copyright (c) 1990 Imperial College of Science, Technology & Medicine
Copyright (c) 1990 The Regents of the University of California.
am-utils version 6.1b2 (build 1).
Report bugs to amd-dev@am-utils.org.
Built by christos@shiny.astron.com on date Sat Mar  8 17:15:36 EST 2003.
cpu=i386 (big-endian), arch=i386, karch=sparc64.
full_os=netbsdelf1.6P, os=netbsdelf1, osver=1.6P, vendor=unknown.
Map support for: root, passwd, hesiod, union, nis, ndbm, file, error.
AMFS: nfs, link, nfsx, nfsl, host, linkx, program, union, inherit, ffs,
      cdfs, pcfs, auto, direct, toplvl, error.
FS: cdfs, mfs, nfs, nfs3, nullfs, pcfs, ffs, umapfs, unionfs.
Network: wire="133.7.207.0" (netnumber=133.7.207).

>How-To-Repeat:
amd -v

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: