Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388983 - app-emulation/vmware-modules-238.5 with sys-kernel/hardened-sources-3.0.4-r4 - work/vmci-only/linux/driver.c:269:4: error: assignment of read-only variable 'vmuser_fops'
Summary: app-emulation/vmware-modules-238.5 with sys-kernel/hardened-sources-3.0.4-r4 ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-30 16:19 UTC by Touch
Modified: 2013-06-22 18:40 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Touch 2011-10-30 16:19:50 UTC
vmware-modules-238.5 fails to build with sys-kernel/hardened-sources-3.0.4-r4 and hardened profile

Reproducible: Always

Steps to Reproduce:
1.emerge --sync
2.emerge vmware-modules
Actual Results:  
make[1]: Entering directory `/usr/src/linux-3.0.4-hardened-r4'
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driver.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driverLog.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/vmciKernelIf.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/common/vmciProcess.o
/var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driver.c: In function 'init_module':
/var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driver.c:268:4: warning: passing argument 1 of '__builtin_memset' discards qualifiers from pointer target type
/var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driver.c:268:4: note: expected 'void *' but argument is of type 'const struct file_operations *'
/var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driver.c:269:4: error: assignment of read-only variable 'vmuser_fops'
/var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driver.c:270:4: error: assignment of read-only variable 'vmuser_fops'
/var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driver.c:272:4: error: assignment of read-only variable 'vmuser_fops'
/var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driver.c:277:4: error: assignment of read-only variable 'vmuser_fops'
/var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driver.c:279:4: error: assignment of read-only variable 'vmuser_fops'
/var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driver.c:280:4: error: assignment of read-only variable 'vmuser_fops'
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/linux/driver.o] Error 1
make[3]: *** Waiting for unfinished jobs....
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only/common/vmciDriver.o
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-238.5/work/vmci-only] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-3.0.4-hardened-r4'
make: *** [vmci.ko] Error 2
emake failed
 * ERROR: app-emulation/vmware-modules-238.5 failed (compile phase):
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=   auto-build KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/3.0.4-hardened-r4/build
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3762:  Called linux-mod_src_compile
 *   environment, line 2873:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                               CROSS_COMPILE=${CHOST}-                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"                                           ${BUILD_FIXES}                                          ${BUILD_PARAMS}                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";



~ # emerge --info
Portage 2.1.10.11 (hardened/linux/x86, gcc-4.5.3, glibc-2.12.2-r0, 2.6.34-gentoo-r12 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r12-i686-Intel-R-_Core-TM-2_CPU_6320_@_1.86GHz-with-gentoo-2.0.3
Timestamp of tree: Sun, 30 Oct 2011 11:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru uk"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi alsa aspell berkdb bluetooth bzip2 ccache cli cracklib crypt cups cxx dri gdbm gpm hardened iconv iproute2 kde laptop mmx modules mudflap ncurses nls nptl nptlonly opengl openmp pam pax_kernel pcre pic ppp pppd readline session spell sse sse2 sse4 ssl ssse3 sysfs tcpd unicode urandom x86 xorg zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru uk" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm mips" QEMU_USER_TARGETS="i386 x86_64 arm mips" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Touch 2011-10-30 16:22:15 UTC
the patch described here:
https://bugs.gentoo.org/show_bug.cgi?id=386721
helps, but not at all
Comment 2 Alex Efros 2012-02-10 11:35:54 UTC
Patches for this issue available in bug 384739.
Comment 3 andros 2012-07-31 12:14:18 UTC
The same bug hits me with x86_64 3.4.2-hardened-r1 kernel and vmware-modules-264.4.


 MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-3.4.2-hardened-r1'
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/vmciKernelIf.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/common/vmciDriver.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/common/vmciResource.o
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c: In function 'vmci_host_init':
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:387:4: warning: passing argument 1 of 'memset' discards qualifiers from pointer target type
/usr/src/linux-3.4.2-hardened-r1/arch/x86/include/asm/string_64.h:55:7: note: expected 'void *' but argument is of type 'const struct file_operations *'
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:388:4: error: assignment of read-only variable 'vmuser_fops'
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:389:4: error: assignment of read-only variable 'vmuser_fops'
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:391:4: error: assignment of read-only variable 'vmuser_fops'
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:396:4: error: assignment of read-only variable 'vmuser_fops'
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:398:4: error: assignment of read-only variable 'vmuser_fops'
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:399:4: error: assignment of read-only variable 'vmuser_fops'
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c: In function '__check_disable_host':
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:2498:1: warning: return from incompatible pointer type
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c: In function '__check_disable_guest':
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:2501:1: warning: return from incompatible pointer type
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c: In function '__check_disable_msi':
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:2504:1: warning: return from incompatible pointer type
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c: In function '__check_disable_msix':
/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:2507:1: warning: return from incompatible pointer type
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-3.4.2-hardened-r1'
make: *** [vmci.ko] Error 2
 * ERROR: app-emulation/vmware-modules-264.4 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/vmware-modules-264.4'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/vmware-modules-264.4'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/vmware-modules-264.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/vmware-modules-264.4/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only'
 * S: '/var/tmp/portage/app-emulation/vmware-modules-264.4/work'

>>> Failed to emerge app-emulation/vmware-modules-264.4, Log file:
Comment 4 PaX Team 2013-01-18 22:06:24 UTC
can you check with USE=pax_kernel enabled now?
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2013-06-22 18:40:45 UTC
All mentioned kernel versions are not in the tree anymore.