[FFmpeg-devel] [PATCH] Fix linking on OS/2
KO Myung-Hun
komh
Sat Jun 5 15:38:24 CEST 2010
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.
> 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.
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.0.3
Under OS/2 Warp 4 for Korean with FixPak #15
On AMD ThunderBird 1GHz with 512 MB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
More information about the ffmpeg-devel
mailing list