Greetings,
I have the following simple compilation problem with missing #defines.
Searching on the web found some kernel patches, but nothing that
explained why these #defines went away or what their
replacement/equivalent is now. Can anyone give a new parallel port user
an explanation of the development history and suggest a fix?
System:
2.4.2 kernel redhat linux
Problem:
Image software using parport doesn't compile
( http://www.ee.uwa.edu.au/~braunl/improv/ )
Error:
../../ximprov-4.0/v4l/eyecam.c:126: `PARPORT_CONTROL_INTEN' undeclared
(first use in this function)
../../ximprov-4.0/v4l/eyecam.c:126: (Each undeclared identifier is
reported only once
../../ximprov-4.0/v4l/eyecam.c:621: `PARPORT_CONTROL_DIRECTION'
undeclared (first use in this function)
../../ximprov-4.0/v4l/eyecam.c: In function `set_output_mode':
../../ximprov-4.0/v4l/eyecam.c:628: `PARPORT_CONTROL_DIRECTION'
undeclared (first use in this function)
Indeed, these constants don't exist on my system.
/usr/local/include/linux/parport.h:
#define PARPORT_CONTROL_STROBE 0x1
#define PARPORT_CONTROL_AUTOFD 0x2
#define PARPORT_CONTROL_INIT 0x4
#define PARPORT_CONTROL_SELECT 0x8
#define PARPORT_STATUS_ERROR 0x8
#define PARPORT_STATUS_SELECT 0x10
#define PARPORT_STATUS_PAPEROUT 0x20
#define PARPORT_STATUS_ACK 0x40
#define PARPORT_STATUS_BUSY 0x80
-- John Cotton mailto:jcotton@ualberta.ca http://www.ualberta.ca/~jcotton/-- To unsubscribe, send mail to: linux-parport-request@torque.net -- -- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Fri Mar 01 2002 - 15:06:30 EST