You are not logged in.

#1 2006-07-13 05:37:23

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

[arch64] building gtk-chtheme from source fails

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

#2 2006-07-13 06:31:20

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,637

Re: [arch64] building gtk-chtheme from source fails

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

#3 2006-07-13 14:07:57

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [arch64] building gtk-chtheme from source fails

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

#4 2006-07-13 20:48:59

ap
Member
Registered: 2006-07-13
Posts: 2
Website

Re: [arch64] building gtk-chtheme from source fails

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

#5 2006-07-14 04:18:39

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [arch64] building gtk-chtheme from source fails

ap wrote:

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

#6 2006-07-16 16:48:45

ap
Member
Registered: 2006-07-13
Posts: 2
Website

Re: [arch64] building gtk-chtheme from source fails

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

#7 2006-07-17 20:35:49

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [arch64] building gtk-chtheme from source fails

ap wrote:

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

Board footer

Powered by FluxBB