[FFmpeg-devel] In Leopard library is broken if compiled with Tiger compatibility

Måns Rullgård mans
Mon Dec 8 12:29:41 CET 2008


?????????? ??????????? <panayotis at panayotis.com> writes:

> On 08 ??? 2008, at 11:06 ??, Dominik 'Rathann' Mierzejewski wrote:
>
>> On Monday, 08 December 2008 at 10:00, ??????????  
>> ??????????? wrote:
>>>
>>> On 07 ??? 2008, at 9:57 ??, David DeHaven wrote:
>>>
>>>>
>>>>>> Can FFmpeg be built on an OSX 10.4 system?
>>>>>
>>>>> Yes, FFmpeg can be built on 10.4 with no problems.
>>>>
>>>> And on Leopard targeting 10.4 with -mmacosx-version-min=10.4 or
>>>> setting MACOSX_DEPLOYMENT_TARGET to 10.4 in my case. Though I only
>>>> build a minimal LGPL version of lavxxx shared libs otherwise it's
>>>> static, but it works and runs on 10.4 and 10.5.
>>>>
>>>> The only system related issues I really have are with mplayer  
>>>> linking
>>>> against libraries installed by MacPorts, and those are eliminated by
>>>> removing /opt/local/bin from the PATH before configuring.
>>>>
>>>> <checking>
>>>> Oh, I also specify the 10.4 SDK using "-isysroot /Developer/SDKs/
>>>> MacOSX10.4u.sdk"
>>>
>>>
>>> In general, these flags were enough. But, in some parts of ffmpeg  
>>> this
>>> is not suffucient.
>>>
>>> The problem is actually the flag -D_POSIX_C_SOURCE=200112
>>> When this flag is not present, the compilation succeeds.
>>
>> What's the exact error you're getting when it's present?
>
> The problem is not in compile time, but in run time.
> Since some library functions in Leopard follow now the Unix standards,  
> these are named functions in Leopard with an appended $UNIX2003 string.
> For example, function "_strtod" is named as "_strtod$UNIX2003"
>
> This happens only if you compile in Leopard. If you want to keep  
> backwards compatibility with Tiger, you need to use the proposed  
> methods above.
> Unfortunately, even then, the code which is produced by ffmpeg still  
> has unresolved symbols (i.e. functions named  *$UNIX2003 )

This issue has arisen before.  My reply still stands:
http://article.gmane.org/gmane.comp.video.ffmpeg.devel/73295

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list