On 5/14/07, Olaf Grüttner <[EMAIL PROTECTED]> wrote: > > I compiled hal-0.5.7.1 and the error is: > > make[3]: Entering directory `/usr/src/hal-0.5.7.1/tools' > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" > -DPACKAGE_BIN_DIR=\""/usr/bin"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" > -I.. -I../libhal -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -Wall > -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith > -Wcast-align -Wsign-compare -MT lshal.o -MD -MP -MF ".deps/lshal.Tpo" -c -o > lshal.o lshal.c; \ > then mv -f ".deps/lshal.Tpo" ".deps/lshal.Po"; else rm -f ".deps/lshal.Tpo"; > exit 1; fi > lshal.c: In function 'main': > lshal.c:704: warning: implicit declaration of function > 'dbus_connection_disconnect' > lshal.c:704: warning: nested extern declaration of > 'dbus_connection_disconnect' > /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wchar-subscripts > -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align > -Wsign-compare -o lshal lshal.o -ldbus-glib-1 -lgobject-2.0 -lglib-2.0 > -ldbus-1 ../libhal/libhal.la > mkdir .libs > gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs > -Wpointer-arith -Wcast-align -Wsign-compare -o .libs/lshal lshal.o > /usr/lib/libdbus-glib-1.so -lnsl /usr/lib/libgobject-2.0.so > /usr/lib/libglib-2.0.so ../libhal/.libs/libhal.so /usr/lib/libdbus-1.so > lshal.o: In function `main': > /usr/src/hal-0.5.7.1/tools/lshal.c:704: undefined reference to > `dbus_connection_disconnect' > collect2: ld returned 1 exit status > make[3]: *** [lshal] Error 1 > make[3]: Leaving directory `/usr/src/hal-0.5.7.1/tools' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/usr/src/hal-0.5.7.1/tools' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/src/hal-0.5.7.1' > make: *** [all] Error 2
Oh, yeah. Here's a patch to make that work with dbus-1.0.x. Apply it with "patch -p0". http://svn.gnome.org/viewcvs/jhbuild/trunk/patches/hal-dbus_connection_close.patch?view=markup -- Dan -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
