#1736: ffmpeg fails to build on Snow Leopard due to please_use_av_malloc macro polluting system headers -------------------------------------+------------------------------------- Reporter: jeremyhu | Owner: Type: defect | Status: new Priority: normal | Component: Version: | undetermined unspecified | Keywords: Blocked By: | Blocking: Reproduced by developer: 0 | Analyzed by developer: 0 -------------------------------------+------------------------------------- This issue is occuring on Snow Leopard with Apple's gcc-4.2 and possibly llvm-gcc-4.2 compilers. The build fails with: {{{ 132 :info:build In file included from /usr/lib/gcc/i686-apple- darwin10/4.2.1/include/xmmintrin.h:45, 133 :info:build from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:29, 134 :info:build from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32, 135 :info:build from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125, 136 :info:build from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20, 137 :info:build from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21, 138 :info:build from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20, 139 :info:build from /System/Library/Frameworks/CoreVideo.framework/Headers/CVDisplayLink.h:24, 140 :info:build from /System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:24, 141 :info:build from /System/Library/Frameworks/VideoDecodeAcceleration.framework/Headers/VDADecoder.h:12, 142 :info:build from libavcodec/vda.h:45, 143 :info:build from libavcodec/vda_h264.c:29: 144 :info:build /usr/lib/gcc/i686-apple- darwin10/4.2.1/include/mm_malloc.h: In function '_mm_malloc': 145 :info:build /usr/lib/gcc/i686-apple- darwin10/4.2.1/include/mm_malloc.h:56: error: implicit declaration of function 'please_use_av_malloc' 146 :info:build /usr/lib/gcc/i686-apple- darwin10/4.2.1/include/mm_malloc.h: In function '_mm_free': 147 :info:build /usr/lib/gcc/i686-apple- darwin10/4.2.1/include/mm_malloc.h:74: error: implicit declaration of function 'please_use_av_free' }}}
mm_malloc.h provides static inline functions like: {{{ static __inline__ void _mm_free (void * aligned_ptr) { if (aligned_ptr) free (((void **) aligned_ptr) [-1]); } }}} which get tripped up over free being defined to please_use_av_free. This has been reported to MacPorts as https://trac.macports.org/ticket/36142 ... the issue was introduced some time between July 18's git master (56ae5926f739bd26a5aa4add98604b7cd3c2d6ca) and September 12 (2de88776892093b10522152f1f72b7dfc0320502). -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1736> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://avcodec.org/mailman/listinfo/ffmpeg-trac