[Ffmpeg-devel] Re: r7050 broke build on MacOSX (?)

Måns Rullgård mru
Tue Nov 14 14:07:01 CET 2006


sci-fi at hush.ai said:
> On 2006-11-14 04:01:04 -0600, M?ns Rullg?rd <mru at inprovide.com> said:
>
>> sci-fi at hush.ai said:
>>>
>>> [...]
>>> In file included from /usr/include/sys/_endian.h:88,
>>> from /usr/include/ppc/endian.h:107,
>>> from /usr/include/machine/endian.h:30,
>>> from /usr/include/sys/types.h:75,
>>> from avcodec.h:35,
>>> from dtsdec.c:26:
>>> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stdint.h:65: error:
>>> conflicting types for ???int_fast16_t???
>>> /var/root/Projects/svn.mplayerhq.hu/ffmpeg/libavutil/common.h:162:
>>> error: previous declaration of ???int_fast16_t??? was here
>>> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stdint.h:69: error:
>>> conflicting types for ???uint_fast16_t???
>>> /var/root/Projects/svn.mplayerhq.hu/ffmpeg/libavutil/common.h:165:
>>> error: previous declaration of ???uint_fast16_t??? was here
>>> dtsdec.c: In function ???dts_decode_frame???:
>>> dtsdec.c:279: warning: pointer of type ???void *??? used in arithmetic
>>> make: *** [dtsdec.o] Error 1
>>> make: Leaving directory
>>> `/Volumes/MaxFire3/Projects/svn.mplayerhq.hu/ffmpeg/libavcodec'
>>>
>>> Earlier tonight I successfully built r7028, fwiw.
>>
>> Can I see your config.err and config.h please?
>
> I'll need to copy-&-paste, this newsreader can't do a
> reply-with-attachments.  (yeah I know, "get a 'real' one" ;) )

Oh well, at least it didn't mess up the line breaks very much.

> config.err:
[...]
> check_header inttypes.h
> check_cpp
> BEGIN /Volumes/RamDisk/tmp/ffmpeg-conf-32749-24450-31838.c
>      1	#include <inttypes.h>
>      2	int x;
> END /Volumes/RamDisk/tmp/ffmpeg-conf-32749-24450-31838.c
> cc -no-cpp-precomp -force_cpusubtype_ALL -Wno-sign-compare
> -fomit-frame-pointer -mcpu=970 -mpowerpc-gfxopt -mpowerpc64 -faltivec
> -E -o /Volumes/RamDisk/tmp/ffmpeg-conf-667-24450-10073.o
> /Volumes/RamDisk/tmp/ffmpeg-conf-32749-24450-31838.c

No errors, you have inttypes.h.

> check_cc
> BEGIN /Volumes/RamDisk/tmp/ffmpeg-conf-32749-24450-31838.c
>      1	#include <inttypes.h>
>      2	int main(int argc, char ** argv){
>      3	        volatile uint_fast64_t i=0x01234567;
>      4	        return 0;
>      5	}
> END /Volumes/RamDisk/tmp/ffmpeg-conf-32749-24450-31838.c
> cc -no-cpp-precomp -force_cpusubtype_ALL -Wno-sign-compare
> -fomit-frame-pointer -mcpu=970 -mpowerpc-gfxopt -mpowerpc64 -faltivec
> -c -o /Volumes/RamDisk/tmp/ffmpeg-conf-667-24450-10073.o
> /Volumes/RamDisk/tmp/ffmpeg-conf-32749-24450-31838.c

Still no errors.  Your inttypes.h defines the int_fastxx_t types.


> config.h:
[...]
> #define HAVE_FAST_INT 1
> #define HAVE_INTTYPES 1

These macros are properly defined, so the typedefs under #ifndef HAVE_FAST_INT
shouldn't be included.  Still, the compiler claims that they were.

Do you by any chance have a stray config.h around?  Try building a clean
checkout.

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-devel mailing list