Bluez - Problemi di compilazione pack pin

Postate qui per tutte le discussioni legate a Linux in generale.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Gnu/Linux in genere, se l'argomento è specifico alla Slackware usate uno dei forum Slackware o Slackware64.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
Avatar utente
ZaZa
Linux 0.x
Linux 0.x
Messaggi: 11
Iscritto il: mer 28 set 2005, 12:09

Bluez - Problemi di compilazione pack pin

Messaggio da ZaZa »

Ho provato ad installare i pacchetti di bluez. Ho avuto problemi solo sul pacchetto bluez-pin.0.26. vi pasto l'output:

cc -O2 -g `pkg-config --cflags gtk+-2.0 libglade-2.0 dbus-glib-1 gconf-2.0` -DGTK_DISABLE_DEPRECATED -DDBUS_API_SUBJECT_TO_CHANGE -Wall -Os -fomit-frame-pointer -DPACKAGE=\"bluez-pin\" -DPREFIX=\"/usr/local\" -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -c main.c -o main.o
Package dbus-glib-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-glib-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-glib-1' found
main.c:20:21: gtk/gtk.h: No such file or directory
main.c:22:23: dbus/dbus.h: No such file or directory
main.c:23:28: dbus/dbus-glib.h: No such file or directory
main.c:24:37: dbus/dbus-glib-lowlevel.h: No such file or directory
In file included from main.c:26:
pin-ui.h:4: error: syntax error before "outgoing"
main.c:36: error: syntax error before "bluez_pin_handle_dbus_request"
main.c:36: error: syntax error before '*' token
main.c:36: warning: type defaults to `int' in declaration of `bluez_pin_handle_dbus_request'
main.c:36: warning: data definition has no type or storage class
main.c:39: error: syntax error before "handler_func"
main.c:39: error: syntax error before '*' token
main.c:42: warning: return type defaults to `int'
main.c: In function `handler_func':
main.c:43: warning: implicit declaration of function `dbus_message_is_method_call'
main.c:43: error: `message' undeclared (first use in this function)
main.c:43: error: (Each undeclared identifier is reported only once
main.c:43: error: for each function it appears in.)
main.c:44: error: `connection' undeclared (first use in this function)
main.c:49: warning: implicit declaration of function `dbus_message_is_signal'
main.c:50: error: `DBUS_INTERFACE_ORG_FREEDESKTOP_LOCAL' undeclared (first use in this function)
main.c:54: error: `DBUS_HANDLER_RESULT_NOT_YET_HANDLED' undeclared (first use in this function)
main.c: At top level:
main.c:57: error: syntax error before "dbus_vtable"
main.c:57: warning: type defaults to `int' in declaration of `dbus_vtable'
main.c:58: warning: initialization makes integer from pointer without a cast
main.c:59: warning: excess elements in scalar initializer
main.c:59: warning: (near initialization for `dbus_vtable')
main.c:61: warning: excess elements in scalar initializer
main.c:61: warning: (near initialization for `dbus_vtable')
main.c:61: warning: data definition has no type or storage class
main.c: In function `bluez_pin_dbus_server_run':
main.c:66: error: `DBusConnection' undeclared (first use in this function)
main.c:66: error: `connection' undeclared (first use in this function)
main.c:67: error: `DBusError' undeclared (first use in this function)
main.c:67: error: syntax error before "error"
main.c:72: warning: implicit declaration of function `dbus_error_init'
main.c:72: error: `error' undeclared (first use in this function)
main.c:73: warning: implicit declaration of function `dbus_bus_get'
main.c:73: error: `DBUS_BUS_SYSTEM' undeclared (first use in this function)
main.c:78: warning: implicit declaration of function `dbus_error_free'
main.c:82: warning: implicit declaration of function `dbus_connection_setup_with_g_main'
main.c:84: warning: implicit declaration of function `dbus_connection_register_object_path'
main.c:87: warning: implicit declaration of function `dbus_bus_acquire_service'
main.c:88: warning: implicit declaration of function `dbus_error_is_set'
main.c: At top level:
main.c:108: error: syntax error before "gchar"
main.c: In function `legacy_pin_result':
main.c:110: error: `result' undeclared (first use in this function)
main.c:115: warning: implicit declaration of function `gtk_main_quit'
main.c: At top level:
main.c:119: error: syntax error before "outgoing"
main.c: In function `legacy_pin_request':
main.c:123: error: `outgoing' undeclared (first use in this function)
main.c:123: error: `address' undeclared (first use in this function)
main.c:123: error: `name' undeclared (first use in this function)
main.c:125: warning: implicit declaration of function `g_signal_connect'
main.c:125: warning: implicit declaration of function `G_OBJECT'
main.c:125: warning: implicit declaration of function `G_CALLBACK'
main.c: In function `main':
main.c:140: error: `gboolean' undeclared (first use in this function)
main.c:140: error: syntax error before "dbus_mode"
main.c:141: error: `gchar' undeclared (first use in this function)
main.c:141: error: `address' undeclared (first use in this function)
main.c:141: error: `name' undeclared (first use in this function)
main.c:141: warning: left-hand operand of comma expression has no effect
main.c:151: error: `dbus_mode' undeclared (first use in this function)
main.c:151: error: `TRUE' undeclared (first use in this function)
main.c:153: error: `FALSE' undeclared (first use in this function)
main.c:187: warning: implicit declaration of function `gtk_set_locale'
main.c:188: warning: implicit declaration of function `gtk_init'
main.c:194: warning: implicit declaration of function `gtk_main'
main.c:198: error: syntax error before "outgoing"
main.c:204: error: `outgoing' undeclared (first use in this function)
make: *** [main.o] Error 1

ho installato glib e cacchi vari ma non cambia nulla....
Consigli? idee? che devo fare?
Grazie a tutti.

Avatar utente
Sidereus
Linux 2.x
Linux 2.x
Messaggi: 343
Iscritto il: gio 10 feb 2005, 0:00
Località: Cremona

Messaggio da Sidereus »

Quel programma richiede gconf che era di gnome. Per il bluetooth comunque non serve.
Se vuoi utilizzarlo basta seguire quello che c'è scritto in questo post.
Non serve bluez-pin è facoltativo.
Ciaooooo

Avatar utente
ZaZa
Linux 0.x
Linux 0.x
Messaggi: 11
Iscritto il: mer 28 set 2005, 12:09

Messaggio da ZaZa »

Ti ringrazio! :D

Rispondi