the same 4.15 kernel is getting built on b/c/d/e, and 
scripts/selinux/genheaders/genheaders.c includes the local header files, 
specifically <sys/socket.h>:
#include <sys/socket.h>
which define PF_MAX (via AF_MAX) as 45 for cosmic and later.  however 
genheaders.c also:
#include "classmap.h"
which is security/selinux/include/classmap.h and that does:
#if PF_MAX > 44
#error New address family defined, please update secclass_map.
#endif

$ git grep AF_MAX ubuntu/bionic/master-next socket.h 
ubuntu/bionic/master-next:socket.h:#define AF_MAX               44      /* For 
now.. */
ubuntu/bionic/master-next:socket.h:#define PF_MAX               AF_MAX
$ git grep AF_MAX ubuntu/cosmic/master-next socket.h 
ubuntu/cosmic/master-next:socket.h:#define AF_MAX               45      /* For 
now.. */
ubuntu/cosmic/master-next:socket.h:#define PF_MAX               AF_MAX
$ git grep AF_MAX ubuntu/disco/master-next socket.h 
ubuntu/disco/master-next:socket.h:#define AF_MAX                45      /* For 
now.. */
ubuntu/disco/master-next:socket.h:#define PF_MAX                AF_MAX
$ git grep AF_MAX ubuntu/eoan/master-next socket.h 
ubuntu/eoan/master-next:socket.h:#define AF_MAX         45      /* For now.. */
ubuntu/eoan/master-next:socket.h:#define PF_MAX         AF_MAX

This is probably a bug that should be fixed in genheaders.c upstream,
although I don't quite understand why the 4.15 linux-oracle kernel is
getting built on cosmic, disco, or eoan.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oracle in Ubuntu.
https://bugs.launchpad.net/bugs/1823429

Title:
  linux-oracle ftbfs in disco

Status in linux-oracle package in Ubuntu:
  Confirmed

Bug description:
  https://launchpadlibrarian.net/417924791/buildlog_ubuntu-disco-amd64
  .linux-oracle_4.15.0-1010.12_BUILDING.txt.gz

    HOSTLD  scripts/mod/modpost
    HOSTCC  scripts/selinux/genheaders/genheaders
  In file included from 
/<<PKGBUILDDIR>>/scripts/selinux/genheaders/genheaders.c:19:
  /<<PKGBUILDDIR>>/security/selinux/include/classmap.h:247:2: error: #error New 
address family defined, please update secclass_map.
   #error New address family defined, please update secclass_map.
    ^~~~~
  make[6]: *** [scripts/Makefile.host:90: 
scripts/selinux/genheaders/genheaders] Error 1
  make[5]: *** [/<<PKGBUILDDIR>>/scripts/Makefile.build:606: 
scripts/selinux/genheaders] Error 2
  make[4]: *** [/<<PKGBUILDDIR>>/scripts/Makefile.build:606: scripts/selinux] 
Error 2
  make[3]: *** [/<<PKGBUILDDIR>>/Makefile:589: scripts] Error 2
  make[2]: *** [/<<PKGBUILDDIR>>/Makefile:278: __build_one_by_one] Error 2
  make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/build-oracle'
  make[1]: *** [Makefile:146: sub-make] Error 2
  make[1]: Leaving directory '/<<PKGBUILDDIR>>'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-oracle/+bug/1823429/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to