hal 0.5.0 compile and linux_dvd_rw_utils.o

David Zeuthen david at fubar.dk
Mon Apr 18 11:09:07 PDT 2005


On Mon, 2005-04-18 at 06:36 -0400, Dennis Veatch wrote:
> The compile goes fine till it gets to the linux_dvd_rw_utils and I am not sure 
> what to do about it. Here is the problem area;
> 
> probe-storage.c:55: warning: no previous declaration for `volume_id_log'
> if gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -DPACKAGE_SYSCONF_DIR=\""/etc"\" 
> -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" 
> -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" 
> -DPACKAGE_LOCALSTATEDIR=\""/var"\" -I../../.. -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      -O2 -mcpu=i686 -march=i686 -mmmx -msse 
> -mfpmath=sse,387 -Wall -Wchar-subscripts -Wmissing-declarations 
> -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT 
> linux_dvd_rw_utils.o -MD -MP -MF ".deps/linux_dvd_rw_utils.Tpo" -c -o 
> linux_dvd_rw_utils.o linux_dvd_rw_utils.c; \
> then mv -f ".deps/linux_dvd_rw_utils.Tpo" ".deps/linux_dvd_rw_utils.Po"; else 
> rm -f ".deps/linux_dvd_rw_utils.Tpo"; exit 1; fi
> linux_dvd_rw_utils.c: In function `scsi_command_init':
> linux_dvd_rw_utils.c:172: error: `SG_FLAG_LUN_INHIBIT' undeclared (first use 
> in this function)
> linux_dvd_rw_utils.c:172: error: (Each undeclared identifier is reported only 
> once
> linux_dvd_rw_utils.c:172: error: for each function it appears in.)
> make[5]: *** [linux_dvd_rw_utils.o] Error 1
> 
> 
> Any help is greatly appreciated.

        [davidz at daxter ~]$ grep SG_FLAG_LUN_INHIBIT /usr/include/scsi/sg.h
        #define SG_FLAG_LUN_INHIBIT 2   /* default is to put device's lun into */
        [davidz at daxter ~]$ rpm -qf /usr/include/scsi/sg.h
        glibc-headers-2.3.4-21
        
Looks like you need an updated version of the glibc headers or what it's
called on your distribution.

Cheers,
David


_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list