Find the answer to your Linux question:
Results 1 to 2 of 2
In file included from dbus.c:1: /usr/include/glib-2.0/glib.h:30:26: error: glib/galloca.h: No such file or directory /usr/include/glib-2.0/glib.h:31:25: error: glib/garray.h: No such file or directory /usr/include/glib-2.0/glib.h:32:30: error: glib/gasyncqueue.h: No such file or directory /usr/include/glib-2.0/glib.h:33:26: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    1

    how to resolve the header file error


    In file included from dbus.c:1:
    /usr/include/glib-2.0/glib.h:30:26: error: glib/galloca.h: No such file or directory
    /usr/include/glib-2.0/glib.h:31:25: error: glib/garray.h: No such file or directory
    /usr/include/glib-2.0/glib.h:32:30: error: glib/gasyncqueue.h: No such file or directory
    /usr/include/glib-2.0/glib.h:33:26: error: glib/gatomic.h: No such file or directory
    /usr/include/glib-2.0/glib.h:34:29: error: glib/gbacktrace.h: No such file or directory
    /usr/include/glib-2.0/glib.h:35:26: error: glib/gbase64.h: No such file or directory
    /usr/include/glib-2.0/glib.h:36:32: error: glib/gbookmarkfile.h: No such file or directory
    /usr/include/glib-2.0/glib.h:37:25: error: glib/gcache.h: No such file or directory
    /usr/include/glib-2.0/glib.h:38:28: error: glib/gchecksum.h: No such file or directory
    /usr/include/glib-2.0/glib.h:39:30: error: glib/gcompletion.h: No such file or directory
    /usr/include/glib-2.0/glib.h:40:27: error: glib/gconvert.h: No such file or directory
    /usr/include/glib-2.0/glib.h:41:27: error: glib/gdataset.h: No such file or directory
    /usr/include/glib-2.0/glib.h:42:24: error: glib/gdate.h: No such file or directory
    /usr/include/glib-2.0/glib.h:43:23: error: glib/gdir.h: No such file or directory
    /usr/include/glib-2.0/glib.h:44:25: error: glib/gerror.h: No such file or directory
    /usr/include/glib-2.0/glib.h:45:29: error: glib/gfileutils.h: No such file or directory
    /usr/include/glib-2.0/glib.h:46:24: error: glib/ghash.h: No such file or directory
    /usr/include/glib-2.0/glib.h:47:24: error: glib/ghook.h: No such file or directory
    /usr/include/glib-2.0/glib.h:48:29: error: glib/giochannel.h: No such file or directory
    /usr/include/glib-2.0/glib.h:49:27: error: glib/gkeyfile.h: No such file or directory
    /usr/include/glib-2.0/glib.h:50:24: error: glib/glist.h: No such file or directory
    /usr/include/glib-2.0/glib.h:51:26: error: glib/gmacros.h: No such file or directory
    /usr/include/glib-2.0/glib.h:52:24: error: glib/gmain.h: No such file or directory
    /usr/include/glib-2.0/glib.h:53:30: error: glib/gmappedfile.h: No such file or directory
    /usr/include/glib-2.0/glib.h:54:26: error: glib/gmarkup.h: No such file or directory
    /usr/include/glib-2.0/glib.h:55:23: error: glib/gmem.h: No such file or directory
    /usr/include/glib-2.0/glib.h:56:28: error: glib/gmessages.h: No such file or directory
    /usr/include/glib-2.0/glib.h:57:24: error: glib/gnode.h: No such file or directory
    /usr/include/glib-2.0/glib.h:58:26: error: glib/goption.h: No such file or directory
    /usr/include/glib-2.0/glib.h:59:27: error: glib/gpattern.h: No such file or directory
    /usr/include/glib-2.0/glib.h:60:26: error: glib/gprimes.h: No such file or directory
    /usr/include/glib-2.0/glib.h:61:25: error: glib/gqsort.h: No such file or directory
    /usr/include/glib-2.0/glib.h:62:25: error: glib/gquark.h: No such file or directory
    /usr/include/glib-2.0/glib.h:63:25: error: glib/gqueue.h: No such file or directory
    /usr/include/glib-2.0/glib.h:64:24: error: glib/grand.h: No such file or directory
    /usr/include/glib-2.0/glib.h:65:23: error: glib/grel.h: No such file or directory
    /usr/include/glib-2.0/glib.h:66:25: error: glib/gregex.h: No such file or directory
    /usr/include/glib-2.0/glib.h:67:27: error: glib/gscanner.h: No such file or directory
    /usr/include/glib-2.0/glib.h:68:28: error: glib/gsequence.h: No such file or directory
    /usr/include/glib-2.0/glib.h:69:25: error: glib/gshell.h: No such file or directory
    /usr/include/glib-2.0/glib.h:70:25: error: glib/gslist.h: No such file or directory
    /usr/include/glib-2.0/glib.h:71:25: error: glib/gspawn.h: No such file or directory
    /usr/include/glib-2.0/glib.h:72:28: error: glib/gstrfuncs.h: No such file or directory
    /usr/include/glib-2.0/glib.h:73:26: error: glib/gstring.h: No such file or directory
    /usr/include/glib-2.0/glib.h:74:29: error: glib/gtestutils.h: No such file or directory
    /usr/include/glib-2.0/glib.h:75:26: error: glib/gthread.h: No such file or directory
    /usr/include/glib-2.0/glib.h:76:30: error: glib/gthreadpool.h: No such file or directory
    /usr/include/glib-2.0/glib.h:77:25: error: glib/gtimer.h: No such file or directory
    /usr/include/glib-2.0/glib.h:78:24: error: glib/gtree.h: No such file or directory
    /usr/include/glib-2.0/glib.h:79:25: error: glib/gtypes.h: No such file or directory
    /usr/include/glib-2.0/glib.h:80:27: error: glib/gunicode.h: No such file or directory
    /usr/include/glib-2.0/glib.h:81:28: error: glib/gurifuncs.h: No such file or directory
    /usr/include/glib-2.0/glib.h:82:25: error: glib/gutils.h: No such file or directory
    In file included from dbus.c:2:
    /usr/include/dbus-1.0/dbus/dbus-glib.h:27:25: error: glib-object.h: No such file or directory
    /usr/include/dbus-1.0/dbus/dbus-glib.h:28:30: error: dbus/dbus-shared.h: No such file or directory
    In file included from dbus.c:2:
    /usr/include/dbus-1.0/dbus/dbus-glib.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbus_g_connection_get_g_type’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbus_g_message_get_g_type’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/include/dbus-1.0/dbus/dbus-glib.h:52: error: expected ‘)’ before ‘*’ token
    /usr/include/dbus-1.0/dbus/dbus-glib.h:56: error: expected ‘)’ before ‘*’ token
    /usr/include/dbus-1.0/dbus/dbus-glib.h:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbus_g_error_quark’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbus_g_error_has_name’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:100: error: expected ‘)’ before ‘*’ token
    /usr/include/dbus-1.0/dbus/dbus-glib.h:104: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/include/dbus-1.0/dbus/dbus-glib.h:106: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/include/dbus-1.0/dbus/dbus-glib.h:124: error: expected specifier-qualifier-list before ‘GCallback’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:153: error: expected ‘)’ before ‘object_type’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:156: error: expected ‘)’ before ‘domain’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:160: error: expected ‘)’ before ‘*’ token
    /usr/include/dbus-1.0/dbus/dbus-glib.h:163: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/include/dbus-1.0/dbus/dbus-glib.h:169:41: error: dbus/dbus-gtype-specialized.h: No such file or directory
    /usr/include/dbus-1.0/dbus/dbus-glib.h:183: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbus_g_object_path_get_g_type’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:186: error: expected ‘)’ before ‘marshaller’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:189: error: expected ‘)’ before ‘marshaller’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:206: error: expected specifier-qualifier-list before ‘GObject’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:211: error: expected specifier-qualifier-list before ‘GObjectClass’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:219: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbus_g_proxy_get_type’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:220: error: expected ‘)’ before ‘*’ token
    /usr/include/dbus-1.0/dbus/dbus-glib.h:224: error: expected ‘)’ before ‘*’ token
    /usr/include/dbus-1.0/dbus/dbus-glib.h:232: error: expected ‘)’ before ‘*’ token
    /usr/include/dbus-1.0/dbus/dbus-glib.h:240: error: expected declaration specifiers or ‘...’ before ‘GType’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:245: error: expected declaration specifiers or ‘...’ before ‘GCallback’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:247: error: expected declaration specifiers or ‘...’ before ‘GClosureNotify’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:250: error: expected declaration specifiers or ‘...’ before ‘GCallback’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:253: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbus_g_proxy_call’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:259: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbus_g_proxy_call_with_timeout’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:268: error: expected declaration specifiers or ‘...’ before ‘GType’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:274: error: expected declaration specifiers or ‘...’ before ‘gpointer’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:275: error: expected declaration specifiers or ‘...’ before ‘GDestroyNotify’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:276: error: expected declaration specifiers or ‘...’ before ‘GType’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:281: error: expected declaration specifiers or ‘...’ before ‘gpointer’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:282: error: expected declaration specifiers or ‘...’ before ‘GDestroyNotify’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:284: error: expected declaration specifiers or ‘...’ before ‘GType’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:290: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbus_g_proxy_end_call’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:308: error: expected declaration specifiers or ‘...’ before ‘GError’
    /usr/include/dbus-1.0/dbus/dbus-glib.h:312: error: expected specifier-qualifier-list before ‘GCallback’
    dbus.c:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’

  2. #2
    Just Joined!
    Join Date
    Jul 2010
    Posts
    53
    looks like you are missing a symbolic link expected by glib.h

    if your files such as galloca.h are actually in glib-2.0 seems like simplest thing is:
    Code:
    cd /usr/include
    ln -s glib-2.0 glib

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •