Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497006 - net-fs/openafs-kernel-1.6.5-r2 with CONFIG_UIDGID_STRICT_TYPE_CHECKS=y in kernel - osi_machdep.h:160:17: error: incompatible types when assigning to type ‘kuid_t’ from type ‘uid_t’
Summary: net-fs/openafs-kernel-1.6.5-r2 with CONFIG_UIDGID_STRICT_TYPE_CHECKS=y in ker...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrej Filipcic
URL:
Whiteboard:
Keywords:
: 506682 519826 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-04 20:11 UTC by Andrew Savchenko
Modified: 2015-03-22 21:36 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,93.68 KB, text/plain)
2014-01-04 20:13 UTC, Andrew Savchenko
Details
environment (environment,154.19 KB, text/plain)
2014-01-04 20:13 UTC, Andrew Savchenko
Details
emerge --info (emerge.info,8.72 KB, text/plain)
2014-01-04 20:13 UTC, Andrew Savchenko
Details
Kernel config file (.config,60.31 KB, text/plain)
2014-08-04 18:50 UTC, Jan Hrabe
Details
openafs-1.6.5-fix-kuid-uid-incompat-types.patch (openafs-1.6.5-fix-uidguid-strict-type-checks.patch,10.25 KB, patch)
2015-01-21 07:51 UTC, Adam Feldman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2014-01-04 20:11:24 UTC
Hello,

the latest openafs fails to compile with kernels where CONFIG_UIDGID_STRICT_TYPE_CHECKS=y is enabled (this option is required for CONFIG_USER_NS thus for any LXC setup):

In file included from /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/afs_osi.h:440:0,
                 from /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/rx/rx_clock.h:46,
                 from /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/rx/rx.h:29,
                 from /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/afsincludes.h:30,
                 from /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/libafs/MODLOAD-3.12.6-yoruichi-SP/afs_error.c:34:
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h: In function ‘afs_set_cr_uid’:
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h:160:17: error: incompatible types when assigning to type ‘kuid_t’ from type ‘uid_t’
     cred->fsuid = uid;
                 ^
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h: In function ‘afs_set_cr_gid’:
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h:164:17: error: incompatible types when assigning to type ‘kgid_t’ from type ‘gid_t’
     cred->fsgid = gid;
                 ^
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h: In function ‘afs_set_cr_ruid’:
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h:168:15: error: incompatible types when assigning to type ‘kuid_t’ from type ‘uid_t’
     cred->uid = uid;
               ^
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h: In function ‘afs_set_cr_rgid’:
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h:172:15: error: incompatible types when assigning to type ‘kgid_t’ from type ‘gid_t’
     cred->gid = gid;
               ^
scripts/Makefile.build:308: recipe for target '/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/libafs/MODLOAD-3.12.6-yoruichi-SP/afs_error.o' failed

The same happens with the latest released openafs-1.6.5.2

This is a known problem:
https://bugs.launchpad.net/ubuntu/+source/openafs/+bug/1246675
And from the bug above patches are available and accepted upstream:
http://git.openafs.org/?p=openafs.git;a=commitdiff;h=70790f87b7b0ef3746c043a868c4306e05008ecd
http://git.openafs.org/?p=openafs.git;a=commitdiff;h=30160ad6eec3c290a770b6069fc106f452e5b4ba
http://git.openafs.org/?p=openafs.git;a=commitdiff;h=8f88530289297117b001d81843e3ac23564815d0
They will be included into 1.6.6 release, though these patches doesn't apply on top of 1.6.5 branch without additional work and need to be adjusted.

ATM I reconfigured my kernel without USER_NS and UIDGID_STRICT_TYPE_CHECKS (I can live without this for a while.
Comment 1 Andrew Savchenko gentoo-dev 2014-01-04 20:13:22 UTC
Created attachment 366998 [details]
build.log
Comment 2 Andrew Savchenko gentoo-dev 2014-01-04 20:13:38 UTC
Created attachment 367000 [details]
environment
Comment 3 Andrew Savchenko gentoo-dev 2014-01-04 20:13:53 UTC
Created attachment 367002 [details]
emerge --info
Comment 4 Andrej Filipcic 2014-02-05 14:56:56 UTC
I have just posted ebuilds for release 1.6.6 which is supposed to fix that. Can you test it please?
https://bugs.gentoo.org/show_bug.cgi?id=500378
Comment 5 Andrew Savchenko gentoo-dev 2014-05-16 05:27:39 UTC
(In reply to Andrej Filipcic from comment #4)
> I have just posted ebuilds for release 1.6.6 which is supposed to fix that.
> Can you test it please?
> https://bugs.gentoo.org/show_bug.cgi?id=500378

Works fine, thanks.
Comment 6 Jan Hrabe 2014-08-04 18:50:23 UTC
Created attachment 382266 [details]
Kernel config file
Comment 7 Jan Hrabe 2014-08-04 18:52:39 UTC
This may happen not only when CONFIG_UIDGID_STRICT_TYPE_CHECKS=y.  I attached my kernel config file.  The error is:

---------

...
...

openafs-1.6.5/include -I/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/include/afs  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(afs_error)"  -c -o /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/libafs/MODLOAD-3.14.14-gentoo-MP/afs_error.o /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/libafs/MODLOAD-3.14.14-gentoo-MP/afs_error.c
In file included from /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/afs_osi.h:440:0,
                 from /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/rx/rx_clock.h:46,
                 from /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/rx/rx.h:29,
                 from /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/afsincludes.h:30,
                 from /var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/libafs/MODLOAD-3.14.14-gentoo-MP/afs_error.c:34:
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h: In function 'afs_set_cr_uid':
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h:160:17: error: incompatible types when assigning to type 'kuid_t' from type 'uid_t'
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h: In function 'afs_set_cr_gid':
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h:164:17: error: incompatible types when assigning to type 'kgid_t' from type 'gid_t'
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h: In function 'afs_set_cr_ruid':
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h:168:15: error: incompatible types when assigning to type 'kuid_t' from type 'uid_t'
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h: In function 'afs_set_cr_rgid':
/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/afs/LINUX/osi_machdep.h:172:15: error: incompatible types when assigning to type 'kgid_t' from type 'gid_t'
make[6]: *** [/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/libafs/MODLOAD-3.14.14-gentoo-MP/afs_error.o] Error 1
make[5]: *** [_module_/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/libafs/MODLOAD-3.14.14-gentoo-MP] Error 2
make[5]: Leaving directory `/usr/src/linux-3.14.14-gentoo'
rm .makelog
cp libafs.ko libafs-3.14.14-gentoo.mp.ko
cp: cannot stat 'libafs.ko': No such file or directory
make[4]: *** [libafs-3.14.14-gentoo.mp.ko] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/libafs/MODLOAD-3.14.14-gentoo-MP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5'
make: *** [only_libafs] Error 2
 * ERROR: net-fs/openafs-kernel-1.6.5-r2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-fs/openafs-kernel-1.6.5-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-fs/openafs-kernel-1.6.5-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5'
 * S: '/var/tmp/portage/net-fs/openafs-kernel-1.6.5-r2/work/openafs-1.6.5'
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-13 23:10:13 UTC
*** Bug 519826 has been marked as a duplicate of this bug. ***
Comment 9 Pierre 2014-12-25 23:12:04 UTC
I have the same problem
Comment 10 Adam Feldman gentoo-dev 2015-01-21 07:51:05 UTC
Created attachment 394458 [details, diff]
openafs-1.6.5-fix-kuid-uid-incompat-types.patch

Manually backported the patches from 1.6.6 to 1.6.5.
I can't reproduce the conditions of the original report, but I tested with the posted kernel config for 3.14.27.  It compiled without issue, but I can't test it, as I am running a different server version.  Can you test the patch on your systems so we can wrap up this old bug?
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-26 08:16:56 UTC
*** Bug 506682 has been marked as a duplicate of this bug. ***
Comment 12 Bjoern Thorwirth 2015-03-22 20:57:39 UTC
patch worked for me. 

emerge --info:
auf das übergeordnete Verzeichnis zugreifen.: Datei oder Verzeichnis nicht gefunden
WARNING: One or more repositories have missing repo_name entries:

	/var/lib/layman/local/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.


Portage 2.2.14 (python 3.3.5-final-0, default/linux/x86/13.0, gcc-4.8.3, glibc-2.19-r1, 3.19.1-gentoo i686)
=================================================================
System uname: Linux-3.19.1-gentoo-i686-Intel-R-_Core-TM-_i7-4810MQ_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:    16548448 total,  13772468 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 14 Mar 2015 10:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r4
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r4, 1.11.6-r1, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo enlightenment-niifaq sublime-text sage-on-gentoo haskell proaudio sera science steam-overlay enlightenment kolab sunrise x-local
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA openssl"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core-avx2  -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core-avx2  -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs candy ccache compress-build-logs compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install prelink-checksums preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/enlightenment-niifaq /var/lib/layman/sublime-text /var/lib/layman/sage-on-gentoo /var/lib/layman/haskell /var/lib/layman/pro-audio /var/lib/layman/sera /var/lib/layman/science /var/lib/layman/steam-overlay /var/lib/layman/enlightenment /var/lib/layman/kolab /var/lib/layman/sunrise /var/lib/layman/local"
USE="3dnow 3dnowext X a52 aac aacplus acl acpi alsa apache2 apm audacious avahi avx bash-completion bashcomp berkdb bluetooth bzip2 caps cdda cddb cdio cli connman corefonts cracklib crypt cuda cups cxx dbus dirac dri dssi dts dv dvd egl emacs encode equalizer faac ffmpeg fftw flac fluidsynth fortran freesound fuse g3dvl gdbm gif gles gles1 gles2 gpm gtk gtk3 gudev hwdb iconv id3 id3tag ieee1394 inotify introspection ipv6 jack jackmidi jit jpeg jpeg2k ladish ladspa lame lash latex ldap libav libsamplerate lv2 mad matroska midi mmx mmxext modules mp3 mp4 mpeg musepack musicbrainz mutt mysql ncurses netjack nls nptl nsplugin ogg opengl openmp osc packagkit pam pcre png policykit projectm pulseaudio python qt3support quicktime readline realtime rubberband schroedinger session shine shout sndfile soundtouch spamassasin spell sqlite sse sse2 sse2_4way sse3 sse4 sse4_1 ssl ssse3 svg systemd taglib tcpd telepathy theora threads tiff timidity tk truetype tslib twolame udev udisks unicode usb vamp vcd vdpau vhosts vorbis wav wavpack x264 x86 xattr xine xinerama xvfb xvid xvmc zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="sse2 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est sse3 tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5 php5-4" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_4 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="modesetting nvidia nouveau fbdev v4l vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 13 Andrew Savchenko gentoo-dev 2015-03-22 21:36:40 UTC
Fixed in 1.6.11