Bruce Dubbs wrote:
I've got a problem building firefox on a new system. On my normal
development system it builds fine, but using the same procedures on a
brand new build gives:
/usr/src/firefox/firefox/mozilla-release/gfx/skia/trunk/src/ports/SkFontHost_FreeType.cpp:560:
undefined reference to `FT_Get_X11_Font_Format'
collect2: error: ld returned 1 exit status
/usr/src/firefox/firefox/mozilla-release/config/rules.mk:812: recipe for
target 'libxul.so' failed
I tried an earlier version of FF (39.0) and got the same error.
I checked the freetype library and got:
$ nm libfreetype.so |grep FT_Get_X11_Font_Format
000000000001e150 T FT_Get_X11_Font_Format
000000000001e150 t FT_Get_X11_Font_Format.localalias.0
So the reference is there. One difference is that the development
system (the one that works) has libfreetype.so.6.12.0 and the new system
has libfreetype.so.6.12.1
Found a workaround. A post on gentoo suggested backing off to freetype
2.5.5. That allowed FF to build and run.
In looking at the libraries:
$ nm libfreetype.so.6.11.4|grep FT_Get_X11_Font_Format
00000000000223f0 T FT_Get_X11_Font_Format
$ nm libfreetype.so.6.12.0|grep FT_Get_X11_Font_Format
000000000001d080 T FT_Get_X11_Font_Format
000000000001d080 t FT_Get_X11_Font_Format.localalias.0
$ nm libfreetype.so.6.12.1|grep FT_Get_X11_Font_Format
000000000001e150 T FT_Get_X11_Font_Format
000000000001e150 t FT_Get_X11_Font_Format.localalias.0
The curious thing is that FF did build OK with libfreetype.so.6.12.0 on
my development system. One thing I noticed was the link stage used a
list of INPUT lines. On seamonkey, there were 1331 inputs! I wonder if
there is a memory issue. The development system has 16G, but the other
system has 8G. You would think that it would use swap though if that
was an issue. I have 10G of swap and top showed no use.
In any case the localalias.0 part above is suspicious. I'm not familiar
with the internals though to understand why the more recent versions did
not work.
I note that /usr/lib/firefox-41.0.2/libxul.so is 53 MB, stripped.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page