Subject: pkg/24773: mplayer pkg cpu and library issues
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dan@geek.com.au>
List: netbsd-bugs
Date: 03/14/2004 17:54:12
>Number: 24773
>Category: pkg
>Synopsis: mplayer chooses wrong cpu type, doesn't link with right library paths
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 14 06:55:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Daniel Carosone
>Release: NetBSD 1.6ZK
>Organization:
dis-
>Environment:
NetBSD-current as of today, pkgsrc of today, X11 4.4 from src/x11 likewise.
>Description:
on several machines, mplayer picks the wrong cpu type in configure.
For example, on a p3 it picks -march-pentium4 and on an amd duron it
picks -march=athlon-xp
This seems to be from the default *) case in configure, around line
710 in the case of pentiumX machines. Manually editing that line to
the correct CPU type results in the right arguments to gcc.
I have MPLAYER_ENABLE_RUNTIME_CPU_DETECTION=NO in mk.conf
The resulting mplayer binary trips on a SIGILL, unless run on a
machine that really has that cpu type. But only after setting
LD_LIBRARY_PATH=/usr/X11R6/lib; it doesn't seem to get that linked in
properly.
/usr/pkg/bin/mplayer: -lXxf86dga.1 => not found
-lXv.1 => not found
-lXxf86vm.1 => not found
-lXinerama.1 => not found
-lXext.6 => not found
-lX11.6 => not found
>How-To-Repeat:
try to build mplayer on a slightly older cpu
>Fix:
send a pr and wait :)
>Release-Note:
>Audit-Trail:
>Unformatted: