freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: release 2.12.1 causes fontconfig to fail to build (with 2.11.1 fontc


From: hydra3333
Subject: RE: release 2.12.1 causes fontconfig to fail to build (with 2.11.1 fontconfig builds OK)
Date: Mon, 9 May 2022 14:05:17 +0930

Ah. User error, although it did work with 2.11.1
Adjusted the configure and it works OK with version 2.12.1

>> multiple definition of `get_crc_table';
>> multiple definition of `crc32_z';
>> multiple definition of `crc32_combine64';
>> ...
>
>This looks like
>
>  https://gitlab.freedesktop.org/freetype/freetype/-/issues/1146
>
>    Werner

Sent: Saturday, May 7, 2022 8:18 PM
To: freetype@nongnu.org
Subject: release 2.12.1 causes fontconfig to fail to build (with 2.11.1 
fontconfig builds OK)


Hello. I cross-compile freetype_lib under ubuntu with target win x64, as a part 
of cross-compiling ffmpeg.

Freetype release 2.11.1 cross-compiles OK of itself.
Freetype release 2.12.1 cross-compiles OK of itself.

However ... using exactly the same build script with configure for 2.11.1 and 
2.12.1 and with configure:

./configure 
--with-sysroot="/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32" 
--host=x86_64-w64-mingw32
--prefix=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32
 --disable-shared --enable-static
--build=x86_64-linux-gnu 
--with-zlib=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32
--with-harfbuzz=no ' in '/home/u/Desktop/_working/workdir/x86_64/freetype-2.12.1

with Freetype release 2.11.1 the full build completes successfully.
with Freetype release 2.12.1 the full build aborts during building fontconfig.

So, in it seems that release 2.12.1 has introduced some incompatibility which 
causes other products to fail to build, in this case
fontconfig as one dependency when cross-compiling the ubiquitous ffmpeg 
video/audo manipulation tool.

Relevant area of log appears below when buildingg fontconfig: 

/bin/bash ../libtool  --tag=CC   --mode=link x86_64-w64-mingw32-gcc  -O3  
-fstack-protector-all  -D_FORTIFY_SOURCE=2   -version-info
13:0:12 -no-undefined -export-symbols fontconfig.def -O3  -fstack-protector-all 
 -D_FORTIFY_SOURCE=2   -o libfontconfig.la -rpath
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib
 fcatomic.lo fccache.lo fccfg.lo fccharset.lo
fccompat.lo fcdbg.lo fcdefault.lo fcdir.lo fcformat.lo fcfreetype.lo fcfs.lo 
fcptrlist.lo fchash.lo fcinit.lo fclang.lo fclist.lo
fcmatch.lo fcmatrix.lo fcname.lo fcobjs.lo fcpat.lo fcrange.lo fcserialize.lo 
fcstat.lo fcstr.lo fcweight.lo fcxml.lo ftglue.lo
-L/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib
 -lfreetype -lbz2 -lpng16 -lz
-L/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib
 -lxml2 -lz -llzma -liconv -lws2_32   
libtool: link: x86_64-w64-mingw32-ar cr .libs/libfontconfig.a  fcatomic.o 
fccache.o fccfg.o fccharset.o fccompat.o fcdbg.o
fcdefault.o fcdir.o fcformat.o fcfreetype.o fcfs.o fcptrlist.o fchash.o 
fcinit.o fclang.o fclist.o fcmatch.o fcmatrix.o fcname.o
fcobjs.o fcpat.o fcrange.o fcserialize.o fcstat.o fcstr.o fcweight.o fcxml.o 
ftglue.o
libtool: link: x86_64-w64-mingw32-ranlib .libs/libfontconfig.a
libtool: link: ( cd ".libs" && rm -f "libfontconfig.la" && ln -s 
"../libfontconfig.la" "libfontconfig.la" )
make[3]: Leaving directory 
'/home/u/Desktop/_working/workdir/x86_64/fontconfig_git/src'
make[2]: Leaving directory 
'/home/u/Desktop/_working/workdir/x86_64/fontconfig_git/src'
Making all in fc-cache
make[2]: Entering directory 
'/home/u/Desktop/_working/workdir/x86_64/fontconfig_git/fc-cache'
x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../src -Wall 
-Wpointer-arith -Wstrict-prototypes        -Wmissing-prototypes
-Wmissing-declarations  -Wnested-externs -fno-strict-aliasing -O3  
-fstack-protector-all  -D_FORTIFY_SOURCE=2
-I/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/include
  -O3  -fstack-protector-all
-D_FORTIFY_SOURCE=2   -MT fc-cache.o -MD -MP -MF .deps/fc-cache.Tpo -c -o 
fc-cache.o fc-cache.c
\
{ \
        if test "x" = x -o "x" = x; then :; else \
                for x in \
                        -decl-list.txt \
                        -decl.txt \
                        tmpl/-unused.sgml \
                        "tmpl/*.bak" \
                        xml html \
                ; do echo /$x; done; \
        fi; \
        if test "x" = x -o "x" = x; then :; else \
                for lc in ; do \
                        for x in \
                                 \
                                 \
                                 \
                        ; do echo /$lc/$x; done; \
                done; \
                for x in \
                         \
                         \
                         \
                         \
                         \
                        "*/.xml2po.mo" \
                        "*/*.omf.out" \
                ; do echo /$x; done; \
        fi; \
        if test "x" = x -o "x" = x; then :; else \
                for lc in ; do \
                        for x in \
                                 \
                                "$lc.stamp" \
                                "$lc.mo" \
                        ; do echo /$lc/$x; done; \
                done; \
        fi; \
        if test "x" = x; then :; else \
                for x in \
                         \
                         \
                ; do echo /$x; done; \
        fi; \
        if test -f ./po/Makefile.in.in; then \
                for x in \
                        po/Makefile.in.in \
                        po/Makefile.in \
                        po/Makefile \
                        po/Makevars.template \
                        po/POTFILES \
                        po/Rules-quot \
                        po/stamp-it \
                        po/stamp-po \
                        po/.intltool-merge-cache \
                        "po/*~" \
                        "po/*.header" \
                        "po/*.gmo" \
                        "po/*.mo" \
                        "po/*.sed" \
                        "po/*.sin" \
                        po/fontconfig.pot \
                        intltool-extract.in \
                        intltool-merge.in \
                        intltool-update.in \
                ; do echo /$x; done; \
        fi; \
        if test  -f ./po-conf/Makefile.in.in; then \
                for x in \
                        po-conf/Makefile.in.in \
                        po-conf/Makefile.in \
                        po-conf/Makefile \
                        po-conf/Makevars.template \
                        po-conf/POTFILES \
                        po-conf/Rules-quot \
                        po-conf/stamp-it \
                        po-conf/stamp-po \
                        "po-conf/*~" \
                        "po-conf/*.header" \
                        "po-conf/*.gmo" \
                        "po-conf/*.mo" \
                        "po-conf/*.sed" \
                        "po-conf/*.sin" \
                        po-conf/fontconfig-conf.pot \
                ; do echo /$x; done; \
        fi; \
        if test -f ./configure; then \
                for x in \
                        autom4te.cache \
                        configure \
                        config.h \
                        stamp-h1 \
                        libtool \
                        config.lt \
                        config.rpath \
                ; do echo /$x; done; \
        fi; \
        if test "x" = x; then :; else \
                for x in \
                         \
                ; do echo /$x.sum; echo /$x.log; done; \
                echo /site.exp; \
        fi; \
        for x in \
                .gitignore \
                 \
                 \
                fc-cache.exe   \
                   \
                   \
                so_locations \
                .libs _libs \
                 \
                "*.o" \
                "*.lo" \
                 \
                 \
                 \
                TAGS ID GTAGS GRTAGS GSYMS GPATH tags \
                "*.tab.c" \
                 \
                 \
                .deps \
                Makefile \
                Makefile.in \
                "*.orig" \
                "*.rej" \
                "*.bak" \
                "*~" \
                ".*.sw[nop]" \
                ".dirstamp" \
        ; do echo /$x; done; \
} | \
sed "s@^/`echo "." | sed 's/\(.\)/[\1]/g'`/@/@" | \
sed 's@/[.]/@/@g' | \
LC_ALL=C sort | uniq > .gitignore.tmp && \
mv .gitignore.tmp .gitignore;
mv -f .deps/fc-cache.Tpo .deps/fc-cache.Po
/bin/bash ../libtool  --tag=CC   --mode=link x86_64-w64-mingw32-gcc  -O3  
-fstack-protector-all  -D_FORTIFY_SOURCE=2    -O3
-fstack-protector-all  -D_FORTIFY_SOURCE=2   -o fc-cache.exe fc-cache.o 
../src/libfontconfig.la 
libtool: link: x86_64-w64-mingw32-gcc -O3 -fstack-protector-all 
-D_FORTIFY_SOURCE=2 -O3 -fstack-protector-all -D_FORTIFY_SOURCE=2 -o
fc-cache.exe fc-cache.o  ../src/.libs/libfontconfig.a
-L/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a
 -L=/x86_64-w64-mingw32/lib
-lpthread -lbz2 -lpng16 
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libxml2.a
 -lz
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/liblzma.a
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libiconv.a
 -lws2_32 -pthread
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d: 
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(crc32.obj):crc32.c:(.text+0x0):
multiple definition of `get_crc_table';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x2d90)
: first defined here
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d: 
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(crc32.obj):crc32.c:(.text+0x40):
multiple definition of `crc32_z';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x2dd0)
: first defined here
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d: 
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(crc32.obj):crc32.c:(.text+0xaa0):
multiple definition of `crc32_combine64';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5ab0)
: first defined here
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d: 
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(crc32.obj):crc32.c:(.text+0xb90):
multiple definition of `crc32_combine';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5ba0)
: first defined here
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d: 
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(crc32.obj):crc32.c:(.text+0xc80):
multiple definition of `crc32_combine_gen64';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5c90)
: first defined here
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d: 
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(crc32.obj):crc32.c:(.text+0xd30):
multiple definition of `crc32_combine_gen';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5d40)
: first defined here
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d: 
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(crc32.obj):crc32.c:(.text+0xde0):
multiple definition of `crc32_combine_op';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5df0)
: first defined here
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d: 
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(inflate.obj):inflate.c:(.text+0x150):
multiple definition of `inflateResetKeep';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1980)
: first defined here
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d: 
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(inflate.obj):inflate.c:(.text+0x730):
multiple definition of `inflateInit_';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1ab0)
: first defined here
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d:
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(inflate.obj):inflate.c:(.text+0x30f0):
multiple definition of `inflateSyncPoint';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1bf0)
: first defined here
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d:
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(inflate.obj):inflate.c:(.text+0x3480):
multiple definition of `inflateUndermine';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1c90)
: first defined here
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/l
d:
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libz.a(inflate.obj):inflate.c:(.text+0x3510):
multiple definition of `inflateValidate';
/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1d20)
: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:524: fc-cache.exe] Error 1
make[2]: Leaving directory 
'/home/u/Desktop/_working/workdir/x86_64/fontconfig_git/fc-cache'
make[1]: *** [Makefile:625: all-recursive] Error 1
make[1]: Leaving directory 
'/home/u/Desktop/_working/workdir/x86_64/fontconfig_git'
make: *** [Makefile:511: all] Error 2
[01:08:33][ERROR] Error [2] running process: 'make -j 6 ' in 
'/home/u/Desktop/_working/workdir/x86_64/fontconfig_git'
[01:08:33][ERROR] You can try deleting the product/dependency folder: 
'/home/u/Desktop/_working/workdir/x86_64/fontconfig_git' and
re-run the script

<<attachment: winmail.dat>>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]