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

Bug#684330: /usr/include/netinet/sctp.h: <netinet/sctp.h> does not compile



Package: kfreebsd-kernel-headers
Version: 0.53
Severity: important
File: /usr/include/netinet/sctp.h

The following test program fails to compile:

#include <netinet/sctp.h>
main(void) { struct sctp_event_subscribe v; return 0; }

gcc -c -o test test.c
In file included from test.c:1:
/usr/include/netinet/sctp.h:33: error: expected declaration specifiers or ‘...’ before string constant
In file included from test.c:1:
/usr/include/netinet/sctp.h:47: error: expected specifier-qualifier-list before ‘uint16_t’
/usr/include/netinet/sctp.h:58: error: expected specifier-qualifier-list before ‘uint8_t’
/usr/include/netinet/sctp.h:68: error: expected specifier-qualifier-list before ‘uint16_t’
/usr/include/netinet/sctp.h:316: error: expected specifier-qualifier-list before ‘uint16_t’
/usr/include/netinet/sctp.h:323: error: expected specifier-qualifier-list before ‘uint16_t’
/usr/include/netinet/sctp.h:329: error: expected specifier-qualifier-list before ‘uint32_t’
/usr/include/netinet/sctp.h:335: error: expected specifier-qualifier-list before ‘uint32_t’
In file included from /usr/include/netinet/sctp.h:494,
                 from test.c:1:
/usr/include/netinet/sctp_uio.h:33: error: expected declaration specifiers or ‘...’ before string constant


It seems to me that the wrong cdefs.h gets included.

The problem exists with both package versions 0.53 and 0.82  (current wheezy).

Cheers,
Reinhard

-- System Information:
Debian Release: 6.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.2-1-amd64
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information


Reply to: