[FFmpeg-devel] linker error

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Thu Oct 20 10:01:39 EEST 2022


Nicolas George:
> Helmut K. C. Tessarek (12022-10-20):
>> I compile the static ffmpeg binaries for macOS and I have noticed just now
>> the following error:
>>
>> duplicate symbol '_read_file' in:
>>     fftools/ffmpeg_opt.o
>>     /Users/Shared/ffmpeg/sw/lib/libass.a(ass.o)
>> ld: 1 duplicate symbol for architecture x86_64
>> clang: error: linker command failed with exit code 1 (use -v to see invocation
>> )
>> make: *** [ffmpeg_g] Error 1
>>
>> I believe it has something to do with commit
>> 18d6c07267994398f99b2241f577f8e7118af099
>> fftools/ffmpeg_opt: move opening output files into a new file
> 
> Possibly. But between a library and a final program, the one who is at
> fault when a non-namespaced symbol conflicts is the library.
> 
> So please report this to libass before considering a mitigation in
> FFmpeg.
> 

Someone already did: https://github.com/libass/libass/issues/654

- Andreas



More information about the ffmpeg-devel mailing list