I'm trying to build gtkhtml 3.0.9 on SuSE 9.0 Pro, but this applies to a whole bunch of things that use glib2 (Evolution, AbiWord2 for example...) I get the following error: In file included from /opt/gnome/include/glib-2.0/glib/galloca.h:30, from /opt/gnome/include/glib-2.0/glib.h:30, from /opt/gnome/include/gtk-2.0/gdk/gdktypes.h:32, from /opt/gnome/include/gtk-2.0/gdk/gdkcolor.h:4, from /opt/gnome/include/gtk-2.0/gdk/gdk.h:30, from /opt/gnome/include/gtk-2.0/gtk/gtk.h:31, from /opt/gnome/include/libgnomeui-2.0/gnome.h:4, from gtkhtml-embedded.c:25: /opt/gnome/include/glib-2.0/glib/gtypes.h:41: error: syntax error before "typedef" I actually get a whole bunch of parse and syntax errors, far too many to paste into an email, and the make then fails. The exact same code, with the same version of glib2 on 8.2 (I've checked gtypes.h on both systems - they are the same) builds fine. Does anyone have any thought on what could be up here? James -- James Ogley, Unix Systems Administrator, Pinnacle Insurance Plc Work: james.ogley@pinnacle.co.uk www.pinnacle.co.uk +44 (0) 20 8731 3619 Personal: james@rubberturnip.org.uk www.rubberturnip.org.uk Updated GNOME RPMs for SuSE Linux: www.usr-local-bin.org ********************************************************************** CONFIDENTIALITY.This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Pinnacle Insurance plc. If you have received this email in error please immediately notify the Pinnacle Helpdesk on +44 (0) 20 8207 9555. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************
I'm trying to build gtkhtml 3.0.9 on SuSE 9.0 Pro, but this applies to a whole bunch of things that use glib2 (Evolution, AbiWord2 for example...)
Thanks to a tip from Michael Stevens, I've tracked this problem down to glib/gtk being installed in the same prefix as gnome in 9.0 (/opt/gnome) Because without specifying an includedir option to configure causes it to use $prefix/include it was using /opt/gnome/include which contains glibconfig.h from glib-1.2.x (not glib2-2.2.x) The includedir is one of the first directories used, before anything learnt from pkg-config, meaning that the wrong glibconfig.h was picked up. -- James Ogley, Unix Systems Administrator, Pinnacle Insurance Plc Work: james.ogley@pinnacle.co.uk www.pinnacle.co.uk +44 (0) 20 8731 3619 Personal: james@rubberturnip.org.uk www.rubberturnip.org.uk Updated GNOME RPMs for SuSE Linux: www.usr-local-bin.org *********************************************************************** CONFIDENTIALITY. This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Pinnacle Insurance Plc. If you have received this e-mail in error please immediately notify our Helpdesk on +44 (0) 20 8207 9555. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************
I'm trying to build gtkhtml 3.0.9 on SuSE 9.0 Pro, but this applies to a whole bunch of things that use glib2 (Evolution, AbiWord2 for example...)
I get the following error: In file included from /opt/gnome/include/glib-2.0/glib/galloca.h:30, from /opt/gnome/include/glib-2.0/glib.h:30, from /opt/gnome/include/gtk-2.0/gdk/gdktypes.h:32, from /opt/gnome/include/gtk-2.0/gdk/gdkcolor.h:4, from /opt/gnome/include/gtk-2.0/gdk/gdk.h:30, from /opt/gnome/include/gtk-2.0/gtk/gtk.h:31, from /opt/gnome/include/libgnomeui-2.0/gnome.h:4, from gtkhtml-embedded.c:25: /opt/gnome/include/glib-2.0/glib/gtypes.h:41: error: syntax error before "typedef"
I have had no problems getting things to build on 9. What you may want to make sure of is that you have the devel packages installed because if you just did a base install it doesnt install it and if you installed developer packages they only install the devel packages to build QT apps and KDE devel packages.
I actually get a whole bunch of parse and syntax errors, far too many to paste into an email, and the make then fails.
The exact same code, with the same version of glib2 on 8.2 (I've checked gtypes.h on both systems - they are the same) builds fine.
Does anyone have any thought on what could be up here?
Yeah, GTK, IMO sucks, develop and build on the QT toolkit.
James -- James Ogley, Unix Systems Administrator, Pinnacle Insurance Plc Work: james.ogley@pinnacle.co.uk www.pinnacle.co.uk +44 (0) 20 8731 3619 Personal: james@rubberturnip.org.uk www.rubberturnip.org.uk Updated GNOME RPMs for SuSE Linux: www.usr-local-bin.org
********************************************************************** CONFIDENTIALITY.This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Pinnacle Insurance plc.
If you have received this email in error please immediately notify the Pinnacle Helpdesk on +44 (0) 20 8207 9555.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com **********************************************************************
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
-- To view my Linux help page and howto's goto http://www.geocities.com/kane121975/ I have information on x86 Linux and PowerPC Linux
participants (2)
-
James Ogley
-
Roberto J. Dohnert