[FFmpeg-devel] [PATCH] fix implicit function declarations without _XOPEN_SOURCE

David Conrad lessen42
Mon Aug 25 21:07:55 CEST 2008

On Aug 25, 2008, at 1:16 PM, Adrian Stutz wrote:

> On Mon, Aug 25, 2008 at 7:01 PM, David Conrad <lessen42 at gmail.com>  
> wrote:
>> Works for me.
>> It sounds like you're using 10.5 headers. Make sure you're specifing
>> the sdk in cflags as well as ldflags. Otherwise make sure you have  
>> the
>> latest developer tools.
> I've added "-mmacosx-version-min=10.4 -isystem /Developer/SDKs/ 
> MacOSX10.4u.sdk"
> to both cflags and ldflags as well as set
> "NEXT_ROOT=/Developer/SDKs/MacOSX10.4u.sdk" and
> "MACOSX_DEPLOYMENT_TARGET=10.4". I think this problem wouldn't occur  
> if I
> didn't because then the linker could find the versioned symbols.
> Do you have  _XOPEN_SOURCE in utils.c? And what flags are you using?

Yes, I'm using the latest unmodified SVN, which has _XOPEN_SOURCE  
defined to 500. However, I'm using -isysroot instead of -isystem,  
which you should use according to Apple [1]. But even using -isystem  
and setting the same environment variables you set I can't reproduce  
the problem you're having.

My configure:

../configure --extra-cflags="-isysroot /Developer/SDKs/MacOSX10.4u.sdk  
-mmacosx-version-min=10.4" --extra-ldflags="-isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4"

[1] http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/Using/chapter_3_section_2.html

More information about the ffmpeg-devel mailing list