linux_dvd_rw_utils.c incompatible with current kernel includes

Andrey Borzenkov arvidjaar at mail.ru
Sat Jul 14 11:33:01 PDT 2007


rebuilding with linux includes from 2.6.21:

gcc -DHAVE_CONFIG_H -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   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include        -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fexceptions -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT 
probe-volume.o -MD -MP -MF .deps/probe-volume.Tpo -c -o probe-volume.o 
probe-volume.c
linux_dvd_rw_utils.c: In function 'scsi_command_transport':
linux_dvd_rw_utils.c:152: warning: pointer of type 'void *' used in arithmetic
linux_dvd_rw_utils.c:152: warning: dereferencing 'void *' pointer
linux_dvd_rw_utils.c:152: error: void value not ignored as it ought to be
linux_dvd_rw_utils.c:152: warning: pointer of type 'void *' used in arithmetic
linux_dvd_rw_utils.c:152: warning: dereferencing 'void *' pointer
linux_dvd_rw_utils.c:152: error: void value not ignored as it ought to be
linux_dvd_rw_utils.c:152: warning: pointer of type 'void *' used in arithmetic
linux_dvd_rw_utils.c:152: warning: dereferencing 'void *' pointer
linux_dvd_rw_utils.c:152: error: void value not ignored as it ought to be
linux_dvd_rw_utils.c:152: warning: pointer of type 'void *' used in arithmetic
linux_dvd_rw_utils.c:152: warning: dereferencing 'void *' pointer
linux_dvd_rw_utils.c:152: error: void value not ignored as it ought to be
linux_dvd_rw_utils.c:152: warning: pointer of type 'void *' used in arithmetic
linux_dvd_rw_utils.c:152: warning: dereferencing 'void *' pointer
linux_dvd_rw_utils.c:152: error: void value not ignored as it ought to be
linux_dvd_rw_utils.c:153: warning: pointer of type 'void *' used in arithmetic
linux_dvd_rw_utils.c:153: warning: dereferencing 'void *' pointer
linux_dvd_rw_utils.c:153: error: void value not ignored as it ought to be
linux_dvd_rw_utils.c:153: warning: pointer of type 'void *' used in arithmetic
linux_dvd_rw_utils.c:153: warning: dereferencing 'void *' pointer
linux_dvd_rw_utils.c:153: error: void value not ignored as it ought to be
linux_dvd_rw_utils.c:153: warning: pointer of type 'void *' used in arithmetic
linux_dvd_rw_utils.c:153: warning: dereferencing 'void *' pointer
linux_dvd_rw_utils.c:153: error: void value not ignored as it ought to be
linux_dvd_rw_utils.c: In function 'scsi_command_init':
linux_dvd_rw_utils.c:175: error: 'SG_FLAG_LUN_INHIBIT' undeclared (first use 
in this function)
linux_dvd_rw_utils.c:175: error: (Each undeclared identifier is reported only 
once
linux_dvd_rw_utils.c:175: error: for each function it appears in.)
make[5]: *** [linux_dvd_rw_utils.o] Error 1

while fixing sg_ui.sbp is relatively easy (just add cast), what 
SG_FLAG_LUN_INHIBIT is supposed to do and what should be used instead?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/hal/attachments/20070714/523b6209/attachment.pgp 


More information about the hal mailing list