[MacPorts] #2784: BUG: control-center-2.8.1 - error: too many arguments to function `XklConfigActivate'
MacPorts
noreply at macports.org
Thu Mar 24 07:01:55 PDT 2016
#2784: BUG: control-center-2.8.1 - error: too many arguments to function
`XklConfigActivate'
-----------------------------+---------------------------------
Reporter: spam@… | Owner: gnome-darwinports@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 1.0
Resolution: fixed | Keywords:
Port: control-center |
-----------------------------+---------------------------------
Changes (by ryandesign@…):
* port: => control-center
Old description:
> 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.
New description:
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.
--
--
Ticket URL: <https://trac.macports.org/ticket/2784#comment:5>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list