Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 242098

Summary: app-emulation/vmware-modules-1.0.0.22 fails to compile in 2.6.27
Product: Gentoo Linux Reporter: Sven Müller <musv>
Component: Current packagesAssignee: Gentoo VMWare Bug Squashers [disabled] <vmware+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: agent_jdh, bugs, caster, joshua.doll, lukasz.holetzke, mail, micheleschi, pizzaman, pkdawson, schism, simon, sven.koehler, trickie
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 242708    
Attachments: build.log
build.log AMD64
vmware-modules-1.0.0.22 patch for kernel 2.6.27
patch for the ebuild
corrected patch
complete patch against root of overlay

Description Sven Müller 2008-10-14 19:03:49 UTC
Error message:

include/asm/page.h:22:1: warning: this is the location of the previous definition
In file included from /var/tmp/portage/app-emulation/vmware-modules-1.0.0.22/work/vmmon-only/linux/vmhost.h:13,
                 from /var/tmp/portage/app-emulation/vmware-modules-1.0.0.22/work/vmmon-only/linux/driver.c:115:
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.22/work/vmmon-only/./include/compat_semaphore.h:5:27: error: asm/semaphore.h: No such file or directory
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-1.0.0.22/work/vmmon-only/linux/driver.o] Error 1
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.22/work/vmmon-only] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo'
make: *** [vmmon.ko] Error 2



Reproducible: Always

Steps to Reproduce:
1. emerge -1 vmware-modules
Comment 1 Sven Müller 2008-10-14 19:04:24 UTC
Created attachment 168464 [details]
build.log
Comment 2 Moonfire 2008-10-16 08:07:59 UTC
Same here for AMD64.

emerge --info
Portage 2.2_rc12 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.27 x86_64)
=================================================================
System uname: Linux-2.6.27-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-glibc2.2.5
Timestamp of tree: Thu, 16 Oct 2008 07:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.3-r4, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://de-mirror.org/distro/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="C"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="/usr/portage/local/layman/berkano /usr/portage/local/layman/mozilla /usr/portage/local/layman/enlightenment /usr/portage/local/layman/pro-audio /usr/local/portage"
SYNC="rsync://gentoo.mirror.ipv6.e-utp.net/gentoo-portage"
USE="64bit aac aalib acl acpi alsa amd64 apache2 asf berkdb bzip2 cli cracklib crypt cups dbus divx dri dvd dvdr dvdread fam fame flac fortran freetype gdbm gpm hal iconv ipv6 jack java mailbox maildir matroska midi mmx mmx2 mp3 mp4 mpeg mpeg2 mpeg4 mplayer mudflap musicbrainz mysql ncurses nls nptl nptlonly nvidia nvtv opengl openmp pam pcre perl pppd python readline reflection session smp spl sse sse2 ssl tcpd threads tiff unicode usb utf8 v4l v4l2 vcd wma wma123 wmf wmv wxwindows x264 xine xinerama xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x   ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3       trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias version" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Moonfire 2008-10-16 08:16:56 UTC
Created attachment 168646 [details]
build.log AMD64
Comment 4 Lifeng Sun 2008-10-18 15:51:57 UTC
Created attachment 168946 [details, diff]
vmware-modules-1.0.0.22 patch for kernel 2.6.27
Comment 5 Lifeng Sun 2008-10-18 15:55:11 UTC
Created attachment 168950 [details, diff]
patch for the ebuild

Include linux/semaphore.h instead of asm/semaphore.h and replace kill_proc with kill_pid.
Comment 6 Lifeng Sun 2008-10-18 15:58:46 UTC
Comment on attachment 168946 [details, diff]
vmware-modules-1.0.0.22 patch for kernel 2.6.27

Include linux/semaphore.h instead of asm/semaphore.h and replace kill_proc with kill_pid.
Comment 7 Moonfire 2008-10-18 16:48:46 UTC
great.
This patch works fine for me on AMD64.
The ebuild build without any errors. :-)

Have a nice day!
Comment 8 Jonathan Heaney 2008-10-20 00:04:25 UTC
Kernel module builds here on ~x86 but I'm getting a segfault loading vmblock - console output -

