Click to See Complete Forum and Search --> : <sys/ioctl.h> wont compile when installing CUPS, whatsup


pythagras
03-04-2003, 01:44 AM
Yeah, Im trying to REcompile cups (as in I just compiled this last week), and it appears that my ioctl.h file wont compile I get these warnings from the configure script:

--BEGIN
checking sys/ioctl.h presence... yes
configure: WARNING: sys/ioctl.h: present but cannot be compiled
configure: WARNING: sys/ioctl.h: check for missing prerequisite headers?
configure: WARNING: sys/ioctl.h: proceeding with the preprocessor's result
checking for sys/ioctl.h... yes
--END

Then when I run "make" I receive:

--BEGIN
In file included from scsi.c:69:
/usr/include/sys/ioctl.h:17: syntax error before "unsigned"
/usr/include/sys/ioctl.h:27: syntax error before "unsigned"
/usr/include/sys/ioctl.h:157: parse error before "__u32"
/usr/include/sys/ioctl.h: In function `csum_ipv6_magic':
/usr/include/sys/ioctl.h:174: `sum' undeclared (first use in this function)
/usr/include/sys/ioctl.h:174: (Each undeclared identifier is reported only once
/usr/include/sys/ioctl.h:174: for each function it appears in.)
/usr/include/sys/ioctl.h:175: `saddr' undeclared (first use in this function)
/usr/include/sys/ioctl.h:175: `daddr' undeclared (first use in this function)
/usr/include/sys/ioctl.h:176: `len' undeclared (first use in this function)
/usr/include/sys/ioctl.h:176: `proto' undeclared (first use in this function)
/usr/include/sys/ioctl.h: In function `csum_and_copy_to_user':
/usr/include/sys/ioctl.h:188: `VERIFY_WRITE' undeclared (first use in this function)
In file included from scsi.c:69:
/usr/include/sys/ioctl.h:197:2: warning: #warning Using kernel header in userspace!
In file included from scsi.c:83:
scsi-linux.c: In function `print_device':
scsi-linux.c:193: warning: implicit declaration of function `ioctl'
make[1]: *** [scsi.o] Error 1
make: *** [all] Error 1
--END

In looking at my ioctl.h header, this is (some) of what I see. It seems odd because there are identifiers that appear to be undefined, and no precompiler directives to include any other headers..

--BEGIN
#ifndef _I386_CHECKSUM_H
#define _I386_CHECKSUM_H


/*
* computes the checksum of a memory block at buff, length len,
* and adds in "sum" (32-bit)
*
* returns a 32-bit number suitable for feeding into itself
* or csum_tcpudp_magic
*
* this function must be called with even lengths, except
* for the last fragment, which may be odd
*
* it's best to have buff aligned on a 32-bit boundary
*/
asmlinkage unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum);
-- END

I am running RH 8.0 i686.

Any help or pointers would be apreciated.