Subject: pkg/23727: mplayer does not configure on amd64
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/12/2003 20:05:59
>Number:         23727
>Category:       pkg
>Synopsis:       mplayer does not configure on amd64
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 12 20:07:00 UTC 2003
>Originator:     Richard Rauch
>Release:        NetBSD/amd64-current
NetBSD socrates 1.6ZE NetBSD 1.6ZE (GENERIC) #0: Mon Nov 10 11:15:44 CET 2003  fvdl@k2:/usr/obj/current/sys/arch/amd64/compile.amd64/GENERIC amd64

Attempting to build fails during configure because the amd64 port's CPU is
not correctly identified.  ("uname -p" gives x86_64, which isn't
recognized at all.  "uname -m" is then tried, and "x86_64" would be
accepted, but we return "amd64", which also fails.)

Attempt to build mplayer on NetBSD/amd64-current.
Post-"make patch", I made the following change to add "amd64" to the
valid "uname -m" output types recognized by configure.  Then the whole
thing compiles and installs.  (Not yet tested, sorry.)

--- configure.old       2003-12-12 12:54:06.000000000 -0600
+++ configure   2003-12-12 12:54:48.000000000 -0600
@@ -406,7 +406,7 @@
       case "`( uname -m ) 2>&1`" in
       i[3-9]86*|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686) host_arch=i386 ;;
       ia64) host_arch=ia64 ;;
-      x86_64) host_arch=x86_64 ;;
+      x86_64|amd64) host_arch=x86_64 ;;
       ppc) host_arch=ppc ;;
       alpha) host_arch=alpha ;;
       sparc*) host_arch=sparc ;;