LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   What library am I missing? (https://www.linuxquestions.org/questions/slackware-14/what-library-am-i-missing-766621/)

em21701 11-03-2009 05:45 PM

What library am I missing?
 
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


knudfl 11-03-2009 07:16 PM

line 14 :
Quote:

/usr/include/glib-2.0/glib/gmain.h:27:24: \
error: glib/gpoll.h: No such file or directory
I think, gpoll.h was introduced in glib-2.19.0 .
( The current stable is 2.22.2 ).

Thus no ' gpoll.h ' in Slackware 12.2 or Slackware 13.
.....

windtalker10 11-03-2009 07:27 PM

Quote:

/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.

em21701 11-04-2009 07:51 AM

Dang, I had these updated when I built GIMP. They were downgraded when I forgot to de-select them when updating with slackpkg. Thanks all.

lumak 11-04-2009 09:25 AM

slackpkg can blacklist packages that you don't want automatically updated.

Code:

slackpkg blacklist pkg_name

em21701 11-05-2009 07:03 AM

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.

Didier Spaier 11-05-2009 11:11 AM

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.

em21701 11-05-2009 06:43 PM

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.

Didier Spaier 11-06-2009 01:28 AM

I must admit that way too often I do not read before pushing the button either, even when typing commands as root in a shell :confused:

That's why I edited /etc/slackpkg/slackpkg.conf recently to get the ONOFF=OFF behaviour...

em21701 11-07-2009 06:05 AM

Good idea, thanks!


All times are GMT -5. The time now is 08:50 AM.