Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508204 - app-emulation/vmware-modules-279.2 with kernel 3.14 - .../work/vmblock-only/linux/file.c:240:4: error: unknown field ‘readdir’ specified in initializer
Summary: app-emulation/vmware-modules-279.2 with kernel 3.14 - .../work/vmblock-only/l...
Status: RESOLVED DUPLICATE of bug 483410
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-20 03:07 UTC by Billy DeVincentis
Modified: 2014-10-24 10:34 UTC (History)
8 users (show)

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


Attachments
279-linux-3.14.patch (279-linux-3.14.patch,4.88 KB, patch)
2014-04-20 03:07 UTC, Billy DeVincentis
Details | Diff
279-vmblock-3.11.patch (279-vmblock-3.11.patch,2.32 KB, patch)
2014-04-20 03:08 UTC, Billy DeVincentis
Details | Diff
279-vmblock-3.12.patch (279-vmblock-3.12.patch,2.72 KB, patch)
2014-04-20 03:09 UTC, Billy DeVincentis
Details | Diff
vmware-modules-279.2.ebuild.diff (vmware-modules-279.2.ebuild.diff,664 bytes, patch)
2014-04-20 12:32 UTC, INODE64 Sistemas
Details | Diff
build.log (build.log,5.16 KB, text/plain)
2014-04-24 11:54 UTC, Thomas Beierlein
Details
vmware-modules-279.2.ebuild.diff (vmware-modules-279.2.ebuild.diff,814 bytes, patch)
2014-06-25 09:24 UTC, Jack Daniels
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Billy DeVincentis 2014-04-20 03:07:58 UTC
Created attachment 375336 [details, diff]
279-linux-3.14.patch

doesn't compile against 3.14,
I am including patches for /etc/portage/patches/app-emulation/vmware-modules
with these three patches, emerges and works as expected
Comment 1 Billy DeVincentis 2014-04-20 03:08:40 UTC
Created attachment 375338 [details, diff]
279-vmblock-3.11.patch
Comment 2 Billy DeVincentis 2014-04-20 03:09:07 UTC
Created attachment 375340 [details, diff]
279-vmblock-3.12.patch
Comment 3 urcindalo 2014-04-20 09:05:29 UTC
It doesn't even compiled against STABLE gentoo-sources-3.12.13:
===
...
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/control.o
/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/file.c:240:4: error: unknown field ‘readdir’ specified in initializer
/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/file.c:240:4: warning: initialization from incompatible pointer type [enabled by default]
/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/file.c:240:4: warning: (near initialization for ‘RootFileOps.owner’) [enabled by default]
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/file.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/inode.c:49:4: warning: initialization from incompatible pointer type [enabled by default]
/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/inode.c:49:4: warning: (near initialization for ‘RootInodeOps.lookup’) [enabled by default]
/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/inode.c: In function ‘InodeOpFollowlink’:
/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/inode.c:224:4: error: implicit declaration of function ‘vfs_follow_link’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/inode.o] Error 1
/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/control.c: In function ‘ExecuteBlockOp’:
/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only/linux/control.c:282:9: warning: assignment from incompatible pointer type [enabled by default]
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-279.2/work/vmblock-only] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-3.12.13-gentoo'
make: *** [vmblock.ko] Error 2
 * ERROR: app-emulation/vmware-modules-279.2::gentoo failed (compile phase):
 *   emake failed
===

Why can't these working patches be included in the tree?
And, is it necessary to modify the ebuild to get them applied?
Comment 4 INODE64 Sistemas 2014-04-20 12:32:27 UTC
Created attachment 375360 [details, diff]
vmware-modules-279.2.ebuild.diff

