[FFmpeg-devel] duplicate symbol '_dec_init' in: fftools/ffmpeg_dec.o

James Almer jamrial at gmail.com
Sat Mar 16 22:58:23 EET 2024


On 3/16/2024 11:26 AM, Christopher Degawa wrote:
> On Sat, Mar 16, 2024 at 09:08 Gnattu OC via ffmpeg-devel <
> ffmpeg-devel at ffmpeg.org> wrote:
> 
>> If you are using Xcode >= 15 then you will need to add `-Wl,-ld_classic`
>> to LDFLAGS.  During configure you will also need to set
>> `--host-ldflags='-Wl,-ld_classic’`.
>>
>>> On Mar 16, 2024, at 09:04, Helmut K. C. Tessarek <tessarek at evermeet.cx>
>> wrote:
>>>
>>> Hello,
>>>
>>> It's me again - the dude who compiles ffmpeg for macOS... ;-)
>>>
>>> I haven't updated the referenced libbluray, but only compiled ffmpeg the
>> way I always do. The last time was about 3 days ago and all was good.
>>>
>>> This is the git hash of ffmpeg I tried to compile: b47abd5737
>>>
>>> duplicate symbol '_dec_init' in:
>>>     fftools/ffmpeg_dec.o
>>>     /Users/Shared/ffmpeg/sw/lib/libbluray.a(libbluray_la-dec.o)
>>> ld: 1 duplicate symbol for architecture x86_64
>>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>>>
>>> The only code that changed was ffmpeg and libx265, thus I suspect it was
>> a change to ffmpeg. I can't really do a git bisect, because this error only
>> happens after ffmpeg is compiled at the linker stage, so that would take me
>> forever....
>>>
>>> However, the dev who did a change related to this would probably know
>> right away.
>>>
>>> Cheers,
>>>   K. C.
>>>
>>>
>>> --
>>> regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
>>> Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944
>>>
>>> /*
>>>    Thou shalt not follow the NULL pointer for chaos and madness
>>>    await thee at its end.
>>> */
>>> _______________________________________________
>>> ffmpeg-devel mailing list
>>> ffmpeg-devel at ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>>
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
> 
> 
> 
> Seems the conflict comes from
> https://code.videolan.org/videolan/libbluray/-/blob/master/src/libbluray/disc/dec.c?ref_type=heads#L287
>   and
> https://github.com/FFmpeg/FFmpeg/commit/c4de5778bceab3c15f1239f1f16816749a7fd3b6
> 
> Perhaps you could also try asking libbluray if they could use an internal
> prefix. Otherwise you might need to do a rename of that function on
> ffmpeg's side.

libbluray 100% needs to either prefix it, or hid it so it's not 
exported. It's a library, so it should not be exporting such simple and 
short unprefix named symbols.


More information about the ffmpeg-devel mailing list