Hi there.

I've obtained this program, but am having a problem getting it to
compile. Here's the report I get...

 Q> compiling /usr/local/SatTrack/obj/sattrack.o ...
 Q> /usr/local/SatTrack/src/sattrack/sattrack.c: In function
        `checkKeyboard':
 Q> /usr/local/SatTrack/src/sattrack/sattrack.c:2090: warning:
        implicit declaration of function `ioctl'
 Q> /usr/local/SatTrack/src/sattrack/sattrack.c:2090: `TCGETS'
        undeclared (first use this function)
 Q> /usr/local/SatTrack/src/sattrack/sattrack.c:2090: (Each
        undeclared identifier is reported only once
 Q> /usr/local/SatTrack/src/sattrack/sattrack.c:2090: for each
        function it appears in.)
 Q> /usr/local/SatTrack/src/sattrack/sattrack.c:2122: `TCSETS'
        undeclared (first use this function)
 Q> make: *** [/usr/local/SatTrack/obj/sattrack.o] Error 1

As far as I can tell, this is because of the following code earlier in
the same file:

 Q> #ifdef IOCTL
 Q> #include <sys/ioctl.h>
 Q> #endif

The include file mentioned therein defines the missing symbols, and if
I delete the surrounding ifdef-endif then it compiles OK, suggesting
that IOCTL is not defined when it should be. However, I'm a little
wary in case by doing so, I upset something else...

Does anybody have any suggestions?

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux  |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch.   |
+----------------------------------------------------------------------+
 * ftp://ftp.Amush.cx/pub/rhw/Linux
 * http://www.Amush.cx/~rhw/kernel.versions.html

Reply via email to