Subject: Problems compiling Gnome2 on -current
To: None <>
From: Chavdar Ivanov <>
List: current-users
Date: 04/30/2004 11:33:42
I setup a box from scratch to build Gnome2 (eventually replacing my
current NetBSD workstation). I started with 2.0_BETA from about a week ago
from one of the releng servers, then on the 28th ran 'cvs update -dP' in
/usr/src and /usr/pkgsrc; rebuilt the kernel, rebooted, rebuilt and
installed the userland and started building Gnome2. I am having problems
going through the Mozilla-gtk2 compilation as follows:

g++ -o nsFreeType.o -c -DOSTYPE=\"NetBSD2\" -DOSARCH=\"NetBSD\" -I../.. -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/pref -I../../../dist/include/uconv -I../../../dist/include/unicharutil -I../../../dist/include/gfx -I../../../dist/include -I/usr/pkgsrc/www/mozilla-gtk2/work/mozilla/dist/include/nspr  -I/usr/pkg/include -I/usr/pkg/include  -I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/X11R6/include   -fPIC -DPIC  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -Dunix -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2  -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsFreeType.pp nsFreeType.cpp
In file included from nsFreeType.h:34,
                 from nsFreeType.cpp:48:
../../../dist/include/gfx/nsIFreeType2.h:50: error: `FTC_Image_Cache' was not 
   declared in this scope
../../../dist/include/gfx/nsIFreeType2.h:50: error: `aImageCache' was not 
   declared in this scope
../../../dist/include/gfx/nsIFreeType2.h:50: error: variable declaration is not 
   allowed here

# uname -a
NetBSD loan8 2.0E NetBSD 2.0E (GENERIC.MP) #1: Thu Apr 29 14:48:35 BST 2004  root@loan8:/sys/arch/i386/compile/GENERIC.MP i386
# file /bin/sh
/bin/sh: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for NetBSD 2.0E, dynamically linked (uses shared libs), not stripped
# pkg_info
zsh-4.2.0nb1        The Z shell
digest-20021220     Message digest wrapper utility
sudo-        Allow others to run commands as root
screen-4.0.2        Multi-screen window manager
joe-2.8nb2          Joe's own editor
mg2a-1.11           Small, fast, public domain EMACS style editor
ce-4.4nb1           Chet's Emacs: small, fast emacs-like editor , tty version
xmlcatmgr-2.0       XML and SGML catalog manager
gmake-3.80nb3       GNU version of 'make' utility
unzip-5.50nb2       List, test and extract compressed files in a ZIP archive
docbook-xml-4.2nb6  XML DTD designed for computer documentation
libtool-base-1.5.6  Generic shared library support script (the script itself)
libxml2-2.6.9       XML parser library from the GNOME project
perl-5.8.4          Practical Extraction and Report Language
libxslt-1.1.6       XSLT parser library from the GNOME project
expat-1.95.7        XML parser library written in C
p5-XML-Parser-2.31nb1 Perl extension interface to James Clark's XML parser, expat
intltool-0.30       Toolbox for internationalisation
scrollkeeper-0.3.14nb2 Open Document Cataloging Project
iso8879-1986nb3     Character entity sets from ISO 8879:1986 (SGML)
docbook-4.2nb4      SGML DTD designed for computer documentation
libaudiofile-0.2.6  Sound library for SGI audio file
esound-0.2.33       The Enlightened sound daemon
pkgconfig-0.15.0    System for managing library compile/link flags
glib2-2.4.0nb2      Some useful routines for C programming
shared-mime-info-0.14 Core database of common types
fam-2.7.0nb1        File Alteration Monitor
xdg-dirs-1.1        Shared XDG directories
xpkgwedge-1.9       Allows X11 pkgs to be built and used outside of ${X11BASE}
gnome-dirs-1.5      Shared GTK/GNOME (v1 and v2) directories
gnome2-dirs-1.5     Shared GTK/GNOME (v2) directories
gnome-mime-data-2.4.1nb1 MIME and Application database for GNOME2
popt-1.7nb4         Command line option parsing library
m4-1.4nb1           GNU version of Unix m4 macro-processor
bison-1.875nb1      GNU yacc(1) replacement
libIDL-0.8.3nb1     CORBA Interface Definition Language parser
ORBit2-2.10.0       High-performance CORBA ORB with C language support
GConf2-2.6.0nb2     Configuration database system used by GNOME (v2)
libbonobo-2.6.0     GNOME2 Object activation framework library
gnome-vfs2-2.6.0nb1 GNOME Virtual File System (v2)
libgnome-2.6.0      Core GNOME2 library (non-graphical)
python23-2.3.3nb2   Interpreted, interactive, object-oriented programming language
atk-1.6.1           Set of interfaces for accessibility
freetype2-2.1.8     Font rendering engine and library API
fontconfig-2.2.2    Library for configuring and customizing font access
x11-links-0.23      Shadow tree of links to ${X11BASE} headers and libraries
render-0.8          Headers for X11 render extension
Xrender-0.8.3nb1    Client library for the X Rendering Extension protocol
Xft2-2.1.2nb1       Library for configuring and customizing font access
pango-1.4.0         Library for layout and rendering of text
png-1.2.5nb4        Library for manipulating PNG images
jpeg-6bnb1          IJG's jpeg compression utilities
tiff-3.6.1nb2       Library and tools for reading and writing TIFF data files
fixesext-2.0        X Fixes extension headers and specification
Xfixes-2.0.0        Xfixes extension of X RandR
xcursor-1.1.1nb1    Client-side cursor loading library for X
randrext-1.0        X RandR extension (Headers and documentation files)
Xrandr-1.0.2        X RandR extension (Library)
gtk2+-2.4.0nb1      The GIMP Toolkit - libraries for building X11 user interfaces
libglade2-2.3.6nb1  Runtime interpreter for GLADE GUI files (v2)
libart2-2.3.16      High-performance 2D graphics library
libgnomecanvas-2.6.0 GNOME Canvas library
libbonoboui-2.6.0   GNOME2 Object activation framework library (graphical version)
gnome-keyring-0.2.0 GNOME password and secret manager
libgnomeui-2.6.0    Core GNOME2 graphical libraries
gnome2-pixmaps-2.6.0 Pixmaps for gnome-core
startup-notification-0.6 X11 application startup notification library
gnome-desktop-2.6.0 Common GNOME2 desktop files and libgnome-desktop library
bug-buddy-2.6.1     Graphical GNOME2 bug reporting tool
gail-1.6.1          GNOME Accessibility Implementation Library
eel2-2.6.1          Eazel Extensions Library for GNOME2
libexif-0.5.12nb1   EXIF file library
hicolor-icon-theme-0.4 Standard icon theme called hicolor
gnome-icon-theme-1.2.1nb1 Theme consisting of a set of icons for GNOME
libgnomeprint-2.6.0 Library for the GNOME2 Printing Architecture
libgnomeprintui-2.6.0 Graphical library for the GNOME2 Printing Architecture
eog-2.6.0           Eye of GNOME: an image viewing and cataloging program
zip-2.3nb2          Create/update ZIP files compatible with pkzip
autoconf213-2.13    Generates automatic source code configuration scripts (old version)
lynx-2.8.5nb1       Alphanumeric display oriented World-Wide Web Client

( most of the packages are from the gnome make ).

BTW, there was a bit of a discussion on this list about statvfs
lately; sysutils/{fam,gnome-vfs2} need some patching to fall in line with
this change (what I did was obvious; I don't post it here as I still don't
know if it was the right thing...)

Cheers, and apologies for the noise if it is felt that this is not for
this list - the system otherwise seems to be running just fine.