Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2006 11:52:49 -0800
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Jeremy Messenger <mezz7@cox.net>
Cc:        Anthony Elizondo <anthony.elizondo@gmail.com>, riggs@rrr.de, freebsd-ports@freebsd.org
Subject:   Re: Undefined reference to 'llrint' when portinstalling multimedia/mplayer
Message-ID:  <20061128195249.GA89593@icarus.home.lan>
In-Reply-To: <op.tjqp7ush9aq2h7@mezz.mezzweb.com>
References:  <a49e62c80611281022o5cf13eaqbb7213e57ac29103@mail.gmail.com> <op.tjqp7ush9aq2h7@mezz.mezzweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 28, 2006 at 01:10:32PM -0600, Jeremy Messenger wrote:
> On Tue, 28 Nov 2006 12:22:41 -0600, Anthony Elizondo  
> <anthony.elizondo@gmail.com> wrote:
> 
> >I'm getting the following error when installing multimedia/mplayer.
> >Anyone have any ideas?
> >
> >I'm running 5.3-RELEASE.
> 
> Your system is too old, please update it to 5.5 or even better to 6.x.
> 
> >libavcodec/libavcodec.a(mpegaudiodec.o)(.text+0x9a5): In function  
> >`decode_init':
> >: undefined reference to `llrint'
> 
> The llrint() was added in FreeBSD 5.4.

The port should be changed to address this fact, because the
end-user won't know what release has what libm functions until
it's too late (case in point).  For OSVERSION values:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/freebsd-versions.html

Something like this should do just fine:

.if ${OSVERSION} < 504000
BROKEN=		Requires FreeBSD 5.4 or later, for llrint(3)
.endif

-- 
| Jeremy Chadwick                                 jdc at parodius.com |
| Parodius Networking                        http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, USA |
| Making life hard for others since 1977.               PGP: 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061128195249.GA89593>