Modify

Opened 5 years ago

Closed 3 years ago

#12627 closed defect (moved_to_github)

glib2 build fails

Reported by: anonymous Owned by: florian
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Building for x86:

In file included from pygspawn.c:25:0:
/home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gspawn.h:22:2: error: #error "Only <glib.h> can be included directly."
In file included from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gspawn.h:28:0,

from pygspawn.c:25:

/home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gerror.h:22:2: error: #error "Only <glib.h> can be included directly."
In file included from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gerror.h:30:0,

from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gspawn.h:28,
from pygspawn.c:25:

/home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gquark.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gquark.h:34:0,

from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gerror.h:30,
from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gspawn.h:28,
from pygspawn.c:25:

/home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glibconfig.h:9:0,

from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gtypes.h:34,
from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gquark.h:34,
from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gerror.h:30,
from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gspawn.h:28,
from pygspawn.c:25:

/home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gtypes.h:35:0,

from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gquark.h:34,
from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gerror.h:30,
from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gspawn.h:28,
from pygspawn.c:25:

/home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gtypes.h:36:0,

from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gquark.h:34,
from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gerror.h:30,
from /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gspawn.h:28,
from pygspawn.c:25:

/home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly."
make[6]: * [_glib_la-pygspawn.lo] Error 1
make[6]: Leaving directory `/home/marionebl/bloobox-buildroot/build_dir/target-i386_uClibc-0.9.33.2/pygobject-2.16.0/glib'
make[5]:
* [all-recursive] Error 1
make[5]: Leaving directory `/home/marionebl/bloobox-buildroot/build_dir/target-i386_uClibc-0.9.33.2/pygobject-2.16.0'
make[4]: * [all] Error 2
make[4]: Leaving directory `/home/marionebl/bloobox-buildroot/build_dir/target-i386_uClibc-0.9.33.2/pygobject-2.16.0'
make[3]:
* /home/marionebl/bloobox-buildroot/build_dir/target-i386_uClibc-0.9.33.2/pygobject-2.16.0/.built Error 2
make[3]: Leaving directory `/home/marionebl/bloobox-buildroot/feeds/packages/lang/pygobject'
make[2]: * [package/feeds/packages/pygobject/compile] Error 2
make[2]: Leaving directory `/home/marionebl/bloobox-buildroot'
make[1]:
* /home/marionebl/bloobox-buildroot/staging_dir/target-i386_uClibc-0.9.33.2/stamp/.package_compile Error 2
make[1]: Leaving directory `/home/marionebl/bloobox-buildroot'
make: * [world] Error 2

Attachments (0)

Change History (7)

comment:1 Changed 5 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to accepted

Which glib2 version are you using? This is fixed in glib2 2.34.x afair.

comment:2 Changed 5 years ago by florian

  • Resolution set to no_response
  • Status changed from accepted to closed

comment:3 Changed 5 years ago by quatrox@…

I am not sure if I did check correctly, but it seems to me as this bug is not fixed.

quatrox@asrock02:~/openwrt/trunk$ grep _VERSION /home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/glib-2.0/include/glibconfig.h
#define GLIB_MAJOR_VERSION 2
#define GLIB_MINOR_VERSION 34
#define GLIB_MICRO_VERSION 3

make[7]: Entering directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80/dbus'
Making all in .
make[8]: Entering directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80/dbus'
mips-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/dbus-1.0 -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/dbus-1.0/include -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/glib-2.0 -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/glib-2.0/include -DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/usr/lib/locale\" -DDBUS_API_SUBJECT_TO_CHANGE=1 -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/quatrox/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/quatrox/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libiconv-stub/include -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libintl-stub/include -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libiconv-stub/include -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libintl-stub/include -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -Wno-deprecated -Wno-deprecated-declarations -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libiconv-stub/include -I/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libintl-stub/include -fpic -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus-binding-tool-glib.o -MD -MP -MF .deps/dbus-binding-tool-glib.Tpo -c -o dbus-binding-tool-glib.o dbus-binding-tool-glib.c
In file included from dbus-glib-tool.h:26:0,

from dbus-binding-tool-glib.c:33:

/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gquark.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from dbus-binding-tool-glib.c:35:0:
/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gi18n.h:28:0: warning: "_" redefined [enabled by default]
/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libintl-stub/include/libintl.h:41:0: note: this is the location of the previous definition
/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/glib-2.0/glib/gi18n.h:30:0: warning: "N_" redefined [enabled by default]
/home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libintl-stub/include/libintl.h:42:0: note: this is the location of the previous definition
make[8]: * [dbus-binding-tool-glib.o] Error 1
make[8]: Leaving directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80/dbus'
make[7]:
* [all-recursive] Error 1
make[7]: Leaving directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80/dbus'
make[6]: * [all] Error 2
make[6]: Leaving directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80/dbus'
Making all in tools
make[6]: Entering directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80/tools'
make all-am
make[7]: Entering directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80/tools'
make[7]: Nothing to be done for `all-am'.
make[7]: Leaving directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80/tools'
make[6]: Leaving directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80/tools'
make[6]: Entering directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80'
make[5]:
* [all-recursive] Error 1
make[5]: Leaving directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80'
make[4]: * [all] Error 2
make[4]: Leaving directory `/home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80'
make[3]:
* /home/quatrox/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/dbus-glib-0.80/.built Error 2
make[3]: Leaving directory `/home/quatrox/openwrt/trunk/feeds/packages/libs/dbus-glib'
make[2]: * [package/feeds/packages/dbus-glib/compile] Error 2
make[2]: Leaving directory `/home/quatrox/openwrt/trunk'
make[1]:
* /home/quatrox/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile Error 2
make[1]: Leaving directory `/home/quatrox/openwrt/trunk'
make: * [world] Error 2

comment:4 Changed 5 years ago by quatrox@…

  • Resolution no_response deleted
  • Status changed from closed to reopened

comment:5 Changed 5 years ago by irimi@…

Problem still reproducable with Bleeding Edge, r36944 / dbus-glib-0.80,
but I was able to fix this problem with following patch:

--- a/dbus/dbus-glib-tool.h
+++ b/dbus/dbus-glib-tool.h
@@ -23,7 +23,7 @@
 #ifndef DBUS_BINDING_TOOL_H
 #define DBUS_BINDING_TOOL_H
 
-#include <glib/gquark.h>
+#include <glib.h>
 
 typedef enum
 {

comment:6 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:7 Changed 3 years ago by florian

  • Resolution set to moved_to_github
  • Status changed from reopened to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.