Opened 19 years ago

Closed 19 years ago

Last modified 8 years ago

#5131 closed defect (fixed)

BUG: control-center fails to build

Reported by: rhwood@… Owned by: gnome-darwinports@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: sean@…, julian@…
Port: control-center

Description (last modified by ryandesign (Ryan Carsten Schmidt))

On Mac OS X 10.4.2, control-center fails to build. The error in question is a syntax problem with /opt/local/include/X11/Xft/Xft.h . Particullarly vexing about the error is that 21 other ports depend on this port and they all built without problems.

sudo port clean --all control-center ; sudo port install control-center DID NOT solve the issue.

Output follows:

--->  Building control-center with target all
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_gnome_control-center/work/control-center-2.10.0" && make all" returned error 2
Command output: /opt/local/include/X11/Xft/Xft.h:302: warning: type defaults to 'int' in declaration of 'FT_UInt'
/opt/local/include/X11/Xft/Xft.h:302: error: parse error before '*' token
/opt/local/include/X11/Xft/Xft.h:361: error: parse error before 'XftLockFace'
/opt/local/include/X11/Xft/Xft.h:361: warning: type defaults to 'int' in declaration of 'XftLockFace'
/opt/local/include/X11/Xft/Xft.h:361: warning: data definition has no type or storage class
/opt/local/include/X11/Xft/Xft.h:400: warning: type defaults to 'int' in declaration of 'FT_UInt'
/opt/local/include/X11/Xft/Xft.h:400: error: parse error before '*' token
/opt/local/include/X11/Xft/Xft.h:406: warning: type defaults to 'int' in declaration of 'FT_UInt'
/opt/local/include/X11/Xft/Xft.h:406: error: parse error before '*' token
/opt/local/include/X11/Xft/Xft.h:415: error: parse error before 'FT_UInt'
/opt/local/include/X11/Xft/Xft.h:425: error: parse error before 'XftCharIndex'
/opt/local/include/X11/Xft/Xft.h:427: warning: type defaults to 'int' in declaration of 'XftCharIndex'
/opt/local/include/X11/Xft/Xft.h:427: warning: data definition has no type or storage class
/opt/local/include/X11/Xft/Xft.h:468: warning: type defaults to 'int' in declaration of 'FT_UInt'
/opt/local/include/X11/Xft/Xft.h:468: error: parse error before '*' token
/opt/local/include/X11/Xft/Xft.h:479: warning: type defaults to 'int' in declaration of 'XftGlyphSpec'
/opt/local/include/X11/Xft/Xft.h:479: error: parse error before '*' token
/opt/local/include/X11/Xft/Xft.h:500: warning: type defaults to 'int' in declaration of 'XftGlyphFontSpec'
/opt/local/include/X11/Xft/Xft.h:500: error: parse error before '*' token
In file included from /opt/local/include/pango-1.0/pango/pangoxft.h:30,
                 from keyboard-drawing.c:27:
