[Fontconfig] ld: 2 duplicate symbols for architecture x86_64
桃源老師
xanadu6291 at dream.jp
Tue Oct 9 11:37:47 UTC 2018
Hello, Akira-san,
I need fontconfig to be build as static. Since I’d like to have ffmpeg as static binary.
I have saved plain diff from the URL which you introduced and applied patch to fontconfig 2.13.1.
I now successfully build static fontconfig. Thank you very much!!!
Best Regards,
// Miya aka. TougenRoushi
> 2018/10/09 午後5:48、Akira TAGOH <akira at tagoh.org>のメール:
>
> That should be fixed by
> https://gitlab.freedesktop.org/fontconfig/fontconfig/commit/8208f99fa1676c42bfd8d74de3e9dac5366c150c
> or you could simply disable that build for static. i.e. add "if
> !ENABLE_SHARED" and "endif" around that rule in Makefile.am.
>
> Sorry for inconvenience.
> On Tue, Oct 9, 2018 at 5:35 PM 桃源老師 <xanadu6291 at dream.jp> wrote:
>>
>> Hello list member,
>>
>> I’m trying to build fontconfig 2.13.1 on macOS 10.14 Mojave but it fails with error “ld: 2 duplicate symbols for architecture x86_64”.
>>
>> The error portion is as follows:
>>
>> CCLD test-bz106632
>> duplicate symbol _FcConfigHome in:
>> test_bz106632-test-bz106632.o
>> ../src/.libs/libfontconfig.a(fccfg.o)
>> duplicate symbol _FcLangNormalize in:
>> test_bz106632-test-bz106632.o
>> ../src/.libs/libfontconfig.a(fclang.o)
>> ld: 2 duplicate symbols for architecture x86_64
>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>> make[3]: *** [test-bz106632] Error 1
>> make[2]: *** [all] Error 2
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>>
>> This error occurs with fontconfig 2.13.1 but never occurs with fontconfig 2.13.0.
>>
>> Please help me how to fix it!!
>>
>>
>> Best Regards,
>>
>> // Miya a.k.a. Tougenroushi
>> _______________________________________________
>> Fontconfig mailing list
>> Fontconfig at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/fontconfig
>
>
>
> --
> Akira TAGOH
>
More information about the Fontconfig
mailing list