Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

building ff-41.0.2 with freetype-2.6.1

68 views
Skip to first unread message

tjoen@invalid

unread,
Oct 19, 2015, 8:46:01 AM10/19/15
to
x32 LFS-like
binutils-2.25.1
gcc-5.2.0
firefox-41.0.2
freetype-2.6.1 always ending with:
mozilla-release/gfx/skia/trunk/src/ports/SkFontHost_FreeType.cpp:560:
undefined reference to `FT_Get_Font_Format'
/usr/bin/ld: libxul.so: hidden symbol `FT_Get_Font_Format' isn't defined
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

patch:
--- mozilla-release.orig/gfx/skia/trunk/src/ports
/SkFontHost_FreeType.cpp
+++ mozilla-release/gfx/skia/trunk/src/ports/SkFontHost_FreeType.cpp
..
- const char* fontType = FT_Get_X11_Font_Format(face);
+ const char* fontType = FT_Get_Font_Format(face);
..

I have updated to versions above and recompiled freetype too.
Same error.

cat > mozconfig <<EOF
ac_add_options --prefix=/usr
ac_add_options --with-pthreads
ac_add_options --with-system-nspr
ac_add_options --with-system-libevent
ac_add_options --with-system-nss
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
ac_add_options --with-system-png
ac_add_options --enable-system-hunspell
ac_add_options --enable-system-ffi
ac_add_options --enable-application=browser
ac_add_options --with-system-libvpx
aac_add_options --disable-updater
ac_add_options --disable-tests
ac_add_options --enable-system-sqlite
ac_add_options --enable-system-cairo
ac_add_options --enable-system-pixman
ac_add_options --with-system-icu
ac_add_options --disable-installer
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir
EOF

In Google found more "hidden symbol" messages but only for older
compilers and binutils.

tjoen@invalid

unread,
Oct 20, 2015, 4:37:37 AM10/20/15
to
On 19-10-15 14:45, tjoen@invalid wrote:
> x32 LFS-like
> binutils-2.25.1
> gcc-5.2.0
> firefox-41.0.2
> freetype-2.6.1 always ending with:
> mozilla-release/gfx/skia/trunk/src/ports/SkFontHost_FreeType.cpp:560:
> undefined reference to `FT_Get_Font_Format'
> /usr/bin/ld: libxul.so: hidden symbol `FT_Get_Font_Format' isn't defined
> /usr/bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status

Forgotten to mention that it was linking libxul.so

> patch:
> --- mozilla-release.orig/gfx/skia/trunk/src/ports
> /SkFontHost_FreeType.cpp
> +++ mozilla-release/gfx/skia/trunk/src/ports/SkFontHost_FreeType.cpp
> ..
> - const char* fontType = FT_Get_X11_Font_Format(face);
> + const char* fontType = FT_Get_Font_Format(face);
> ..

Freetype-2.5.5 (built with older gcc and binutils) succeeds.
Problem freetype-2.6 I guess
0 new messages