/!\ This page is not a bug tracker. If you run into a problem not listed here, please file a bug.
When entering a new problem, please enter it above the others, and follow the format of the JhbuildIssues/JhbuildIssueTemplate for new problems/modules.

List of common errors for the module glib.

ImportError: No module named config

System details: 05/2011 - GNOME 3 - Ubuntu 10.10

Stage: Build

/usr/bin/python /home/joe/projects/gnome/checkout-root/glib/gio/gdbus-codegen/codegen_main.py \
                --interface-prefix org.gtk.GDBus.Example.ObjectManager.         \
                --c-namespace Example                                           \
                --c-generate-object-manager                                     \
                --generate-c-code gdbus-example-objectmanager-generated         \
                --generate-docbook gdbus-example-objectmanager-generated        \
                gdbus-example-objectmanager.xml                                 \
                
Traceback (most recent call last):
  File "/home/joe/projects/gnome/checkout-root/glib/gio/gdbus-codegen/codegen_main.py", line 27, in <module>
    import config
ImportError: No module named config
make[2]: *** [gdbus-example-objectmanager-generated.h] Error 1
make[2]: Leaving directory `/home/joe/projects/gnome/build-root/glib/gio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/joe/projects/gnome/build-root/glib'
make: *** [all] Error 2

Cause: The mentioned 'config.py' is generated from a 'config.py.in'. If the 'buildroot' and 'checkoutroot' (in ~/.jhbuildrc) are two different directories, this generated file is put in the 'buildroot' and cannot be found by the main code (codegen_main.py) in the 'checkoutroot'. Hence causing this error.

Solution: Ensure that 'buildroot' and 'checkoutroot' are the same. By default they are the same.

gutils.h:316: warning: C99 inline functions are not supported

System details: 12/2007 - GNOME 2.21 - Ubuntu 7.10

Stage: Build

In file included from /opt/gnome-2-20/include/glib-2.0/glib/gthread.h:32,

  • from /opt/gnome-2-20/include/glib-2.0/glib/gasyncqueue.h:30,
    from /opt/gnome-2-20/include/glib-2.0/glib.h:32,
    from gnome-vfs-ace.h:28,
    from gnome-vfs-ace.c:26:

/opt/gnome-2-20/include/glib-2.0/glib/gutils.h:316: warning: C99 inline functions are not supported; using GNU89
/opt/gnome-2-20/include/glib-2.0/glib/gutils.h:316: warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute
/opt/gnome-2-20/include/glib-2.0/glib/gutils.h:330: warning: C99 inline functions are not supported; using GNU89
/opt/gnome-2-20/include/glib-2.0/glib/gutils.h:343: warning: C99 inline functions are not supported; using GNU89
/opt/gnome-2-20/include/glib-2.0/glib/gutils.h:362: warning: C99 inline functions are not supported; using GNU89
/opt/gnome-2-20/include/glib-2.0/glib/gutils.h:370: warning: C99 inline functions are not supported; using GNU89
/opt/gnome-2-20/include/glib-2.0/glib/gutils.h:387: warning: C99 inline functions are not supported; using GNU89
/opt/gnome-2-20/include/glib-2.0/glib/gutils.h:396: warning: C99 inline functions are not supported; using GNU89
In file included from /opt/gnome-2-20/include/glib-2.0/glib/gasyncqueue.h:30,

  • from /opt/gnome-2-20/include/glib-2.0/glib.h:32,
    from gnome-vfs-ace.h:28,
    from gnome-vfs-ace.c:26:

/opt/gnome-2-20/include/glib-2.0/glib/gthread.h:334: warning: C99 inline functions are not supported; using GNU89
make[3]: *** [gnome-vfs-ace.lo] Error 1

Cause:

See bug gnomebug:315437

Solution:

(ChristianKirbach) workaround: set CFLAGS="-w" before autogen/compiling


CategoryJhbuildIssues

Projects/Jhbuild/Issues/glib (last edited 2015-12-27 15:16:20 by AlexandreFranke)