SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I get this error with several programs I try to compile.
Code:
In file included from /usr/include/glib-2.0/glib/giochannel.h:35,
from /usr/include/glib-2.0/glib.h:50,
from /usr/include/glib-2.0/gobject/gtype.h:26,
from /usr/include/glib-2.0/gobject/gboxed.h:26,
from /usr/include/glib-2.0/glib-object.h:25,
from /usr/include/glib-2.0/gio/gioenums.h:30,
from /usr/include/glib-2.0/gio/giotypes.h:30,
from /usr/include/glib-2.0/gio/gio.h:28,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from AppInclude.h:20,
from main.cpp:5:
/usr/include/glib-2.0/glib/gmain.h:27:24: error: glib/gpoll.h: No such file or directory
In file included from /usr/include/glib-2.0/glib/giochannel.h:35,
from /usr/include/glib-2.0/glib.h:50,
from /usr/include/glib-2.0/gobject/gtype.h:26,
from /usr/include/glib-2.0/gobject/gboxed.h:26,
from /usr/include/glib-2.0/glib-object.h:25,
from /usr/include/glib-2.0/gio/gioenums.h:30,
from /usr/include/glib-2.0/gio/giotypes.h:30,
from /usr/include/glib-2.0/gio/gio.h:28,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from AppInclude.h:20,
from main.cpp:5:
/usr/include/glib-2.0/glib/gmain.h:138: error: 'GPollFD' has not been declared
/usr/include/glib-2.0/glib/gmain.h:142: error: 'GPollFD' has not been declared
/usr/include/glib-2.0/glib/gmain.h:147: error: 'GPollFunc' has not been declared
/usr/include/glib-2.0/glib/gmain.h:148: error: 'GPollFunc' does not name a type
/usr/include/glib-2.0/glib/gmain.h:153: error: 'GPollFD' has not been declared
/usr/include/glib-2.0/glib/gmain.h:156: error: 'GPollFD' has not been declared
/usr/include/glib-2.0/glib/gmain.h:209: error: 'GPollFD' has not been declared
/usr/include/glib-2.0/glib/gmain.h:211: error: 'GPollFD' has not been declared
In file included from /usr/include/glib-2.0/gio/gio.h:34,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from AppInclude.h:20,
from main.cpp:5:
/usr/include/glib-2.0/gio/gcancellable.h:74: error: 'GPollFD' has not been declared
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/eric/Desktop/HDHomerun/hdhomerun_config_gui/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eric/Desktop/HDHomerun/hdhomerun_config_gui'
make: *** [all] Error 2
/usr/include/glib-2.0/glib/gmain.h:27:24: error: glib/gpoll.h: No such file or directory
glib is what is causing your problems.
Googling tells me glib has caused problems with building packages before.
You may have to upgrade or downgrade glib as what you're trying to build may not be compatible with the glib you have installed.
I don't necessarily want to blacklist any particular package, as it may be upgraded to a newer rev than I already have installed one day. I would like to see it be more sensitive to versioning and not "upgrade" to a lower rev.
AFAIK to check for upgrades to be done, Slackpkg looks for packages in official Slackware directories only, in the order given by the PRIORITY parameter, set up in /etc/slackpkg/slackpkg.conf. This suppose that any "not official" package should be upgraded, disregarding any other consideration.
Last edited by Didier Spaier; 11-05-2009 at 11:13 AM.
Didier Spaier You are correct AFIK as well. I certainly understand why it is written that way. I was merely offering an opinion. I certainly need to pay more attention to what is going to be upgraded before I push the button.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.