gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] HEAD broken on ubuntu


From: Hal Murray
Subject: [gpsd-dev] HEAD broken on ubuntu
Date: Sat, 24 Jan 2015 19:59:36 -0800

gcc -o gpsd.o -c -D_GNU_SOURCE -Wmissing-prototypes -Wextra -Wall 
-Wno-uninitialized -Wno-missing-field-initializers -Wcast-align 
-Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes 
-Wpointer-arith -Wreturn-type -pthread -Wmissing-declarations -O2 -pthread 
gpsd.c
gpsd.c: In function 'detach_client':
gpsd.c:562:2: warning: implicit declaration of function 'ioctl' 
[-Wimplicit-function-declaration]
  ioctl(sub->fd, SIOCOUTQ, &outstanding);
  ^
In file included from gpsd.c:45:0:
gpsd.c:562:17: error: 'TIOCOUTQ' undeclared (first use in this function)
  ioctl(sub->fd, SIOCOUTQ, &outstanding);
                 ^
gpsd.c:562:17: note: each undeclared identifier is reported only once for 
each function it appears in
scons: *** [gpsd.o] Error 1
scons: building terminated because of errors.

man ioctl says:
       #include <sys/ioctl.h>
Inserting that fixes things.  Back to testing.


-- 
These are my opinions.  I hate spam.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]