[Ffmpeg-devel] [BUG] Compilation broken on FreeBSD

Michael Niedermayer michaelni
Tue Nov 7 18:02:50 CET 2006


Hi

On Tue, Nov 07, 2006 at 05:10:07PM +0100, Panagiotis Issaris wrote:
> Hi,
> 
> On Tue, 2006-11-07 at 15:42 +0000, M?ns Rullg?rd wrote:
> > Panagiotis Issaris said:
> > > Hi,
> > >
> > > Compilation on FreeBSD 6.1 is broken as of revision 6839, with the
> > > introduction of the imc.c file in the libavcodec directory. This file
> > > uses log2() which appears to be missing on FreeBSD.
> > 
> > Get a C99/POSIX compatible system.
> Well, my main systems are GNU/Linux ones. I am not really using this
> system for anything but testing of various software packages. Mainly
> because I want to be aware of features that are Linux-specific.

submit a patch which adds
#ifndef HAVE_LOG2
#define log2(a) (log(a)/log(2))
#endif

and add configure check, or put the #define in config.h if log2 isnt 
available


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list