/etc/init.d/vmware restart
 * Stopping VMware services:                                              [ ok ]
 *   Virtual machine monitor                                              [ ok ]
 *   Bridged networking on /dev/vmnet0                                    [ ok ]
 *   Host network detection                                               [ ok ]
 *   Virtual ethernet                                                     [ ok ]
 * Loading vmblock for drag and drop support ...
/etc/init.d/vmware: line 63: 21527 Segmentation fault      mount -t vmblock none /proc/fs/vmblock/mountPoint
 * Failed to mount the vmblock filesystem                                 [ ok ]
 * Starting VMware services:                                              [ ok ]
 *   Virtual machine monitor                                              [ ok ]
 *   Virtual ethernet                                                     [ ok ]
 *   Bridged networking on /dev/vmnet0                                    [ ok ]
 *   Host network detection                                               [ ok ]

VMWare still runs though.
Comment 9 Jonathan Heaney 2008-10-23 16:58:51 UTC
Due to another system issue I had to boot with xdm disabled i.e. just to a console - got more verbose output w.r.t. the vmblock segfault issue, namely a trace -

* Loading vmblock for drag and drop support ...
Oops: 0002 [#1]
Modules linked in: vmblock(P) nfs lockd sunrpc abituguru hwmon fuse
snd_seq_oss
snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss
nls_iso8859_15 nls_cp850 vfat fat ext2 joydev usbhid hid ehci_hcd
snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_timer snd ohci_hcd usbcore
nvidia(P) ohci1394 sr_mod cdrom soundcore snd_page_alloc i2c_core r8169
bitrev crc32 sg pata_amd ieee1394 rtc

Pid: 4011, comm: mount Tainted: P          (2.6.27-gentoo #1)
EIP: 0060:[<c0171572>] EFLAGS: 00010286 CPU: 0
EIP is at d_instantiate+0x12/0x30
EAX: 00000000 EBX: f57bf8b4 ECX: f57bf878 EDX: e4347028
ESI: e4347028 EDI: 00000000 EBP: 00000000 ESP: e4345e88
 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
Process mount (pid: 4011, ti=e4344000 task=f78f8100 task.ti=e4344000)
Stack: f57bf878 c0171959 e4347028 f7024a00 f8ab7be7 00000001 f7024a00
f7024a00
       c0161d81 00000000 f780dba0 f8ab7b60 f780dba0 f8ab9720 f7290000
00000000
       c0160fb7 f8ab7b60 f780dba0 ffffffed f7290000 f8ab9720 00000000
c016107d
Call Trace:
 [<c0171959>] d_alloc_root+0x39/0x50
 [<f8ab7be7>] VMBlockCleanupFileSystem+0xe7/0x140 [vmblock]
 [<c0161d81>] get_sb_nodev+0x71/0xc0
 [<f8ab7b60>] VMBlockCleanupFileSystem+0x60/0x140 [vmblock]
 [<c0160fb7>] vfs_kern_mount+0x37/0xa0
 [<f8ab7b60>] VMBlockCleanupFileSystem+0x60/0x140 [vmblock]
 [<c016107d>] do_kern_mount+0x3d/0xe0
 [<c01768e3>] do_new_mount+0x83/0xc0
 [<c01775c6>] do_mount+0x1c6/0x200
 [<c0175884>] copy_mount_options+0x44/0x130
 [<c0177694>] sys_mount+0x94/0xc0
 [<c0102f85>] sysenter_do_call+0x12/0x25
 =======================
Code: 00 89 d8 5b 5e c3 0f 0b eb fe 8d b4 26 00 00 00 00 0f 0b eb fe 8d 74
26 00 53 8d 58 3c 3b 58 3c 89 c1 75 21 85 d2 74 12 8b 42 18 <89> 58 04 89 41
3c 8d 42 18 89 5a 18 89 41 40 89 51 08 89 c8 5b
EIP: [<c0171572>] d_instantiate+0x12/0x30 SS:ESP 0068:e4345e88
---[ end trace 27dd87f8aaddae84 ]---
/etc/init.d/vmware: line 63:  4011 Segmentation fault      mount -t vmblock
none /proc/fs/vmblock/mountPoint
 * Failed to mount the vmblock filesystem                                [ ok ]
Comment 10 Morgan Wesström 2008-10-26 13:09:17 UTC
What am I doing wrong here? I've created an overlay and patched the ebuild with the contents from attachment 168950 [details, diff]. Then I put the contents from attachment 168946 [details, diff] in files/1.0.0.22-kernel-2.6.27.patch and create the Manifest. Emerging vmware-modules now complains of a missing files/1.0.0.22-makefile-kernel-dir.patch. If I rename the patch to that name and recreate the Manifest the emerge of course complains of a missing files/1.0.0.22-kernel-2.6.27.patch. Please help me.
Comment 11 Morgan Wesström 2008-10-26 13:10:58 UTC
Stupid me. Forget my last comment. Realized now there are a numer of files in the original files-directory I have to copy to the overlay. Sorry for the noise.
Comment 12 chris 2008-10-27 16:44:59 UTC
Any quick pointers for us patch-challenged idgiots?
Would love to get this working.
Comment 13 chris 2008-10-27 17:00:06 UTC
Got it...but have a feeling the way I did it may not have been SOP
Comment 14 Jonathan Heaney 2008-10-29 01:37:35 UTC
These VMWare patches also break system shutdown/reboot for me as well as the vmblock issue highlighted above.

It's completely consistent, if I have /etc/init.d/vmware in the default runlevel at boot, and even if I specifically stop that service before shutdown, I cannot shutdown/reboot cleanly, it requires a manual reset.

I posted in the forum about this (prior to knowing it was VMWare/2.6.27 related)

http://forums.gentoo.org/viewtopic-t-712342-highlight-.html

Booting without vmware (ie rc-update del vmware), my system works fine.
Comment 15 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-10-31 23:37:10 UTC
(In reply to comment #14)
> These VMWare patches also break system shutdown/reboot for me as well as the
> vmblock issue highlighted above.

Same here, the patches are obviously not fully compatible with 2.6.27.
Comment 16 Simon Bettison 2008-11-01 20:33:37 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > These VMWare patches also break system shutdown/reboot for me as well as the
> > vmblock issue highlighted above.
> 
> Same here, the patches are obviously not fully compatible with 2.6.27.
> 
I am also seeig this behaviour, stepping through with interactive boot gives me a kernal oops when it tries to start the 'vmware' service.

I want to paste that here in case it helps, but I can't find the output of this oops in /var/log/messages - should I be looking elsewhere?
Comment 17 Luis Aranguren 2008-11-04 12:35:33 UTC
Same behavior with vmware-modules-1.0.0.20 and kernel 2.6.27-gentoo-r2
Comment 18 dacook 2008-11-04 20:12:52 UTC
Created attachment 170728 [details, diff]
corrected patch

My guess is because the patch doesn't address the 3rd compat_semaphore.h file in the bunch: vmblock-only/include/compat_semaphore.h
Comment 19 dacook 2008-11-04 20:15:40 UTC
Created attachment 170731 [details, diff]
complete patch against root of overlay

This adds the above patch, updates app-emulation/vmware-modules/Manifest, and provides a proper >=2.6.27 check before applying said patch.
Comment 20 dacook 2008-11-04 20:54:42 UTC
As I recover from the oops-at-boot that didn't manifest when simly unloading/reloading the modules, I begin to realize that perhaps my fix wasn't as definitive as I had hoped.
Comment 21 dacook 2008-11-14 15:09:26 UTC
The only packages remaining in the tree depending on vmware-modules-1.0.0.22 are vmware-player-2.0.5.109488 and vmware-workstation-6.0.5.109488.  Those both recently received upstream-stable updates, which depend on vmware-modules-1.0.0.23 and do not exhibit this issue.  Good enough for me.
Comment 22 Sven Müller 2008-11-16 21:22:18 UTC
Update to vmware-modules-1.0.0.23 worked for me too. I updated also to vmware-workstation-6.5.0.118166. No problems until now. 

Hint: The vmware-config.pl script doesn't exists anymore. So if you run into problems like. "Check for sufficient user privileges" just delete /etc/vmware/not_configured. 

For my part I close the bug.