Work fine for me
Comment 5 Billy DeVincentis 2014-04-20 14:48:43 UTC
I cannot speak for earlier kernel versions. It worked for me with late 3.13 versions and 3.14 versions. As for the ebuild diff, vmware-modules ebuilds contain support for ebuild patch user which means no ebuild modifications are necessary, just place the patches in the specified folder and they will get applied. Just to be clear, the patches were pulled from this forum post
http://forums.gentoo.org/viewtopic-t-979802-start-25.html (vmnet patch was eliminated from his reccomendation) and the 3.12 vmblock patch was modified and sort of merged with this bugs patch https://bugs.gentoo.org/show_bug.cgi?id=504736. All apears to work using the latest gentoo sources 3.14.1
Comment 6 Billy DeVincentis 2014-04-20 14:50:05 UTC
As for kernel 3.12, you may wish to try just the vmblock patches, maybe they will allow vmblock to be built.
Comment 7 Alex Xu (Hello71) 2014-04-21 23:25:05 UTC
Please attach the entire build.log against stable gentoo-sources.
Comment 8 Robert G. Siebeck 2014-04-22 18:00:34 UTC
I had the same problems on amd64 using gentoo-sources-3.12.13 (stable). The attached patches fixed the problem for me. Thanks!
Comment 9 Thomas Beierlein gentoo-dev 2014-04-24 11:52:00 UTC
(In reply to Alex Xu (Hello71) from comment #7)
> Please attach the entire build.log against stable gentoo-sources.

Reopening. appens here for stable gentoo-sources-3.12.13. See attached build log 'emerge --info' output:

Portage 2.2.10 (default/linux/x86/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.12.13-gentoo i686)
=================================================================
System uname: Linux-3.12.13-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.2
KiB Mem:     2055288 total,    784124 free
KiB Swap:    4008212 total,   3941564 free
Timestamp of tree: Thu, 24 Apr 2014 05:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo science benf gentoo-el sunrise x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
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/science /var/lib/layman/benf /var/lib/layman/gentoo-el /var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 avahi bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus device-mapper dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gnome-keyring gnutls gpm gtk iconv ipv6 jpeg kpathsea lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support readline samba sdl session spell sse sse2 ssl startup-notification svg tcpd tiff tk truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 x86 xcb xfce xml xv xvid 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" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel radeon" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 10 Thomas Beierlein gentoo-dev 2014-04-24 11:54:07 UTC
Created attachment 375598 [details]
build.log
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-25 12:10:49 UTC

*** This bug has been marked as a duplicate of bug 483410 ***
Comment 12 noop 2014-05-17 08:20:15 UTC
It compiles but the copy from guest os is not working. It always use a path like "/2exxxx/myfile.txt" but actually the file is in the /tmp/VMwareDnd/2exxxx directory, so the file will not be found and copy will fail.
Comment 13 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-21 14:40:29 UTC
(In reply to noop from comment #12)
> It compiles but the copy from guest os is not working. It always use a path
> like "/2exxxx/myfile.txt" but actually the file is in the
> /tmp/VMwareDnd/2exxxx directory, so the file will not be found and copy will
> fail.

Please follow and comment on bug #483410 instead of this duplicate bug.
Comment 14 Jack Daniels 2014-06-25 09:24:03 UTC
Created attachment 379644 [details, diff]
vmware-modules-279.2.ebuild.diff

The bug of which this bug was marked a duplicate says, "I'm closing this bug, failures with 3.12 and later (different error) should be tracked separately." This bug, then, is not (any longer) a duplicate.

The attached file is the diff from the current tree to an ebuild that compiles, much like the attachment originally included in this bug report. Tested on linux-3.14.6.
Comment 15 Bruno Santos 2014-09-24 15:20:30 UTC
For me to work, i had to comment the vmblock-3.11.patch and 3.12.patch for vmware-modules to compile against 3.14.14-gentoo and 3.14.4-ck

The ebuild just fails when trying to apply those patches...
Comment 16 urcindalo 2014-10-24 10:34:01 UTC
The problem now arises with app-emulation/vmware-modules-279.3 and the recently stabilized sys-kernel/gentoo-sources-3.16.5 on amd64.

Until now I've been using a modified ebuild with the pacthes from this bug:
===
src_prepare() {
        epatch "${FILESDIR}/${PV_MAJOR}-makefile-kernel-dir.patch"
        epatch "${FILESDIR}/${PV_MAJOR}-makefile-include.patch"
        epatch "${FILESDIR}/${PV_MAJOR}-netdevice.patch"
        use pax_kernel && epatch "${FILESDIR}/279-hardened.patch"
        epatch "${FILESDIR}/${PV_MAJOR}-apic.patch"
        kernel_is ge 3 7 0 && epatch "${FILESDIR}/${PV_MAJOR}-putname.patch"
        kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-vmblock.patch"
        kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-vmblock-3.11.patch"
        kernel_is ge 3 12 0 && epatch "${FILESDIR}/${PV_MAJOR}-vmblock-3.12.patch"
        kernel_is ge 3 14 0 && epatch "${FILESDIR}/${PV_MAJOR}-linux-3.14.patch"

        # Allow user patches so they can support RC kernels and whatever else
        epatch_user
}
===
This even worked for app-emulation/vmware-modules-279.3

Could someone be so kind as to provide the required 279-linux-3.16.patch, if this were all that's needed?