Compiling issues hal from CVS
Stef van der Made
svdmade at planet.nl
Fri Oct 15 05:03:20 PDT 2004
Dear Guys,
I'm trying to get hal compiled so that I can start using the latest
gnome software who is dependant on hal. I have been able to solve some
of the issues using the mailing list but I'm really stuck now. I've
checkedout hal yesterday from CVS and ran ./autogen.h and then make.
What is my problem. During the compile I get this error
In file included from linux/platform_bus_device.c:43:
/usr/include/linux/fd.h:342: error: variable or field `__user' declared void
/usr/include/linux/fd.h:342: error: parse error before '*' token
/usr/include/linux/fd.h:360: error: parse error before '}' token
make[3]: *** [platform_bus_device.o] Error 1
I have been looking at the offending files but I can't seem to find
anything wrong as I'm a not a programmer. My fd.h file which seems to be
causing the issue looks like this it is the kernel header file for 2.6.7:
<snip>
/* more "out" flags */
#define FD_RAW_FAILURE 0x10000 /* command sent to fdc, fdc returned error */
#define FD_RAW_HARDFAILURE 0x20000 /* fdc had to be reset, or timed out */
void __user *data;
char *kernel_data; /* location of data buffer in the kernel */
struct floppy_raw_cmd *next; /* used for chaining of raw cmd's
* within the kernel */
long length; /* in: length of dma transfer. out: remaining bytes */
long phys_length; /* physical length, if different from dma
length */
int buffer_length; /* length of allocated buffer */
unsigned char rate;
unsigned char cmd_count;
unsigned char cmd[16];
unsigned char reply_count;
unsigned char reply[16];
int track;
int resultcode;
int reserved1;
int reserved2;
};
#define FDRAWCMD _IO(2, 0x58)
/* send a raw command to the fdc. Structure size not included, because of
* batches */
#define FDTWADDLE _IO(2, 0x59)
/* flicker motor-on bit before reading a sector. Experimental */
#define FDEJECT _IO(2, 0x5a)
/* eject the disk */
#endif
Thanks in advance for your help,
Stef
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list