dbus-glib 0.72 build fails with missing header files

Randall Wood rhwood at mac.com
Sat Feb 3 11:55:23 PST 2007


What OS and Xcode version are you using?

On 2 Feb 2007, at 09:00, Andreas Wuest wrote:

> Hi
>
> I am trying to install dbus-glib 0.72 (or rather, was forced to
> install it via dependencies), but the build unfortunately fails
> because of missing header files.
>
> And, yes, I have already installed dbus 1.0.2.
>
> I hope you can enlighten me.
>
> ...
> --->  Building dbus-glib with target all
> DEBUG: Executing com.apple.build (dbus-glib)
> DEBUG: Assembled command: 'cd
> "/opt/local/var/db/dports/build/ 
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ 
> dports_devel_dbus-glib/work/dbus-glib-0.72"
> && make all'
> make  all-recursive
> Making all in dbus
> make  all-recursive
> Making all in .
> if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I. -I.. -I.. -I..  -I/opt/local/include/glib-2.0
> -I/opt/local/lib/glib-2.0/include -I/opt/local/include
> -DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/opt/local/share/locale\"
> -DDBUS_API_SUBJECT_TO_CHANGE=1 -I/opt/local/include -L/opt/local/lib
> -no-cpp-precomp -flat_namespace -undefined suppress -L/opt/local/lib
> -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes
> -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal
> -Wsign-compare -MT dbus-glib.lo -MD -MP -MF ".deps/dbus-glib.Tpo" -c
> -o dbus-glib.lo dbus-glib.c; \
> then mv -f ".deps/dbus-glib.Tpo" ".deps/dbus-glib.Plo"; else rm -f
> ".deps/dbus-glib.Tpo"; exit 1; fi
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I..
> -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
> -I/opt/local/include -DDBUS_COMPILATION=1
> -DDBUS_LOCALEDIR=\"/opt/local/share/locale\"
> -DDBUS_API_SUBJECT_TO_CHANGE=1 -I/opt/local/include -L/opt/local/lib
> -no-cpp-precomp -flat_namespace -undefined suppress -L/opt/local/lib
> -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes
> -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal
> -Wsign-compare -MT dbus-glib.lo -MD -MP -MF .deps/dbus-glib.Tpo -c
> dbus-glib.c  -fno-common -DPIC -o .libs/dbus-glib.o
> In file included from dbus-glib.c:25:
> dbus-glib.h:28:30: error: dbus/dbus-shared.h: No such file or  
> directory
> In file included from dbus-glib.c:25:
> dbus-glib.h:74: error: parse error before 'type'
> In file included from dbus-glib.c:26:
> dbus-glib-lowlevel.h:28:23: error: dbus/dbus.h: No such file or  
> directory
> In file included from dbus-glib.c:26:
> dbus-glib-lowlevel.h:33: error: parse error before 'DBusError'
> dbus-glib-lowlevel.h:42: error: parse error before '*' token
> dbus-glib-lowlevel.h:44: error: parse error before '*' token
> dbus-glib-lowlevel.h:48: error: parse error before 'DBusMessage'
> dbus-glib-lowlevel.h:51: error: parse error before '*' token
> dbus-glib-lowlevel.h:51: warning: type defaults to 'int' in
> declaration of 'dbus_g_connection_get_connection'
> dbus-glib-lowlevel.h:51: warning: data definition has no type or  
> storage class
> dbus-glib-lowlevel.h:52: error: parse error before '*' token
> dbus-glib-lowlevel.h:52: warning: type defaults to 'int' in
> declaration of 'dbus_g_message_get_message'
> dbus-glib-lowlevel.h:52: warning: data definition has no type or  
> storage class
> dbus-glib-lowlevel.h:62: error: parse error before '*' token
> dbus-glib-lowlevel.h:62: warning: type defaults to 'int' in
> declaration of 'dbus_g_method_get_reply'
> dbus-glib-lowlevel.h:62: warning: data definition has no type or  
> storage class
> dbus-glib-lowlevel.h:65: error: parse error before 'DBusMessage'
> In file included from dbus-glib.c:29:
> dbus-gobject.h:27:33: error: dbus/dbus-signature.h: No such file or  
> directory
> dbus-glib.c: In function 'dbus_g_connection_flush':
> dbus-glib.c:55: warning: implicit declaration of function
> 'dbus_connection_flush'
> dbus-glib.c:55: warning: nested extern declaration of  
> 'dbus_connection_flush'
> dbus-glib.c:55: error: 'DBusConnection' undeclared (first use in  
> this function)
> dbus-glib.c:55: error: (Each undeclared identifier is reported only  
> once
> dbus-glib.c:55: error: for each function it appears in.)
> dbus-glib.c:55: error: parse error before ')' token
> dbus-glib.c: In function 'dbus_g_connection_ref':
> dbus-glib.c:69: error: 'DBusConnection' undeclared (first use in  
> this function)
> dbus-glib.c:69: error: 'c' undeclared (first use in this function)
> dbus-glib.c:71: error: parse error before ')' token
> dbus-glib.c:72: warning: implicit declaration of function  
> 'dbus_connection_ref'
> dbus-glib.c:72: warning: nested extern declaration of  
> 'dbus_connection_ref'
> dbus-glib.c: In function 'dbus_g_connection_unref':
> dbus-glib.c:86: error: 'DBusConnection' undeclared (first use in  
> this function)
> dbus-glib.c:86: error: 'c' undeclared (first use in this function)
> dbus-glib.c:88: error: parse error before ')' token
> dbus-glib.c:89: warning: implicit declaration of function
> 'dbus_connection_unref'
> dbus-glib.c:89: warning: nested extern declaration of  
> 'dbus_connection_unref'
> dbus-glib.c: In function 'dbus_g_message_ref':
> dbus-glib.c:113: error: 'DBusMessage' undeclared (first use in this  
> function)
> dbus-glib.c:113: error: 'c' undeclared (first use in this function)
> dbus-glib.c:115: error: parse error before ')' token
> dbus-glib.c:116: warning: implicit declaration of function  
> 'dbus_message_ref'
> dbus-glib.c:116: warning: nested extern declaration of  
> 'dbus_message_ref'
> dbus-glib.c: In function 'dbus_g_message_unref':
> dbus-glib.c:129: error: 'DBusMessage' undeclared (first use in this  
> function)
> dbus-glib.c:129: error: 'c' undeclared (first use in this function)
> dbus-glib.c:131: error: parse error before ')' token
> dbus-glib.c:132: warning: implicit declaration of function  
> 'dbus_message_unref'
> dbus-glib.c:132: warning: nested extern declaration of  
> 'dbus_message_unref'
> dbus-glib.c: In function 'dbus_connection_get_g_type':
> dbus-glib.c:225: error: 'dbus_connection_ref' undeclared (first use in
> this function)
> dbus-glib.c:226: error: 'dbus_connection_unref' undeclared (first use
> in this function)
> dbus-glib.c: In function 'dbus_message_get_g_type':
> dbus-glib.c:244: error: 'dbus_message_ref' undeclared (first use in
> this function)
> dbus-glib.c:245: error: 'dbus_message_unref' undeclared (first use in
> this function)
> dbus-glib.c: At top level:
> dbus-glib.c:305: error: parse error before '*' token
> dbus-glib.c:307: warning: return type defaults to 'int'
> dbus-glib.c: In function 'dbus_g_connection_get_connection':
> dbus-glib.c:308: error: 'DBusConnection' undeclared (first use in  
> this function)
> dbus-glib.c:308: error: parse error before ')' token
> dbus-glib.c:309: warning: control reaches end of non-void function
> dbus-glib.c: At top level:
> dbus-glib.c:320: error: parse error before '*' token
> dbus-glib.c:322: warning: return type defaults to 'int'
> dbus-glib.c: In function 'dbus_g_message_get_message':
> dbus-glib.c:323: error: 'DBusMessage' undeclared (first use in this  
> function)
> dbus-glib.c:323: error: parse error before ')' token
> dbus-glib.c:324: warning: control reaches end of non-void function
> dbus-glib.c: In function '_dbus_glib_test':
> dbus-glib.c:336: error: 'DBusError' undeclared (first use in this  
> function)
> dbus-glib.c:336: error: parse error before 'err'
> dbus-glib.c:339: warning: implicit declaration of function  
> 'dbus_error_init'
> dbus-glib.c:339: warning: nested extern declaration of  
> 'dbus_error_init'
> dbus-glib.c:339: error: 'err' undeclared (first use in this function)
> dbus-glib.c:340: warning: implicit declaration of function
> 'dbus_set_error_const'
> dbus-glib.c:340: warning: nested extern declaration of  
> 'dbus_set_error_const'
> dbus-glib.c:340: error: 'DBUS_ERROR_NO_MEMORY' undeclared (first use
> in this function)
> make[4]: *** [dbus-glib.lo] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> Error: Target com.apple.build returned: shell command "cd
> "/opt/local/var/db/dports/build/ 
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ 
> dports_devel_dbus-glib/work/dbus-glib-0.72"
> && make all" returned error 2
> Command output: dbus-glib.c:244: error: 'dbus_message_ref' undeclared
> (first use in this function)
> dbus-glib.c:245: error: 'dbus_message_unref' undeclared (first use in
> this function)
> dbus-glib.c: At top level:
> dbus-glib.c:305: error: parse error before '*' token
> dbus-glib.c:307: warning: return type defaults to 'int'
> dbus-glib.c: In function 'dbus_g_connection_get_connection':
> dbus-glib.c:308: error: 'DBusConnection' undeclared (first use in  
> this function)
> dbus-glib.c:308: error: parse error before ')' token
> dbus-glib.c:309: warning: control reaches end of non-void function
> dbus-glib.c: At top level:
> dbus-glib.c:320: error: parse error before '*' token
> dbus-glib.c:322: warning: return type defaults to 'int'
> dbus-glib.c: In function 'dbus_g_message_get_message':
> dbus-glib.c:323: error: 'DBusMessage' undeclared (first use in this  
> function)
> dbus-glib.c:323: error: parse error before ')' token
> dbus-glib.c:324: warning: control reaches end of non-void function
> dbus-glib.c: In function '_dbus_glib_test':
> dbus-glib.c:336: error: 'DBusError' undeclared (first use in this  
> function)
> dbus-glib.c:336: error: parse error before 'err'
> dbus-glib.c:339: warning: implicit declaration of function  
> 'dbus_error_init'
> dbus-glib.c:339: warning: nested extern declaration of  
> 'dbus_error_init'
> dbus-glib.c:339: error: 'err' undeclared (first use in this function)
> dbus-glib.c:340: warning: implicit declaration of function
> 'dbus_set_error_const'
> dbus-glib.c:340: warning: nested extern declaration of  
> 'dbus_set_error_const'
> dbus-glib.c:340: error: 'DBUS_ERROR_NO_MEMORY' undeclared (first use
> in this function)
> make[4]: *** [dbus-glib.lo] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> Warning: the following items did not execute (for dbus-glib):
> com.apple.activate com.apple.build com.apple.destroot
> com.apple.install
> Error: Status 1 encountered during processing.
>
> -- 
> Kind regards,
> Andi
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users


Randall Wood
rhwood at mac.com

"The rules are simple: The ball is round. The game lasts 90 minutes.  
All the
rest is just philosophy."





More information about the macports-users mailing list