Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438110 - app-emulation/open-vm-tools-kmod-2012.05.21.724730 with kernel 3.6.1 - .../work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/inode.c:1820:36: error: 'struct hlist_head' has no member named 'next'
Summary: app-emulation/open-vm-tools-kmod-2012.05.21.724730 with kernel 3.6.1 - .../wo...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vadim Kuznetsov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-12 13:46 UTC by Conrad Kostecki
Modified: 2012-12-09 14:23 UTC (History)
2 users (show)

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


Attachments
Linux 3.6 patch from VMWare Communities forum (open-vm-tools-linux-3.6.patch,8.44 KB, patch)
2012-10-15 12:04 UTC, Mads
Details | Diff
make frozen accessor in vmsync module compatible with 3.6.x linux (vmsync_s_frozen.patch,1.13 KB, patch)
2012-11-10 13:49 UTC, Greg Turner
Details | Diff
showing the difference between the version bumped open-vm-tools-kmod-9.2.2.893683.ebuild and open-vm-tools-kmod-2012.05.21.724730.ebuild in the vmware overlay. (vmtoolskmod_ebuild.diff,604 bytes, patch)
2012-11-10 14:30 UTC, Greg Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2012-10-12 13:46:21 UTC
* Preparing vmhgfs module
make -j9 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' auto-build HEADER_DIR=/usr/src/linux/include BUILD_DIR=/lib/modules/3.6.1-gentoo/build OVT_SOURCE_DIR=/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730 
Using 2.6.x kernel build system.
make -C /lib/modules/3.6.1-gentoo/build SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-3.6.1-gentoo'
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/request.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/filesystem.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/link.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/stubs.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/tcp.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/file.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/transport.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/inode.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/super.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/vmci.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/bdhandler.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/dir.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/fsutil.o
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/inode.c:121:4: warning: initialization from incompatible pointer type [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/inode.c:121:4: warning: (near initialization for 'HgfsDirInodeOperations.create') [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/inode.c:126:4: warning: initialization from incompatible pointer type [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/inode.c:126:4: warning: (near initialization for 'HgfsDirInodeOperations.lookup') [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/inode.c: In function 'HgfsPermission':
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/inode.c:1820:36: error: 'struct hlist_head' has no member named 'next'
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/inode.c:1820:48: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/inode.c:1821:78: warning: initialization from incompatible pointer type [enabled by default]
make[2]: *** [/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs/inode.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs] Error 2
make[1]: Leaving directory `/usr/src/linux-3.6.1-gentoo'
make: *** [vmhgfs.ko] Error 2
 * ERROR: app-emulation/open-vm-tools-kmod-2012.05.21.724730 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/open-vm-tools-kmod-2012.05.21.724730'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/open-vm-tools-kmod-2012.05.21.724730'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730/modules/linux/vmhgfs'
 * S: '/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.05.21.724730/work/open-vm-tools-2012.05.21-724730'
Comment 1 Conrad Kostecki gentoo-dev 2012-10-12 13:46:33 UTC
Portage 2.1.11.26 (default/linux/amd64/10.0/server, gcc-4.7.2, glibc-2.15-r3, 3.5.3-gentoo x86_64)
=================================================================
System uname: Linux-3.5.3-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.2
Timestamp of tree: Fri, 12 Oct 2012 12:15:01 +0000
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo helios
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
LINGUAS="de"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-f9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="amd64 bash-completion bzip2 cracklib cxx ftp gd gnutls gpm iconv icu idn ipv6 javascript jpeg jpeg2k lzma mmx multilib ncurses nls nntp nptl offensive pam png readline slang spell sqlite sse2 ssl svg symlink tcpd threads tiff truetype unicode vim-syntax xml zeroconf zlib" ALSA_PCM_PLUGINS="*" COLLECTD_PLUGINS="conntrack contextswitch cpu df disk dns entropy ethstat exec filecount interface irq load logfile memory network nfs openvpn ping processes protocols rrdtool swap table tcpconns uptime users" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="vmware"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Conrad Kostecki gentoo-dev 2012-10-12 17:12:23 UTC
Newest Version 9.0.0 and 9.2.0 does also not compile and reports same error!
Comment 3 Mads 2012-10-15 12:04:52 UTC
Created attachment 326588 [details, diff]
Linux 3.6 patch from VMWare Communities forum

I found this forum post: http://communities.vmware.com/message/2129675

I extracted the patch from that script, and it patches cleanly on open-vm-tools-kmod-2012.05.21.724730 in the vmware overlay, and the module builds on gentoo-sources-3.6.2. Haven't tested it with portage in-tree ebuild.
Comment 4 Conrad Kostecki gentoo-dev 2012-10-20 21:30:48 UTC
Hi Mads,
thanks! This Patch works fine here.
Comment 5 Toei Rei 2012-10-29 18:24:48 UTC
tested patch on two identical VMs. Tools do behave weird; Things do crash on one vm while things pretend to behave on the other one.
Comment 6 franky 2012-10-30 17:52:37 UTC
(In reply to comment #3)

> Linux 3.6 patch from VMWare Communities forum
> 
> I found this forum post: http://communities.vmware.com/message/2129675
> 
> I extracted the patch from that script, and it patches cleanly on
> open-vm-tools-kmod-2012.05.21.724730 in the vmware overlay, and the module
> builds on gentoo-sources-3.6.2. Haven't tested it with portage in-tree
> ebuild.


Thank you. Tried your mentioned patch, works like a charm. I tested it with open-vm-tools-9.2.0, no problems so far.
Comment 7 Greg Turner 2012-11-10 13:49:33 UTC
Created attachment 329108 [details, diff]
make frozen accessor in vmsync module compatible with 3.6.x linux

That's my patch :)

Now that the project has released 9.2.2, a better solution is probably to version-bump both open-vm-tools and open-vm-tools-kmod to "9.2.2.893683".

Aside from applying this patch, no changes to the 2012.05.21.724730 ebuild in vmware-overlay git were needed to make this compile (I haven't rebooted and tested yet, however... so caveat emptor!)

Note that you'll need to mask the open-vm-tools versions that start with four-digit years (i.e.: from my /etc/portage/package.mask/open-vm-tools:

=app-emulation/open-vm-tools-kmod-2012.05.21.724730
=app-emulation/open-vm-tools-kmod-2012.03.13.651368-r1
=app-emulation/open-vm-tools-2012.05.21.724730
=app-emulation/open-vm-tools-2012.03.13.651368-r1

), or else portage will consider these versions to be newer... not sure what the best way to deal with that really is... maybe rename the ebuilds to something starting with a date.

I'll put another post in this bug if and when I discover that this causes some kind of disaster when you actually load the modules :)
Comment 8 Greg Turner 2012-11-10 14:30:00 UTC
Created attachment 329112 [details, diff]
showing the difference between the version bumped open-vm-tools-kmod-9.2.2.893683.ebuild and open-vm-tools-kmod-2012.05.21.724730.ebuild in the vmware overlay.

Seems to work OK on my ~x86 vm with kenrel 3.6.6 (still haven't tested X11, however).  This patch shows the tiny modification I made to the ebuild after version-bumping it (it just applies the patch -- nothing to it).
Comment 9 Mads 2012-11-13 09:56:11 UTC
Thank you! Can see it has hit the vmware overlay :)

I suggest another /etc/portage/package.mask/open-vm-tools:

>=app-emulation/open-vm-tools-kmod-2012
>=app-emulation/open-vm-tools-2012

Then you get rid of the issue completely...
Comment 10 Mads 2012-11-13 10:18:35 UTC
open-vm-tools-9.2.2.893683::vmware fails the configure stage at my machine with this statement:

> checking for getstat in -lproc... no
> checking for getstat in -lproc-3.2.8... no
> checking for getstat in -lproc-3.2.7... no
> configure: error: libproc not found. Please configure without procps (using --without-procps) or install procps - http://procps.sourceforge.net

Should I make a new bug report for it? Can I do that, since it's in vmware-overlay?
Comment 11 Vadim Kuznetsov (RETIRED) gentoo-dev 2012-12-09 14:23:04 UTC
*open-vm-tools-kmod-9.2.2.893683 (09 Dec 2012)
*open-vm-tools-kmod-2012.10.14.874563 (09 Dec 2012)

  09 Dec 2012; Vadim Kuznetsov vadimk@gentoo.org +files/frozen.patch,
  +open-vm-tools-kmod-2012.10.14.874563.ebuild,
  +open-vm-tools-kmod-9.2.2.893683.ebuild,
  -open-vm-tools-kmod-2012.03.13.651368-r1.ebuild:
  version bump. bug 438110

Thanks, please test.