[FFmpeg-devel] [PATCH] Fix linking on OS/2

Måns Rullgård mans
Sat Jun 5 16:34:20 CEST 2010


KO Myung-Hun <komh at chollian.net> writes:

> Hi/2.
>
> M?ns Rullg?rd wrote:
>> Dave Yeo <daveryeo at telus.net> writes:
>> 
>>> On 06/04/10 05:13 am, M?ns Rullg?rd wrote:
>>>> Dave Yeo<daveryeo at telus.net>  writes:
>
> [...]
>
>>> gcc -L"/usr/src/ffmpeg"/libavcodec -L"/usr/src/ffmpeg"/libavdevice
>>> -L"/usr/src/ffmpeg"/libavfilter -L"/usr/src/ffmpeg"/libavformat
>>> -L"/usr/src/ffmpeg"/libavutil -L"/usr/src/ffmpeg"/libpostproc
>>> -L"/usr/src/ffmpeg"/libswscale -Zomf -Zbin-files -Zargs-wild -Zmap  -o
>>> ffmpeg_g.exe ffmpeg.o cmdutils.o -lavdevice -lavfilter -lavformat
>>> -lavcodec -lswscale -lavutil -lz -lbz2 -lm
>>> weakld: error: Unresolved symbol (UNDEF) '_ff_toupper4'.
>>> weakld: info: The symbol is referenced by:
>>>     R:\tmp\ldconv_libavformat_s_a_74454c088fcb1ebd70.lib(utils.obj)
>>> weakld: error: Unresolved symbol (UNDEF) '_av_get_codec_tag_string'.
>>> weakld: info: The symbol is referenced by:
>>>     R:\tmp\ldconv_libavformat_s_a_74454c088fcb1ebd70.lib(utils.obj)
>>> Ignoring unresolved externals reported from weak prelinker.
>>>
>>> R:\tmp\ldconv_libavformat_s_a_74454c088fcb1ebd70.lib(utils.obj) :
>>> error LNK2029: "_ff_toupper4" : unresolved external
>>> R:\tmp\ldconv_libavformat_s_a_74454c088fcb1ebd70.lib(utils.obj) :
>>> error LNK2029: "_av_get_codec_tag_string" : unresolved external
>>>
>>> There were 2 errors detected
>>> make: *** [ffmpeg_g.exe] Error 1
>> 
>> Your linker is clearly fucked up.  The symbols in question are
>> referenced in libavformat and defined in libavcodec.  -lavcodec occurs
>> after -lavformat in the link command, so there is no reason for this
>> to fail.
>
> I can compile and link all the FFmpeg stuffs without any problems as
> expected. Maybe Dave has a broken build environment.

Thanks for that information.

>> Maybe I should take this opportunity to declare OS/2 unsupported and
>> remove all the related hacks...
>
> Hmm... It seems that you are always finding the opportunity to remove
> OS/2 supports.

That was meant as a joke.  Mostly.

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



More information about the ffmpeg-devel mailing list