Undefined reference to 'llrint' when portinstalling
multimedia/mplayer
Jeremy Chadwick
koitsu at FreeBSD.org
Tue Nov 28 11:58:13 PST 2006
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 at 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 |
More information about the freebsd-ports
mailing list