Hello, guys!

I became tired of warnings when using old dbus-glib method, so I went to http://live.gnome.org/Vala/DBusClientSample and tried to compile first BlueZ sample exactly as it is written there, but I get a GREAT amount of c-mistakes :(

What should I do? Searched all over the Internet, but didn't find any answer :(


**************************************************************************
ull...@ulltor-laptop ~/vala-dbus $ valac --pkg gio-2.0 dbus-bluez.vala
/home/ulltor/vala-dbus/dbus-bluez.vala.c:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘BluezProxy’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘BluezProxyClass’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:39: error: expected declaration specifiers or ‘...’ before ‘GDBusConnection’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:42: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:49: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:50: error: expected declaration specifiers or ‘...’ before ‘GDBusMethodInvocation’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:51: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:52: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:70: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_method_info_discover_devices’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_signal_info_discovery_started’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_signal_info_discovery_completed’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_arg_info_remote_device_found_address’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_arg_info_remote_device_found_klass’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_arg_info_remote_device_found_rssi’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_signal_info_remote_device_found’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_arg_info_remote_name_updated_address’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:82: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_arg_info_remote_name_updated_name’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_signal_info_remote_name_updated’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:86: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_interface_info’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:88: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_bluez_dbus_interface_vtable’ /home/ulltor/vala-dbus/dbus-bluez.vala.c:123: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:123: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c: In function ‘bluez_proxy_class_intern_init’: /home/ulltor/vala-dbus/dbus-bluez.vala.c:123: error: ‘BluezProxyClass’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:123: error: (Each undeclared identifier is reported only once /home/ulltor/vala-dbus/dbus-bluez.vala.c:123: error: for each function it appears in.) /home/ulltor/vala-dbus/dbus-bluez.vala.c:123: error: expected expression before ‘)’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c: In function ‘bluez_proxy_get_type’: /home/ulltor/vala-dbus/dbus-bluez.vala.c:123: error: ‘G_TYPE_DBUS_PROXY’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:123: error: ‘BluezProxyClass’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:123: error: ‘BluezProxy’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:123: error: ‘bluez_proxy_init’ undeclared (first use in this function)
/home/ulltor/vala-dbus/dbus-bluez.vala.c: At top level:
/home/ulltor/vala-dbus/dbus-bluez.vala.c:124: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:185: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:198: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c: In function ‘bluez_proxy_discover_devices’: /home/ulltor/vala-dbus/dbus-bluez.vala.c:208: error: ‘GDBusProxy’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:208: error: expected expression before ‘)’ token
/home/ulltor/vala-dbus/dbus-bluez.vala.c: At top level:
/home/ulltor/vala-dbus/dbus-bluez.vala.c:222: error: expected declaration specifiers or ‘...’ before ‘GDBusMethodInvocation’ /home/ulltor/vala-dbus/dbus-bluez.vala.c: In function ‘_dbus_bluez_discover_devices’: /home/ulltor/vala-dbus/dbus-bluez.vala.c:231: error: ‘invocation’ undeclared (first use in this function)
/home/ulltor/vala-dbus/dbus-bluez.vala.c: At top level:
/home/ulltor/vala-dbus/dbus-bluez.vala.c:240: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:251: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c:260: error: expected ‘)’ before ‘*’ token /home/ulltor/vala-dbus/dbus-bluez.vala.c: In function ‘_dbus_bluez_discovery_started’: /home/ulltor/vala-dbus/dbus-bluez.vala.c:270: error: ‘GDBusConnection’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:270: error: ‘_connection’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c: In function ‘_dbus_bluez_discovery_completed’: /home/ulltor/vala-dbus/dbus-bluez.vala.c:283: error: ‘GDBusConnection’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:283: error: ‘_connection’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c: In function ‘_dbus_bluez_remote_device_found’: /home/ulltor/vala-dbus/dbus-bluez.vala.c:296: error: ‘GDBusConnection’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:296: error: ‘_connection’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c: In function ‘_dbus_bluez_remote_name_updated’: /home/ulltor/vala-dbus/dbus-bluez.vala.c:312: error: ‘GDBusConnection’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:312: error: ‘_connection’ undeclared (first use in this function)
/home/ulltor/vala-dbus/dbus-bluez.vala.c: At top level:
/home/ulltor/vala-dbus/dbus-bluez.vala.c:326: error: expected declaration specifiers or ‘...’ before ‘GDBusConnection’ /home/ulltor/vala-dbus/dbus-bluez.vala.c: In function ‘bluez_register_object’: /home/ulltor/vala-dbus/dbus-bluez.vala.c:331: error: ‘connection’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:333: error: ‘_bluez_dbus_interface_info’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:333: error: ‘_bluez_dbus_interface_vtable’ undeclared (first use in this function)
/home/ulltor/vala-dbus/dbus-bluez.vala.c: In function ‘_vala_main’:
/home/ulltor/vala-dbus/dbus-bluez.vala.c:405: error: ‘G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES’ undeclared (first use in this function) /home/ulltor/vala-dbus/dbus-bluez.vala.c:405: error: ‘G_BUS_TYPE_SYSTEM’ undeclared (first use in this function)
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
**************************************************************************

--
Best regards, Gavrilov Maksim.
E-mail: ull...@gmail.com
JID: ull...@jabber.ru
ICQ: 7-155-855

_______________________________________________
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to