Opened 19 years ago

Closed 19 years ago

Last modified 8 years ago

#2784 closed defect (fixed)

BUG: control-center-2.8.1 - error: too many arguments to function `XklConfigActivate'

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

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

I get this error when trying to port control-center:

--->  Building control-center with target all
Error: Target com.apple.build returned: shell command "cd "/Users/alex/darwinports/dports/gnome/control-center/work/control-center-2.8.1" && make all" returned error 2
Command output: make  all-recursive
Making all in po
make[2]: Nothing to be done for `all'.
Making all in libsounds
make[2]: Nothing to be done for `all'.
Making all in libbackground
make[2]: Nothing to be done for `all'.
Making all in libwindow-settings
make[2]: Nothing to be done for `all'.
Making all in libgswitchit
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..            -DORBIT2=1 -DXTHREADS -I/opt/local/include/libgnomeui-2.0 -I/opt/local/include/libgnome-2.0 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/gtk-2.0 -I/opt/local/include/libart-2.0 -I/opt/local/include/gconf/2 -I/opt/local/include/libbonoboui-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/orbit-2.0 -I/opt/local/include/libbonobo-2.0 -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/bonobo-activation-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/usr/X11R6/include -I/opt/local/include/libxml2              -DXTHREADS -DORBIT2=1 -I/opt/local/include/gnome-desktop-2.0 -I/opt/local/include/gtk-2.0 -I/opt/local/include/libgnomeui-2.0 -I/opt/local/include/startup-notification-1.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/pango-1.0 -I/opt/local/include -I/opt/local/include/freetype2 -I/usr/X11R6/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/libgnome-2.0 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/libart-2.0 -I/opt/local/include/gconf/2 -I/opt/local/include/libbonoboui-2.0 -I/opt/local/include/orbit-2.0 -I/opt/local/include/libbonobo-2.0 -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/bonobo-activation-2.0 -I/opt/local/include/libxml2             -I/opt/local/include -I/opt/local/include/libxml2                         -I../intl -I../intl            -DSYS_PLUGIN_DIR=\"/opt/local/lib/gswitchit/\"           -DG_LOG_DOMAIN=\"GSwitchIt\"           -DGNOMELOCALEDIR=\""/opt/local/share/locale"\"  -L/opt/local/lib -I/opt/local/include  -no-cpp-precomp -flat_namespace -undefined suppress -Wall -c gswitchit_config.c
gswitchit_config.c: In function `_GSwitchItXkbConfigDoWithSettings':
gswitchit_config.c:396: error: too many arguments to function `XklConfigActivate'
gswitchit_config.c:404: warning: implicit declaration of function `XklConfigWriteXKMFile'
gswitchit_config.c: In function `GSwitchItAppletConfigLoadGroupDescriptionsUtf8':
gswitchit_config.c:1192: warning: implicit declaration of function `XklMultipleLayoutsSupported'
make[2]: *** [gswitchit_config.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

I was able to get it to work by making this change:

--- libgswitchit/gswitchit_config.c     Thu Mar 17 14:02:00 2005
+++ libgswitchit/gswitchit_config.c.new Thu Mar 17 14:01:55 2005
@@ -393,7 +393,7 @@
        _GSwitchItXkbConfigCopyToXklConfig (xkbConfig, &data);
 
        if (activate) {
-               rv = XklConfigActivate (&data, NULL);
+               rv = XklConfigActivate (&data);
        } else {
                char *home = getenv ("HOME");
                char xkmFileName[PATH_MAX];

The above fix was based on the information from this page:

http://gnomedesktop.org/node/1632#comment-23738

Not sure if this is the correct way to fix that, but though it might help.

Change History (5)

comment:1 Changed 19 years ago by mww@…

Owner: changed from darwinports-bugs@… to gnome-darwinports@…

assign to maintainer; please have a look at http://darwinports.opendarwin.org/docs/ch01s05.html#user_bugs

comment:2 Changed 19 years ago by olegb@…

please,

try to update to gnome2.10 and see if the problem persists.

comment:3 Changed 19 years ago by snu@…

Summary: control-center-2.8.1 - error: too many arguments to function `XklConfigActivate'BUG: control-center-2.8.1 - error: too many arguments to function `XklConfigActivate'

comment:4 Changed 19 years ago by olegb@…

Resolution: fixed
Status: newclosed

closing bug - this builds on panther and tiger - reporter hasn't report a failure on the version now in ports.

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

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