broken /usr/ports/www/mozilla on -STABLE

Joe Marcus Clarke marcus at marcuscom.com
Tue Jul 1 14:31:48 PDT 2003


On Tue, 2003-07-01 at 19:53, darkmark wrote:
> My build always fails with this last step linking mozilla (it hangs for
> _hours_ on this last step before failing (1ghz + 1gig machine)):
> 
> o NO WITHOUT* make macros were defined (so this is building ldap).
> o /usr/X11R6/lib/libXft.* exists and seems to be working
> o I noticed that mozilla tries to use it's own versions of re_comp and
> re_exec on BSD systems, instead of using the libcompat versions.  The link
> order is somehow wrong for this.

I just completed a successful build on -CURRENT with all options
enabled.  I'll do a build on -STABLE tonight.  Off the top of my head,
it looks like the -lXft argument is missing from the linker line.  What
version of X and Xft do you have installed?

Joe

> 
> /usr/bin/perl5 ../../config/mklinkscript.pl -o ldscript mozilla-bin.order
> c++ -o mozilla-bin -I/usr/X11R6/include  -I/usr/X11R6/include -fno-rtti
> -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align
> -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -O
> -pipe -march=pentiumpro -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O
> -DWIDGET_DLL=\"libwidget_gtk.so\" -DGFXWIN_DLL=\"libgfx_gtk.so\"
> -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12
> -I/usr/local/include -I/usr/X11R6/include  nsAppRunner.o nsWindowCreator.o
> showOSAlert.o nsSigHandlers.o nsStackFrameUnix.o nsStaticComponents.o
> nsNativeAppSupportGtk.o nsNativeAppSupportBase.o    -Wl,-T,ldscript
> -L../../dist/bin -L../../dist/lib -L../../dist/lib/components
> -lxpcom_compat_c -lxpconnect -luconv -lucvmath -li18n -loji -lipcdc
> -lnecko -lnecko2 -lpref -lcaps -lchrome -lrdf -lhtmlpars -lgfxps
> -lgfxxprint -lgfx_gtk -limgmng -limglib2 -lgkplugin -ljsdom -lwidget_gtk
> -lxremote_client -lgklayout -lmork -ldocshell -lprofile -lnsprefm
> -lembedcomponents -lwebbrwsr -leditor -ltxmgr -lcomposer -laccessibility
> -lmozldap -lnsappshell -lfileview -lmozfind -lxremoteservice -lappcomps
> -lcookie -lwallet -lwalletviewers -lxmlextras -lp3p -lautoconfig
> -ltransformiix -luniversalchardet -ltypeaheadfind -lwebsrvcs -lxmlterm
> -lpipboot -lpipnss -lpippki -lmailnews -lmsgdb -lmsgnews -llocalmail
> -lmimeemitter -lvcard -lmime -lmsgcompose -lmsgimap -laddrbook -limport
> -limpText -limpComm4xMail -lmsgmdn -lmailview -lbayesflt -lmsgsmime
> -lunicharutil_s -lucvutil_s -ljsj -lgtksuperwin -lgtkxtbin -lipcdutil_s
> -lipcdshared_s -lipcdlock_s -ltransmngrcom_s -ltransmngr_s -lgfxshared_s
> -lgfxft2_s -lxlibrgb -lxprintutil -lgkgfx -lmsgbaseutil -lmimecthglue_s
> -L../../dist/lib/components -L/usr/local/lib -lpng  -L/usr/local/lib -lmng
> -L/usr/local/lib -ljpeg  -lz   -L../../dist/bin -L../../dist/lib
> ../../dist/lib/libcrmf.a -lsmime3 -lssl3 -lnss3 -lsoftokn3
> -L../../dist/bin -L../../dist/lib -lldap50 -llber50 -lprldap50
> -lmoz_art_lgpl -lm -lXinerama -L/usr/X11R6/lib -lXt -L/usr/X11R6/lib -lXp
> -lXext -lX11 -L../../dist/lib -lxpcom_compat -L../../dist/bin -lxpcom
> -L../../dist/bin -lmozjs -L/usr/ports/www/mozilla/work/mozilla/dist/lib
> -lplds4 -lplc4 -lnspr4 -pthread   -L/usr/X11R6/lib -L/usr/X11R6/lib
> -lgtk12 -lgdk12 -L/usr/local/lib -Wl,-E -lgmodule12 -lglib12 -lintl -lXi
> -lXext -lX11 -lm -lm
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::~nsFontMetricsXft(void)':
> nsFontMetricsXft.o(.text._$_16nsFontMetricsXft+0x61): undefined reference
> to `FcPatternDestroy'
> nsFontMetricsXft.o(.text._$_16nsFontMetricsXft+0xe9): undefined reference
> to `XftFontClose'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::GetWidth(char const *, unsigned int, int &,
> nsRenderingContextGTK *)':
> nsFontMetricsXft.o(.text.GetWidth__16nsFontMetricsXftPCcUiRiP21nsRenderingContextGTK+0x34):
> undefined reference to `XftTextExtents8'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::DrawString(char const *, unsigned int, int, int, int
> const *, nsRenderingContextGTK *, nsDrawingSurfaceGTK *)':
> nsFontMetricsXft.o(.text.DrawString__16nsFontMetricsXftPCcUiiiPCiP21nsRenderingContextGTKP19nsDrawingSurfaceGTK+0xf6):
> undefined reference to `XftDrawGlyphFontSpec'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::DrawString(unsigned short const *, unsigned int, int,
> int, int, int const *, nsRenderingContextGTK *, nsDrawingSurfaceGTK *)':
> nsFontMetricsXft.o(.text.DrawString__16nsFontMetricsXftPCUsUiiiiPCiP21nsRenderingContextGTKP19nsDrawingSurfaceGTK+0xf6):
> undefined reference to `XftDrawGlyphFontSpec'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::CacheFontMetrics(void)':
> nsFontMetricsXft.o(.text.CacheFontMetrics__16nsFontMetricsXft+0x43):
> undefined reference to `XftLockFace'
> nsFontMetricsXft.o(.text.CacheFontMetrics__16nsFontMetricsXft+0x51):
> undefined reference to `FT_Get_Sfnt_Table'
> nsFontMetricsXft.o(.text.CacheFontMetrics__16nsFontMetricsXft+0x70):
> undefined reference to `FcPatternGetInteger'
> nsFontMetricsXft.o(.text.CacheFontMetrics__16nsFontMetricsXft+0x287):
> undefined reference to `FcCharSetHasChar'
> nsFontMetricsXft.o(.text.CacheFontMetrics__16nsFontMetricsXft+0x2a7):
> undefined reference to `XftTextExtents16'
> nsFontMetricsXft.o(.text.CacheFontMetrics__16nsFontMetricsXft+0x91d):
> undefined reference to `XftUnlockFace'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::FindFont(unsigned short)':
> nsFontMetricsXft.o(.text.FindFont__16nsFontMetricsXftUs+0xbd): undefined
> reference to `FcCharSetHasChar'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::SetupFCPattern(void)':
> nsFontMetricsXft.o(.text.SetupFCPattern__16nsFontMetricsXft+0x16c):
> undefined reference to `FcPatternCreate'
> nsFontMetricsXft.o(.text.SetupFCPattern__16nsFontMetricsXft+0x5df):
> undefined reference to `FcPatternAddInteger'
> nsFontMetricsXft.o(.text.SetupFCPattern__16nsFontMetricsXft+0x60a):
> undefined reference to `FcPatternAddInteger'
> nsFontMetricsXft.o(.text.SetupFCPattern__16nsFontMetricsXft+0x638):
> undefined reference to `FcPatternAddInteger'
> nsFontMetricsXft.o(.text.SetupFCPattern__16nsFontMetricsXft+0x651):
> undefined reference to `FcConfigSubstitute'
> nsFontMetricsXft.o(.text.SetupFCPattern__16nsFontMetricsXft+0x671):
> undefined reference to `XftDefaultSubstitute'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::DoMatch(void)':
> nsFontMetricsXft.o(.text.DoMatch__16nsFontMetricsXft+0x23): undefined
> reference to `FcFontSort'
> nsFontMetricsXft.o(.text.DoMatch__16nsFontMetricsXft+0x3a): undefined
> reference to `FcCharSetDestroy'
> nsFontMetricsXft.o(.text.DoMatch__16nsFontMetricsXft+0x92): undefined
> reference to `FcPatternGetString'
> nsFontMetricsXft.o(.text.DoMatch__16nsFontMetricsXft+0x117): undefined
> reference to `FcFontSetDestroy'
> nsFontMetricsXft.o(.text.DoMatch__16nsFontMetricsXft+0x139): undefined
> reference to `FcFontSetDestroy'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::SetupMiniFont(void)':
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0x3d):
> undefined reference to `FcPatternCreate'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0x63):
> undefined reference to `FcPatternAddString'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0x9e):
> undefined reference to `FcPatternAddInteger'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0xc0):
> undefined reference to `FcPatternAddInteger'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0xd0):
> undefined reference to `FcConfigSubstitute'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0xe7):
> undefined reference to `XftDefaultSubstitute'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0xfd):
> undefined reference to `FcFontSort'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0x118):
> undefined reference to `FcFontRenderPrepare'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0x136):
> undefined reference to `XftFontOpenPattern'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0x18c):
> undefined reference to `XftTextExtents8'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0x25a):
> undefined reference to `FcPatternDestroy'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0x26a):
> undefined reference to `FcPatternDestroy'
> nsFontMetricsXft.o(.text.SetupMiniFont__16nsFontMetricsXft+0x27f):
> undefined reference to `FcFontSetSortDestroy'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::DrawUnknownGlyph(unsigned int, int, int, _XftColor *,
> _XftDraw *)':
> nsFontMetricsXft.o(.text.DrawUnknownGlyph__16nsFontMetricsXftUiiiP9_XftColorP8_XftDraw+0x6a):
> undefined reference to `XftDrawRect'
> nsFontMetricsXft.o(.text.DrawUnknownGlyph__16nsFontMetricsXftUiiiP9_XftColorP8_XftDraw+0x94):
> undefined reference to `XftDrawRect'
> nsFontMetricsXft.o(.text.DrawUnknownGlyph__16nsFontMetricsXftUiiiP9_XftColorP8_XftDraw+0xc2):
> undefined reference to `XftDrawRect'
> nsFontMetricsXft.o(.text.DrawUnknownGlyph__16nsFontMetricsXftUiiiP9_XftColorP8_XftDraw+0xee):
> undefined reference to `XftDrawRect'
> nsFontMetricsXft.o(.text.DrawUnknownGlyph__16nsFontMetricsXftUiiiP9_XftColorP8_XftDraw+0x15d):
> undefined reference to `XftDrawString8'
> nsFontMetricsXft.o(.text.DrawUnknownGlyph__16nsFontMetricsXftUiiiP9_XftColorP8_XftDraw+0x1a4):
> undefined reference to `XftDrawString8'
> nsFontMetricsXft.o(.text.DrawUnknownGlyph__16nsFontMetricsXftUiiiP9_XftColorP8_XftDraw+0x1f8):
> undefined reference to `XftDrawString8'
> nsFontMetricsXft.o(.text.DrawUnknownGlyph__16nsFontMetricsXftUiiiP9_XftColorP8_XftDraw+0x22a):
> undefined reference to `XftDrawString8'
> nsFontMetricsXft.o(.text.DrawUnknownGlyph__16nsFontMetricsXftUiiiP9_XftColorP8_XftDraw+0x26d):
> undefined reference to `XftDrawString8'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o)(.text.DrawUnknownGlyph__16nsFontMetricsXftUiiiP9_XftColorP8_XftDraw+0x2e1):
> more undefined references to `XftDrawString8' follow
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::EnumerateGlyphs(unsigned int *, unsigned int, void
> (*)(unsigned int, nsFontXft *, void *), void *)':
> nsFontMetricsXft.o(.text.EnumerateGlyphs__16nsFontMetricsXftPUiUiPFUiP9nsFontXftPv_vPv+0xa8):
> undefined reference to `FcCharSetHasChar'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::PrepareToDraw(nsRenderingContextGTK *,
> nsDrawingSurfaceGTK *, _XftDraw **, _XftColor &)':
> nsFontMetricsXft.o(.text.PrepareToDraw__16nsFontMetricsXftP21nsRenderingContextGTKP19nsDrawingSurfaceGTKPP8_XftDrawR9_XftColor+0x168):
> undefined reference to `XftDrawSetClip'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::DrawStringCallback(unsigned int, nsFontXft *, void *)':
> nsFontMetricsXft.o(.text.DrawStringCallback__16nsFontMetricsXftUiP9nsFontXftPv+0x13f):
> undefined reference to `XftCharIndex'
> nsFontMetricsXft.o(.text.DrawStringCallback__16nsFontMetricsXftUiP9nsFontXftPv+0x17e):
> undefined reference to `XftGlyphExtents'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontMetricsXft::FamilyExists(nsIDeviceContext *, nsString const &)':
> nsFontMetricsXft.o(.text.FamilyExists__16nsFontMetricsXftP16nsIDeviceContextRC8nsString+0x41):
> undefined reference to `FcPatternCreate'
> nsFontMetricsXft.o(.text.FamilyExists__16nsFontMetricsXftP16nsIDeviceContextRC8nsString+0x8a):
> undefined reference to `FcObjectSetBuild'
> nsFontMetricsXft.o(.text.FamilyExists__16nsFontMetricsXftP16nsIDeviceContextRC8nsString+0xa7):
> undefined reference to `FcFontList'
> nsFontMetricsXft.o(.text.FamilyExists__16nsFontMetricsXftP16nsIDeviceContextRC8nsString+0xf1):
> undefined reference to `FcPatternGetString'
> nsFontMetricsXft.o(.text.FamilyExists__16nsFontMetricsXftP16nsIDeviceContextRC8nsString+0x172):
> undefined reference to `FcFontSetDestroy'
> nsFontMetricsXft.o(.text.FamilyExists__16nsFontMetricsXftP16nsIDeviceContextRC8nsString+0x187):
> undefined reference to `FcObjectSetDestroy'
> nsFontMetricsXft.o(.text.FamilyExists__16nsFontMetricsXftP16nsIDeviceContextRC8nsString+0x196):
> undefined reference to `FcPatternDestroy'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontXft::nsFontXft(_FcPattern *, _FcPattern *)':
> nsFontMetricsXft.o(.text.__9nsFontXftP10_FcPatternT1+0x1c): undefined
> reference to `FcPatternReference'
> nsFontMetricsXft.o(.text.__9nsFontXftP10_FcPatternT1+0x28): undefined
> reference to `FcPatternReference'
> nsFontMetricsXft.o(.text.__9nsFontXftP10_FcPatternT1+0x57): undefined
> reference to `FcPatternGetCharSet'
> nsFontMetricsXft.o(.text.__9nsFontXftP10_FcPatternT1+0x6c): undefined
> reference to `FcCharSetCopy'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontXft::~nsFontXft(void)':
> nsFontMetricsXft.o(.text._$_9nsFontXft+0x1c): undefined reference to
> `XftFontClose'
> nsFontMetricsXft.o(.text._$_9nsFontXft+0x31): undefined reference to
> `FcCharSetDestroy'
> nsFontMetricsXft.o(.text._$_9nsFontXft+0x46): undefined reference to
> `FcPatternDestroy'
> nsFontMetricsXft.o(.text._$_9nsFontXft+0x5b): undefined reference to
> `FcPatternDestroy'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontXft::GetXftFont(void)':
> nsFontMetricsXft.o(.text.GetXftFont__9nsFontXft+0x24): undefined reference
> to `FcFontRenderPrepare'
> nsFontMetricsXft.o(.text.GetXftFont__9nsFontXft+0x39): undefined reference
> to `FcGetVersion'
> nsFontMetricsXft.o(.text.GetXftFont__9nsFontXft+0x4e): undefined reference
> to `FcPatternDel'
> nsFontMetricsXft.o(.text.GetXftFont__9nsFontXft+0x60): undefined reference
> to `XftFontOpenPattern'
> nsFontMetricsXft.o(.text.GetXftFont__9nsFontXft+0x72): undefined reference
> to `FcPatternDestroy'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `nsFontXft::GetWidth32(unsigned int)':
> nsFontMetricsXft.o(.text.GetWidth32__9nsFontXftUi+0x32): undefined
> reference to `XftTextExtents32'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `AddLangGroup(_FcPattern *, nsIAtom *)':
> nsFontMetricsXft.o(.text.AddLangGroup__FP10_FcPatternP7nsIAtom+0x5c):
> undefined reference to `FcPatternAddString'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `AddFFRE(_FcPattern *, nsCString *, int)':
> nsFontMetricsXft.o(.text.AddFFRE__FP10_FcPatternP9nsCStringi+0x5c):
> undefined reference to `FcPatternAddWeak'
> nsFontMetricsXft.o(.text.AddFFRE__FP10_FcPatternP9nsCStringi+0x88):
> undefined reference to `FcPatternAdd'
> ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function
> `EnumFontsXft(nsIAtom *, char const *, unsigned int *, unsigned short
> ***)':
> nsFontMetricsXft.o(.text.EnumFontsXft__FP7nsIAtomPCcPUiPPPUs+0x75):
> undefined reference to `FcPatternCreate'
> nsFontMetricsXft.o(.text.EnumFontsXft__FP7nsIAtomPCcPUiPPPUs+0x97):
> undefined reference to `FcObjectSetBuild'
> nsFontMetricsXft.o(.text.EnumFontsXft__FP7nsIAtomPCcPUiPPPUs+0xd7):
> undefined reference to `FcFontList'
> nsFontMetricsXft.o(.text.EnumFontsXft__FP7nsIAtomPCcPUiPPPUs+0x378):
> undefined reference to `FcPatternGetString'
> nsFontMetricsXft.o(.text.EnumFontsXft__FP7nsIAtomPCcPUiPPPUs+0x4cc):
> undefined reference to `FcPatternDestroy'
> nsFontMetricsXft.o(.text.EnumFontsXft__FP7nsIAtomPCcPUiPPPUs+0x4e7):
> undefined reference to `FcObjectSetDestroy'
> nsFontMetricsXft.o(.text.EnumFontsXft__FP7nsIAtomPCcPUiPPPUs+0x502):
> undefined reference to `FcFontSetDestroy'
> ../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function
> `nsDrawingSurfaceGTK::~nsDrawingSurfaceGTK(void)':
> nsDrawingSurfaceGTK.o(.text._$_19nsDrawingSurfaceGTK+0x5d): undefined
> reference to `XftDrawDestroy'
> ../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function
> `nsDrawingSurfaceGTK::GetXftDraw(void)':
> nsDrawingSurfaceGTK.o(.text.GetXftDraw__19nsDrawingSurfaceGTK+0x30):
> undefined reference to `XftDrawCreate'
> ../../dist/bin/libldap50.so: undefined reference to `re_comp'
> ../../dist/bin/libldap50.so: undefined reference to `re_exec'
> gmake[2]: *** [mozilla-bin] Error 1
> gmake[2]: Leaving directory
> `/usr/ports/www/mozilla/work/mozilla/xpfe/bootstrap'
> gmake[1]: *** [tier_99] Error 2
> gmake[1]: Leaving directory `/usr/ports/www/mozilla/work/mozilla'
> gmake: *** [default] Error 2
> *** Error code 2
> 
> Stop in /usr/ports/www/mozilla.
> 
> 
> --
> Mark Atkinson
> darkmark at filament.org
> (!wired)?(coffee++):(wired);
> 
> _______________________________________________
> freebsd-gnome at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
> To unsubscribe, send any mail to "freebsd-gnome-unsubscribe at freebsd.org"
-- 
PGP Key : http://www.marcuscom.com/pgp.asc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20030701/8402347a/attachment.bin


More information about the freebsd-gnome mailing list