building any mozilla-based browser fails
Nikolas Britton
freebsd at nbritton.org
Mon Nov 22 16:55:21 PST 2004
Chip wrote:
> I used to have Firefox installed, then tried to run portupgrade, and
> it failed. I then did a make deinstall and make reinstall now I get a
> failed install. Also tried to install mozilla and netscape, both also
> fail. Below is the last bit from the firefox install. BTW, I sent this
> ( a couple days ago) to the port maintainer as well, for all 3
> browsers. Haven't received a response yet.
> --
> Chip
>
> ===========================
> /usr/ports/www/firefox/work/mozilla/config/nsinstall -R -m 644
> libxprintutil.a ../../../dist/lib
> gmake[4]: Leaving directory
> `/usr/ports/www/firefox/work/mozilla/gfx/src/xprintutil'
> gmake[4]: Entering directory
> `/usr/ports/www/firefox/work/mozilla/gfx/src/xprint'
> /usr/ports/www/firefox/work/mozilla/config/nsinstall -R -m 755
> libgfxxprint.so ../../../dist/gre/components
> : ../../../dist/gre/components/libgfxxprint.so
> /usr/ports/www/firefox/work/mozilla/config/nsinstall -R -m 755
> libgfxxprint.so ../../../dist/lib/components
> : ../../../dist/lib/components/libgfxxprint.so
> /usr/ports/www/firefox/work/mozilla/config/nsinstall -R -m 755
> libgfxxprint.so ../../../dist/bin/components
> : ../../../dist/bin/components/libgfxxprint.so
> gmake[4]: Leaving directory
> `/usr/ports/www/firefox/work/mozilla/gfx/src/xprint'
> gmake[4]: Entering directory
> `/usr/ports/www/firefox/work/mozilla/gfx/src/gtk'
> nsDeviceContextGTK.cpp
> c++ -o nsDeviceContextGTK.o -c -DNATIVE_THEME_SUPPORT
> -DOSTYPE=\"FreeBSD5.2\" -DOSARCH=\"FreeBSD\" -DUSE_POSTSCRIPT
> -DUSE_XPRINT -DUSE_MOZILLA_TYPES -I../.. -I./. -I./.. -I./../shared
> -I./../freetype -I./../x11shared -I/usr/X11R6/include
> -I/usr/local/include/freetype2 -I/usr/local/include
> -I../../../dist/include/xpcom -I../../../dist/include/string
> -I../../../dist/include/widget -I../../../dist/include/view
> -I../../../dist/include/util -I../../../dist/include/pref
> -I../../../dist/include/uconv -I../../../dist/include/unicharutil
> -I../../../dist/include/locale -I../../../dist/include/necko
> -I../../../dist/include/content -I../../../dist/include/dom
> -I../../../dist/include/layout -I../../../dist/include/imglib2
> -I../../../dist/include/xprintutil -I../../../dist/include/gfx
> -I../../../dist/include
> -I/usr/ports/www/firefox/work/mozilla/dist/include/nspr
> -I/usr/local/include -I/usr/local/include
> -I/usr/local/include/freetype2 -I/usr/local/include
> -I/usr/X11R6/include -fPIC -I/usr/X11R6/include -I/usr/local/include
> -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-non-virtual-dtor -Wno-long-long -O
> -pipe -mcpu=pentiumpro -O2 -D_THREAD_SAFE -fshort-wchar -pipe -DDEBUG
> -D_DEBUG -DDEBUG_root -DTRACING -g -I/usr/local/include/atk-1.0
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
> -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include
> -I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0
> -I/usr/local/include/freetype2 -I/usr/local/include
> -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include
> -I/usr/X11R6/include -DMOZILLA_CLIENT -include
> ../../../mozilla-config.h nsDeviceContextGTK.cpp
> In file included from /usr/X11R6/include/X11/Xft/Xft.h:41,
> from nsDeviceContextGTK.cpp:78:
> /usr/local/include/freetype2/freetype/freetype.h:20:2: #error
> "`ft2build.h' hasn't been included yet!"
> /usr/local/include/freetype2/freetype/freetype.h:21:2: #error "Please
> always use macros to include FreeType header files."
> /usr/local/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
> /usr/local/include/freetype2/freetype/freetype.h:23:2: #error "
> #include <ft2build.h>"
> /usr/local/include/freetype2/freetype/freetype.h:24:2: #error "
> #include FT_FREETYPE_H"
> nsDeviceContextGTK.cpp: In function `void
> xlfd_from_pango_font_description(GtkWidget*, const PangoFontDescription*,
> nsString&)':
> nsDeviceContextGTK.cpp:1115: warning: unused variable `char*tmp'
> gmake[4]: *** [nsDeviceContextGTK.o] Error 1
> gmake[4]: Leaving directory
> `/usr/ports/www/firefox/work/mozilla/gfx/src/gtk'
> gmake[3]: *** [libs] Error 2
> gmake[3]: Leaving directory `/usr/ports/www/firefox/work/mozilla/gfx/src'
> gmake[2]: *** [libs] Error 2
> gmake[2]: Leaving directory `/usr/ports/www/firefox/work/mozilla/gfx'
> gmake[1]: *** [tier_9] Error 2
> gmake[1]: Leaving directory `/usr/ports/www/firefox/work/mozilla'
> gmake: *** [default] Error 2
> *** Error code 2
>
> Stop in /usr/ports/www/firefox.
> chip3#
>
looks like freetype2 is broke, deinstall and rebuild/install it and see
what happens. Have you ever ran "portupgrade -arR"? if you haven't then
your dependencies are not being updated, so run that first and I bet it
will fix all your problems.
Do this:
0: cvsup if you feel like it.
1: portsclean -C
2: portupgrade -arRwW
3: Go to bed.
4: portsclean -CDD
http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html
http://www.onlamp.com/pub/a/bsd/2001/11/29/Big_Scary_Daemons.html
More information about the freebsd-questions
mailing list