Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417765 - net-voip/sflphone-1.0.1: error Only <glib.h> can be included directly.
Summary: net-voip/sflphone-1.0.1: error Only <glib.h> can be included directly.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jean-Noël Rivasseau (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 416999
Blocks: glib-2.32
  Show dependency tree
 
Reported: 2012-05-27 13:39 UTC by Petr Gregor
Modified: 2012-08-11 22:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,91.74 KB, text/plain)
2012-05-27 13:39 UTC, Petr Gregor
Details
Paludis info (file_417765.txt,14.01 KB, text/plain)
2012-05-27 13:41 UTC, Petr Gregor
Details
build.log (build.log,86.11 KB, text/plain)
2012-07-21 16:44 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Gregor 2012-05-27 13:39:48 UTC
Created attachment 313259 [details]
Build log

Hi,
I get this error when installing sflphone.


  CC     libconfig_la-preferencesdialog.lo
In file included from shortcuts-config.h:35:0,
                 from shortcuts-config.c:32:
/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from ../../src/eel-gconf-extensions.h:28:0,
                 from preferencesdialog.c:41:
/usr/include/glib-2.0/glib/gerror.h:22:2: error: #error "Only <glib.h> can be included directly."
make[3]: *** [libconfig_la-shortcuts-config.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from addressbook-config.h:35:0,
                 from preferencesdialog.c:47:
/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from shortcuts-config.h:35:0,
                 from preferencesdialog.c:48:
/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from hooks-config.h:35:0,
                 from preferencesdialog.c:49:
/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
preferencesdialog.c: In function 'create_model':
preferencesdialog.c:363:13: warning: 'gdk_pixbuf_unref' is deprecated (declared at /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243): Use 'g_object_unref' instead
make[3]: *** [libconfig_la-preferencesdialog.lo] Error 1
In file included from addressbook-config.h:35:0,
                 from addressbook-config.c:31:
/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
addressbook-config.c: In function 'addressbook_display':
addressbook-config.c:445:5: warning: 'g_strcasecmp' is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:172)
addressbook-config.c:447:5: warning: 'g_strcasecmp' is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:172)
addressbook-config.c:449:5: warning: 'g_strcasecmp' is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:172)
addressbook-config.c:451:5: warning: 'g_strcasecmp' is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:172)
make[3]: *** [libconfig_la-addressbook-config.lo] Error 1
Comment 1 Petr Gregor 2012-05-27 13:41:26 UTC
Created attachment 313261 [details]
Paludis info
Comment 2 Pacho Ramos gentoo-dev 2012-07-21 16:44:52 UTC
Created attachment 318822 [details]
build.log

Even patching it to fix glib includes build fails in a different way :S
Comment 3 Pacho Ramos gentoo-dev 2012-07-21 16:45:24 UTC
Probably a bump is needed
Comment 4 Matt Turner gentoo-dev 2012-08-11 20:33:52 UTC
(In reply to comment #3)
> Probably a bump is needed

Indeed, bug 416999.
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-08-11 22:33:03 UTC
Fixed by a non-maintainer commit because this bug report was blocking gnome team's glib-2.32 and gtk+-3.4 stabilization.

>*sflphone-1.0.1-r1 (11 Aug 2012)
>
>  11 Aug 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  +sflphone-1.0.1-r1.ebuild, +files/sflphone-1.0.1-glib-2.32-headers-1.patch,
>  +files/sflphone-1.0.1-glib-2.32-headers-2.patch,
>  +files/sflphone-1.0.1-glib-2.32-headers-3.patch,
>  +files/sflphone-1.0.1-pjsip-1.14.patch:
>  Non-maintainer commit: fix building with glib-2.32 (bug #417765, thanks to
>  Petr Gregor) and compatibility with pjsip-1.14.