Subject: pkg/24773: mplayer pkg cpu and library issues
To: None <>
From: None <>
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
>Originator:     Daniel Carosone
>Release:        NetBSD 1.6ZK
NetBSD-current as of today, pkgsrc of today, X11 4.4 from src/x11 likewise.

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.


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

/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

try to build mplayer on a slightly older cpu
send a pr and wait :)