/opt/local/include/pango-1.0/pango/pangoxft-render.h:95: error: parse error before 'XftGlyphSpec'
keyboard-drawing.c: In function 'xkb_state_notify_event_filter':
keyboard-drawing.c:1481: warning: implicit declaration of function 'memset'
keyboard-drawing.c:1481: warning: incompatible implicit declaration of built-in function 'memset'
keyboard-drawing.c: In function 'keyboard_drawing_set_track_modifiers':
keyboard-drawing.c:1800: warning: incompatible implicit declaration of built-in function 'memset'
make[2]: *** [keyboard-drawing.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Attachments (1)

control-center-port.tar.gz (7.5 KB) - added by julian@… 19 years ago.
Patched portfile

Download all attachments as: .zip

Change History (13)

comment:1 Changed 19 years ago by sean@…

Cc: sean@… added

Changed 19 years ago by julian@…

Attachment: control-center-port.tar.gz added

Patched portfile

comment:2 Changed 19 years ago by rhwood@…

Control-center 2.12 has a dependency on /opt/local/bin/desktop-file-install which is part of the desktop-file-utils port.

comment:3 Changed 19 years ago by rhwood@…

Some install weirdness:

Getafix:~/Developer/DarwinPorts/gnome/control-center rhwood$ sudo port install
--->  Fetching control-center
--->  Attempting to fetch control-center-2.12.0.tar.bz2 from http://www.gtlib.cc.gatech.edu/pub/
gnome/sources/control-center/2.12/
--->  Verifying checksum(s) for control-center
--->  Extracting control-center
--->  Applying patches to control-center
--->  Configuring control-center
--->  Building control-center with target all
--->  Staging control-center into destroot
--->  Packaging tgz archive for control-center 2.12.0_0
--->  Installing control-center 2.12.0_0
Error: Target com.apple.install returned: shell command "  export 
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`&& gconftool-2 --makefile-install-rule  
/opt/local/etc/gconf/schemas/*.schemas && gconftool-2 --direct --config-source=
$GCONF_CONFIG_SOURCE  --recursive-unset /schemas/apps/panel && gconftool-2 --direct --config-
source  xml:readwrite:/opt/local/etc/gconf/gconf.xml.defaults  --load /opt/local/etc/gconf/schemas/
panel-default-setup.entries " returned error 1
Command output: Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `lt'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `ko'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `id'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `lv'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `ru'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `vi'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `es'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `et'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `pl'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `eu'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `pt_BR'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `C'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `nb'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `ta'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `be'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `zh_CN'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `he'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `bg'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `en_CA'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `ne'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `ga'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `uk'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `hi'
Installed schema `/schemas/desktop/gnome/file-views/icon_theme' for locale `pt'
/opt/local/etc/gconf/schemas/desktop_gnome_interface.schemas:7070: parser error : internal error
 • gnome-vfs • gtk+.</long>
               ^
/opt/local/etc/gconf/schemas/desktop_gnome_interface.schemas:7070: parser error : Extra content at 
the end of the document
 • gnome-vfs • gtk+.</long>
               ^

Getafix:~/Developer/DarwinPorts/gnome/control-center rhwood$ port installed control-center
The following ports are currently installed:
  control-center 2.12.0_0
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 19 years ago by julian@…

Cc: julian@… added

comment:5 Changed 19 years ago by julian@…

It almost seems gconf is broken. Looks like gconftool-2 chokes on some unicode characters.

comment:6 Changed 19 years ago by julian@…

Here's patch for the patched ;-) portfile so that it required desktop-file-utils:

--- Portfile    2005-09-28 23:04:14.000000000 +0200
+++ Portfile.new        2005-09-30 16:50:25.000000000 +0200
@@ -10,7 +10,7 @@
 homepage       http://www.gnome.org/
 master_sites    gnome:sources/control-center/2.12/
 checksums      md5 06a213f801bff26cee4f5db03a54da08
-depends_lib    lib:nautilus:nautilus
+depends_lib    lib:nautilus:nautilus port:desktop-file-utils
 use_bzip2      yes
 configure.args  --mandir=${prefix}/share/man
 configure.env   CPPFLAGS="-L${prefix}/lib -I${prefix}/include"  \
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 19 years ago by rhwood@…

Sometimes just building this port twice gets it installed completely, although some preference panels are then broken in GNOME and the theme(s) get broken. Things work, but look ugly.

comment:8 Changed 19 years ago by cjr@…

blocked: 3798

comment:9 Changed 19 years ago by rhwood@…

Patches commited. Thanks!

comment:10 Changed 19 years ago by rhwood@…

Resolution: fixed
Status: newclosed

Submitted new Portfile for control-center 2.12.1 into CVS. Control-center 2.21.1 builds w/o complaint (for me) on Mac OS X 10.4.2.

comment:11 Changed 18 years ago by msiniscalchi@…

Sorry to bother everybody...

I am still getting the "internal error" upon installing control-center.

I am running OSX 10.4.3 with XCode 2.0 (gcc 4.0.0). I did a port sync; port upgrade, and I believe the most recent Portinfo file is being used, because port info control-center yields:

control-center 2.12.1, gnome/control-center (Variants: darwin)
http://www.gnome.org/

{Control center for GNOME 2.0 project.}

Library Dependencies: nautilus, desktop-file-utils, libxklavier
Platforms: darwin
Maintainers: gnome-darwinports@opendarwin.org rhwood@opendarwin.org

Note the 2.12.1 version for control-center, and the explicit dependency on libxklavier which was added in CVS on 12/6.

Any ideas?

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:12 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: control-center added
Note: See TracTickets for help on using tickets.