Fernando de Oliveira wrote:
> Em 28-11-2013 23:16, John Burrell escreveu:
>> I get these 'undefined reference' messages:
>>
>> ../../gfx/thebes/gfxFT2Utils.o: In function 
>> `gfxFT2LockedFace::GetMetrics(gfxFont::Metrics*, unsigned int*)':
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/thebes/gfxFT2Utils.cpp:104: 
>> undefined reference to `FT_Get_Sfnt_Table'
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/thebes/gfxFT2Utils.cpp:201: 
>> undefined reference to `FT_Get_Sfnt_Table'
>> ../../gfx/thebes/gfxPangoFonts.o: In function 
>> `gfxSystemFcFontEntry::CopyFontTable(unsigned int, FallibleTArray<unsigned 
>> char>&)':
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/thebes/gfxPangoFonts.cpp:252: 
>> undefined reference to `FT_Load_Sfnt_Table'
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/thebes/gfxPangoFonts.cpp:258: 
>> undefined reference to `FT_Load_Sfnt_Table'
>> ../../gfx/skia/SkFontHost_FreeType_common.o: In function 
>> `SkScalerContext_FreeType_Base::emboldenOutline(FT_FaceRec_*, FT_Outline_*)':
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/skia/src/ports/SkFontHost_FreeType_common.cpp:326:
>>  undefined reference to `FT_Outline_Embolden'
>> ../../gfx/skia/SkFontHost_FreeType_common.o: In function 
>> `SkScalerContext_FreeType_Base::generateGlyphPath(FT_FaceRec_*, SkPath*)':
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/skia/src/ports/SkFontHost_FreeType_common.cpp:311:
>>  undefined reference to `FT_Outline_Decompose'
>> ../../gfx/skia/SkFontHost_FreeType_common.o: In function 
>> `SkScalerContext_FreeType_Base::generateGlyphImage(FT_FaceRec_*, SkGlyph 
>> const&)':
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/skia/src/ports/SkFontHost_FreeType_common.cpp:143:
>>  undefined reference to `FT_Outline_Get_CBox'
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/skia/src/ports/SkFontHost_FreeType_common.cpp:153:
>>  undefined reference to `FT_Outline_Translate'
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/skia/src/ports/SkFontHost_FreeType_common.cpp:156:
>>  undefined reference to `FT_Render_Glyph'
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/skia/src/ports/SkFontHost_FreeType_common.cpp:174:
>>  undefined reference to `FT_Outline_Get_Bitmap'
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/skia/src/ports/SkFontHost_FreeType_common.cpp:180:
>>  undefined reference to `FT_GlyphSlot_Own_Bitmap'
>> /usr/src/xlibs/xulrunner/mozilla-release/gfx/skia/src/ports/SkFontHost_FreeType_common.cpp:181:
>>  undefined reference to `FT_Bitmap_Embolden'
>>
>> and then these fatal messages:
>>
>> /bin/ld: libxul.so: hidden symbol `FT_Outline_Get_Bitmap' isn't defined
>> /bin/ld: final link failed: Bad value
>> collect2: error: ld returned 1 exit status
>> /usr/src/xlibs/xulrunner/mozilla-release/config/rules.mk:1035: recipe for 
>> target 'libxul.so' failed
>> make[5]: *** [libxul.so] Error 1
>> make[5]: Leaving directory 
>> '/usr/src/xlibs/xulrunner/mozilla-release/xulrunner-build-dir/toolkit/library'
>> /usr/src/xlibs/xulrunner/mozilla-release/config/makefiles/target_libs.mk:16: 
>> recipe for target 'libs_tier_platform' failed
>> make[4]: *** [libs_tier_platform] Error 2
>> make[4]: Leaving directory 
>> '/usr/src/xlibs/xulrunner/mozilla-release/xulrunner-build-dir'
>> /usr/src/xlibs/xulrunner/mozilla-release/config/rules.mk:749: recipe for 
>> target 'tier_platform' failed
>> make[3]: *** [tier_platform] Error 2
>> make[3]: Leaving directory 
>> '/usr/src/xlibs/xulrunner/mozilla-release/xulrunner-build-dir'
>> /usr/src/xlibs/xulrunner/mozilla-release/config/rules.mk:682: recipe for 
>> target 'default' failed
>> make[2]: *** [default] Error 2
>> make[2]: Leaving directory 
>> '/usr/src/xlibs/xulrunner/mozilla-release/xulrunner-build-dir'
>> /usr/src/xlibs/xulrunner/mozilla-release/client.mk:372: recipe for target 
>> 'realbuild' failed
>> make[1]: *** [realbuild] Error 2
>> make[1]: Leaving directory '/usr/src/xlibs/xulrunner/mozilla-release'
>> client.mk:172: recipe for target 'build' failed
>> make: *** [build] Error 2
>>
>> Do you think xulrunner failed to find the freetype headers? I have a symlink 
>> in place which is /usr/include/freetype -> freetype2
>>
>> I'm afraid googling didn't throw up anything useful.
>>
>> I'll try the standalone Firefox but I'm assuming that'll fail as well.
>>
>> jb.                                  
>>
>
> Confirmed.
>
> We have other issue reported by Chris at
>
> http://wiki.linuxfromscratch.org/blfs/ticket/4383
>
> "libXft fails to build with current Freetype2". Version is libXft-2.3.1.
>
> Have tried to fix libXft with "-I /path/to/include" as suggested by
> Bruce, but did not work, perhaps I did not do it properly. But I have
> modified freetype with a symlink, instead of using the patch given by
> Chris and that fixed libXft.
>
> However, I am investigating this other issue with xulrunner, that I
> could not yet fix. It is unfortunate, it occurs at the end, when linking
> libxul, so it will take some time.
>
> There are two alternatives for the symlink that worked fine for libXft.
>
> {{{
> ln -sv -fn ../freetype2 /usr/include/freetype2/freetype
> }}}
>
> or
>
> {{{
> cd /usr/include/freetype2/
> ln -s . freetype
> }}}
>
> Still need to investigate a second symlink, just for the file that has
> moved elsewhere: ft2build.h.
>
> DEST-freetype-2.4.10/usr/include/ft2build.h
> DEST-freetype-2.5.1.0/usr/include/freetype2/ft2build.h
>
> If the xulrunner build I am trying at the moment fails, I will try:
>
> ln -sv freetype2/ft2build.h /usr/include/ft2build.h.
>
> and start the build again (after checking that previous one does not
> complete with a simple make)
>
> If the problem persists and nobody comes with a solution, we will need
> to discuss reverting to older freetype (have never done a svn revert, if
> it exists).

Looking in my existing system, I have /usr/include/ft2build.h so that 
should be found automatically.  It, in turn, merely does:

#include <freetype/config/ftheader.h>

So the first question whether the old /usr/include/ft2build.h has been 
removed.  Is there another ft2build.h somewhere?  If so, then I suspect 
that directory should be identified with an -I directive to gcc.

   -- Bruce


   -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to