Cannot include "netinet/in.h" with "linux/netfilter/nf_nat.h" and "sys/capability.h"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I expect to be able to compile the following program (and indeed I am able to compile it on Ubuntu release before 15.10):
```
// test.c
#include "sys/capability.h"
#include "netinet/in.h"
#include "linux/
int main() {
// Program that needs to call capset() and htonl(), and also needs
// to do some netfilter things with NF_ACCEPT...
}
```
However, on 15.10 I get a bunch of errors:
```
$ gcc test.c
In file included from test.c:3:0:
/usr/include/
IPPROTO_IP = 0, /* Dummy protocol for TCP */
^
/usr/include/
IPPROTO_IP = 0, /* Dummy protocol for TCP. */
^
...
```
This bug breaks the build for Sandstorm on Ubuntu 15.10:
https:/
```
$ lsb_release -rd
Description: Ubuntu 15.10
Release: 15.10
$ apt-cache policy linux-libc-dev
linux-libc-dev:
Installed: 4.2.0-16.19
Candidate: 4.2.0-16.19
Version table:
*** 4.2.0-16.19 0
500 http://
100 /var/lib/
```
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version k4.2.0-16-generic.
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.19.1-0ubuntu3
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/
Card0.Amixer.info: Error: [Errno 2] No such file or directory
Card0.Amixer.
DistroRelease: Ubuntu 15.10
HibernationDevice: RESUME=
InstallationDate: Installed on 2015-10-19 (6 days ago)
InstallationMedia: Ubuntu-Server 15.10 "Wily Werewolf" - Alpha amd64 (20150924)
IwConfig:
enp0s8 no wireless extensions.
enp0s3 no wireless extensions.
lo no wireless extensions.
Lsusb:
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: innotek GmbH VirtualBox
Package: linux (not installed)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB:
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.149
RfKill: Error: [Errno 2] No such file or directory
Tags: wily wily
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
Uname: Linux 4.2.0-16-generic x86_64
UnreportableReason: The report belongs to a package that is not installed.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.board.name: VirtualBox
dmi.board.vendor: Oracle Corporation
dmi.board.version: 1.2
dmi.chassis.type: 1
dmi.chassis.vendor: Oracle Corporation
dmi.modalias: dmi:bvninnotekG
dmi.product.name: VirtualBox
dmi.product.
dmi.sys.vendor: innotek GmbH
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1509894
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.