You are not logged in.
I've been trying to build some of my favorite apps from [community] for Arch64 but I've hit a snag with gtk-chtheme. The build bails out with with following:
In file included from util.c:18:
util.h:21: warning: type defaults to 'int' in declaration of 'gchar'
util.h:21: error: expected ';', ',' or ')' before '*' token
util.c: In function 'unfocussable':
util.c:22: error: 'G_STMT_START' undeclared (first use in this function)
util.c:22: error: (Each undeclared identifier is reported only once
util.c:22: error: for each function it appears in.)
util.c:22: error: expected ';' before '{' token
util.c: At top level:
util.c:26: warning: type defaults to 'int' in declaration of 'gchar'
util.c:26: error: expected ';', ',' or ')' before '*' token
util.c: In function 'gtk_label_new_from_pango_markup':
util.c:35: error: 'PangoAttrList' undeclared (first use in this function)
util.c:35: error: 'attrs' undeclared (first use in this function)
util.c:36: error: 'gchar' undeclared (first use in this function)
util.c:36: error: 'parsed_text' undeclared (first use in this function)
util.c:38: warning: implicit declaration of function 'pango_parse_markup'
util.c:38: error: 'NULL' undeclared (first use in this function)
util.c:40: warning: implicit declaration of function 'gtk_label_new'
util.c:40: warning: cast to pointer from integer of different size
util.c:40: warning: implicit declaration of function 'gtk_label_get_type'
util.c:40: error: too many arguments to function 'gtk_type_check_object_cast'
util.c:41: warning: implicit declaration of function 'gtk_label_set_attributes'
util.c:42: error: 'TRUE' undeclared (first use in this function)
util.c:42: error: too many arguments to function 'gtk_label_set_line_wrap'
make: *** [util.o] Error 1
That's the last few lines of errors. Most of it is related to GTK stuff. Maybe I'm missing a dep?
Offline
Can anybody check if it builds on i686 ArchLinux? Can you run namcap over it?
http://cvs.archlinux.org/cgi-bin/viewcv … cvs-markup
depends=('gtk2' 'glibc' 'x-server')
I'm not sure if that is enough. Other distributions have more deps:
http://rpm.pbone.net/index.php3/stat/4/ … 4.rpm.html
So test if atk, libgdk-pixbuf or pango are required. But I guess they are already installed. If so it may be a gcc4.1 problem.
Offline
Yes, I've got pango, atk and gdk-pixbuf installed from the repos.
Could you explain how to use namcap for this sort of thing?
Offline
Hi, I'm the author of gtk-chtheme.
Adding those dependencies shouldn't help – gtk-chtheme depends directly only on gtk+. Even the dependencies on x-server and glibc should be unnecessary, considering that gtk+ depends on these anyway.
Rather, the way the messages read, it seems like the gtk+ headers are not getting included. Does pkg-config --cflags gtk+-2.0 say something sensible?
Offline
Hi, I'm the author of gtk-chtheme.
Adding those dependencies shouldn't help – gtk-theme depends directly only on gtk+. Even the dependencies on x-server and glibc should be unnecessary, considering that gtk+ depends on these anyway.
Rather, the way the messages read, it seems like the gtk+ headers are not getting included. Does pkg-config --cflags gtk+-2.0 say something sensible?
thanks for the tip. i completely forgot to install pkgconfig. installed that and everything works.
Offline
Glad that fixed it. I guess pkg-config and Perl should be listed as build-time dependencies somewhere. Does the Arch packaging system have a way to express that?
Also, who would I need to contact in order to ask them to update the PKGBUILD? There's an email address mentioned at the top of it, but is that the right person to go to or does the Arch repository have some sort of hierarchy?
Offline
Glad that fixed it. I guess pkg-config and Perl should be listed as build-time dependencies somewhere. Does the Arch packaging system have a way to express that?
Also, who would I need to contact in order to ask them to update the PKGBUILD? There's an email address mentioned at the top of it, but is that the right person to go to or does the Arch repository have some sort of hierarchy?
You could contact dtw if he is the author. He can change the PKGBUILD in the community build system.
Offline