[ntp:questions] linux/serial.h warning w/ 4.2.4p6

udovdh at gmail.com udovdh at gmail.com
Mon Feb 2 16:04:09 UTC 2009

On Feb 1, 11:07 pm, Harlan Stenn <st... at ntp.org> wrote:
> If you can figure out what other headers are needed to run that test without
> complaint I can add them to the test for this header in configure.ac

I found:

configure:49412: checking linux/serial.h usability
configure:49424: gcc -c -m32 -march=i686 -mtune=c3-2 -pipe -mmmx -msse
-fomit-frame-pointer -ffast-math -finline-functions -mfpmath=sse,387 -
Os -pie -fPIE  -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -
Wshadow -Wstrict-prototypes  conftest.c >&5
In file included from conftest.c:246:
/usr/include/linux/serial.h:184: error: expected specifier-qualifier-
list before '__u32'

This is about the first __u32 in:

struct serial_rs485 {
        __u32   flags;                  /* RS485 feature flags */
#define SER_RS485_ENABLED               (1 << 0)
#define SER_RS485_RTS_ON_SEND           (1 << 1)
#define SER_RS485_RTS_AFTER_SEND        (1 << 2)
        __u32   delay_rts_before_send;  /* Milliseconds */
        __u32   padding[6];             /* Memory is cheap, new
                                           are a royal PITA .. */

Which is the serial.h at /lib/modules/
serial.h which is needed to build ntpd with LinuxPPS support:

(i.e.: see the links)

Currently I don't know how what the solution is.

More information about the questions mailing list