Subject: mplayer on amd64?
To: None <port-amd64@netbsd.org, pkgsrc-users@netbsd.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: pkgsrc-users
Date: 12/25/2007 11:41:42
Has anyone tried getting mplayer running on amd64?  When I try to
compile it, I get

vidix/libvidix.a(pci.o): In function `pci_scan':
pci.c:(.text+0x14b): undefined reference to `pci_config_type'
pci.c:(.text+0x1f9): undefined reference to `pci_get_vendor'
pci.c:(.text+0x24e): undefined reference to `pci_config_read_long'
pci.c:(.text+0x27b): undefined reference to `pci_config_read_long'
pci.c:(.text+0x2a8): undefined reference to `pci_config_read_long'
pci.c:(.text+0x2d5): undefined reference to `pci_config_read_long'
pci.c:(.text+0x302): undefined reference to `pci_config_read_long'
vidix/libvidix.a(pci.o):pci.c:(.text+0x32f): more undefined references to `pci_config_read_long' follow
gmake: *** [mplayer] Error 1
*** Error code 2

Clearly, that's architecture-dependent.  I see the following sequence in
vidix/pci.c:

/* cpu depended stuff */
#ifndef CONFIG_SVGAHELPER
#if defined(__alpha__)
#include "sysdep/pci_alpha.c"
#elif defined(__ia64__)
#include "sysdep/pci_ia64.c"
#elif defined(__sparc__)
#include "sysdep/pci_sparc.c"
#elif defined( __arm32__ )
#include "sysdep/pci_arm32.c"
#elif defined(__powerpc__)
#include "sysdep/pci_powerpc.c"
#elif defined(__x86_64__)
/* Nothing here right now */
#else
#include "sysdep/pci_x86.c"
#endif
#endif

but I have no idea what to put in a sysdep/pci_x86_64.c.


		--Steve Bellovin, http://www.cs.columbia.edu/~smb