/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/./include/vm_basic_types.h:108:7: warning: "__FreeBSD__" is not defined CC [M] /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.o In file included from /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/vmblockInt.h:40, from /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c:33: /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/./include/vm_basic_types.h:108:7: warning: "__FreeBSD__" is not defined /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c: In function ‘SetupProcDevice’: /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c:159: error: ‘struct proc_dir_entry’ has no member named ‘owner’ /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.c:171: error: ‘struct proc_dir_entry’ has no member named ‘owner’ make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only/linux/control.o] Error 1 make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmblock-only] Error 2 make[1]: *** [sub-make] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.30-rc6' make: *** [vmblock.ko] Error 2 Reproducible: Always Steps to Reproduce: 1.install and compile kernel 2.6.30 -rc5 or -rc6 2.emerge vmware-modules Actual Results: it fails to build Expected Results: it builds smoothly as usual emerge --info Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.4.0, glibc-2.9_p20081201-r2, 2.6.30-rc5 x86_64) ================================================================= System uname: Linux-2.6.30-rc5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.0 Timestamp of tree: Sat, 16 May 2009 20:45:02 +0000 app-shells/bash: 4.0_p17-r1 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r2, 2.6.2 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r2 sys-apps/sandbox: 1.9 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config" 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/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="it_IT.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="it no en nb" MAKEOPTS="-j5" 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="/usr/local/portage/layman" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="2dnow 3dnowext 7zip X Xaw3d a52 aac aalib abyss accessibility acl acpi ada addbookmarks akode akonadi alias alsa amd64 amr amrb applet aqua_theme archive ares artworkextra athena audiofile autoipd automount autoreplace avahi avantgo bash-completion beagle belagle berkdb bidi bittorrent bl bluetooth bookmarks branding bzip2 cairo captury carbone_theme cdda cddb cdio cdparanoia cdr chm cisco ck clamavfontconfig cli connection-sharing connectionstatus consolekit contactnotes cpudetection cracklib crypt cscope cups cupsddk curl dbus debug designer-plugin device-mapper dga dhcpcd digitalradio directfb disk-partition diskio djvu dmx dnd doc dri dts dv dvb dvd dvdr dvi editor eds elf emacs emacx enca encode eolconv epiphany esd exchange exif expat extensible fam fasttrack fax fbcon fbcondecor ffmpeg filepicker firefox fits flac fltk foomaticdb fortran freetts freewnn ftp fuse gadu galago gcj gd gdbm gedit geoip ggi gif gimp glib glitz gmp gnokii gnome gnome-keyring gnomecd gnutella gnutls google-gadgets gpg gphoto2 gpm graphwiz groupwise gsf gsm gstreamer gtk gtkhtml guile gz gzip-el hal hdri hesiod hfs highlight history hotplug howl-compat hybrid-auth iceweasel iconv idn ieee1394 imagemagick imlib inotify inquisitio ioctl iproute2 ipv6 irc irda irmc isdnlog jack jadetex jai java java5 javamail javascript jbig jce jingle jmf jms jmx joystick jpeg jpeg2k kde kdrive kerberos kig-scripting kipi kolab ladspa lame laptop latex lcms ldap legacyssl libcaca libnotify libsamplerate libssh2 lilo lirc live lm_sensors logitech-mouse lua lzma lzo mad mbrola md5sum mdnsresponder-compat mfd-rewrites midi mmap mmx mng mono motif mozdevelop mp2 mp3 mpeg mudflap mule multilib musepack musicbrainz mysql mythtv nas nautilus ncurses neXt nemesi netmeeting network network-cron networking networkmanager new-login nis nls nntp nowlistening npp nptl nptlonly nsplugin nss odbc odk offensive ogg old-daemons openal openexr openft opengl openmp openssl opensslcrypt oracle pam passwordsave pch pcre pda pdf perl perl-geoipupdate phonon php pink pkcs11 plasma plotutils png pnm pop portage povray ppds pppd pulseaudio python python-bindings q32 q8 qa qt-webkit qt3 qt3support qt4 quicktime radio rar raster rdesktop readline redland reflection remote resolvconf rpm rss rtc ruby ruby-bindings samba sametime sasl savedconfig scanner schedule script sdl seamonkey semantic-desktop sendmail session slang slp smartcard smp sms smux sndfile snmp socks5 solver sound speex spell spl srt srtp sse sse2 ssl ssse3 startup-notification statistics stats suid svg swat sysfs syslog t1lib taglib tcl tcpd teletext test test-programs tetex texteffect tga theora threads tidy tiff tk toolbar toolkit-scroll-bars tools tracker translator truetype tseng tunepimp unicode upnp usb v4l v4l2 vcd vdr vim-pager vim-syntax vim-with-x visibility vnc vorbis wavpack webinterface webkit webpresence wifi winpopup wlm wmf x264 xanim xattr xcb xcomposite xemacs xext xface xforms xft xim xine xinerama xinetd xml xorg xscreensaver xulrunner xv xvid xvmc yahoo zeroconf zlib zoran zsh-completion zvbi" 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="unique_id 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_iduserdir usertrack vhost_alias" APACHE2_MPMS="event" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11" DVB_CARDS="tda1004x" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse acecad aiptek digitaledge elographics fpit hyperpen jamstudio joystick magellan mutouch palmax spaceorb summa synaptics tek4957 ur98 vmmouse void wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it no en nb" LIRC_DEVICES="mceusb2 mceusb devinput" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 191529 [details] patch to correct the owner bug as on upstream forum apply this and it goes right
Same problem here on sys-kernel/git-sources 2.6.30-rc7-git3, amd64. And as mentioned above, applying the owner patch makes the problem go away. It should be noted that vmware-modules users using kernels >2.6.29 are probably out in unsupported or uncharted territory anyway. Commit 3ba113d to the kernel git tree removed proc_dir_entry::owner.
I am personally using vmware patched with my owner patch with 12 virtual machine on and no problem (In reply to comment #2) > Same problem here on sys-kernel/git-sources 2.6.30-rc7-git3, amd64. > > And as mentioned above, applying the owner patch makes the problem go away. It > should be noted that vmware-modules users using kernels >2.6.29 are probably > out in unsupported or uncharted territory anyway. > > Commit 3ba113d to the kernel git tree removed proc_dir_entry::owner. >
the patch works around for me :]
Created attachment 194214 [details, diff] patch for vmware-modules-1.0.0.23 Today I installed 2.6.30 (gentoo-sources-2.6.30) and vmware-modules-1.0.0.23-r1 broke. The above patch did not help either. I found a patch here: http://communities.vmware.com/thread/208963, that works if applied to vmware-modules-1.0.0.0.23 (not the -r1) I applied the patch compiled and installed the modules by hand because I found the ebuilds too complicated to follow and modify (which of the patches goes first?). I would be grateful if someone could produce an ebuild.
Created attachment 194224 [details] this ebuild works with 2.6.30 kernels if you put the owner patch in files and use this ebuild digesting it it will work on 2.6.30 kernels (I have just tested it now Thursday June 11 11:17:38 CEST 2009)
done (In reply to comment #5) > Created an attachment (id=194214) [edit] > patch for vmware-modules-1.0.0.23 > > Today I installed 2.6.30 (gentoo-sources-2.6.30) and > vmware-modules-1.0.0.23-r1 broke. > > The above patch did not help either. > > I found a patch here: http://communities.vmware.com/thread/208963, that works > if applied to vmware-modules-1.0.0.0.23 (not the -r1) > > I applied the patch compiled and installed the modules by hand because I found > the ebuilds too complicated to follow and modify (which of the patches goes > first?). > > I would be grateful if someone could produce an ebuild. >
(In reply to comment #6) I used your ebuild and it works perfectly. Thank you very much.
oh my pleasure... I hope this will be put in tree soon :D (In reply to comment #8) > (In reply to comment #6) > I used your ebuild and it works perfectly. > > Thank you very much. >
So what is the better patch to use? Andreas' or Renato's?
(In reply to comment #10) Although both patches work, Renato's patch is simpler and he provides a ready ebuild too. very useful if you update the kernel regularly. I couldn't figure how to make an ebuild for the other patch and it takes some time to compile and install the modules by hand.
Hmmm, tried both patches here with 1.0.0.23 (-r1 has a patch for 2.6.29 which I guess isn't required), neither compiles here. This is with 2.6.30-gentoo-r1 kernel. Can either of you post precisely what you did to get this to work?
Mid-air collision. OK with Renato's patch and r1 ebuild, it's failing with this - CC [M] /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmnet-only/netif.o /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmnet-only/netif.c: In function ‘VNetNetIfSetup’: /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmnet-only/netif.c:225: error: ‘struct net_device’ has no member named ‘init’ /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmnet-only/netif.c:226: error: ‘struct net_device’ has no member named ‘open’ /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmnet-only/netif.c:227: error: ‘struct net_device’ has no member named ‘hard_start_xmit’ /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmnet-only/netif.c:228: error: ‘struct net_device’ has no member named ‘stop’ /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmnet-only/netif.c:229: error: ‘struct net_device’ has no member named ‘get_stats’ /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmnet-only/netif.c:230: error: ‘struct net_device’ has no member named ‘set_mac_address’ /var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmnet-only/netif.c:231: error: ‘struct net_device’ has no member named ‘set_multicast_list’ make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmnet-only/netif.o] Error 1 make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/work/vmnet-only] Error 2 make[1]: *** [sub-make] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r1' make: *** [vmnet.ko] Error 2 * * ERROR: app-emulation/vmware-modules-1.0.0.23-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3671: Called linux-mod_src_compile * environment, line 2794: 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}"; * The die message: * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.30-gentoo-r1/build * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.23-r1/temp/environment'. * This ebuild is from an overlay named 'local': '/usr/local/portage/' *
(In reply to comment #12) Asuuming this line in make.conf: PORTDIR_OVERLAY="/usr/portage/local" 1. Copy contents of directory /usr/portage/app-emulation/vmware-modules/ to /usr/portage/local/app-emulation/vmware-modules. 2. Delete all ebuilds from destination (local overlay) and put there renato's ebuild. also copy owner.patch in the files/ subdirectory. 4. cd to the same directory and give: ebuild vmware-modules-1.0.0.23-r1 manifest 5. emerge -av vmware-modules I used again this ebuild today when I upgraded the kernel to gentoo-sources-2.6.30-r1 and it worked perfectly.
(In reply to comment #14) > (In reply to comment #12) > > Asuuming this line in make.conf: PORTDIR_OVERLAY="/usr/portage/local" > > 1. Copy contents of directory /usr/portage/app-emulation/vmware-modules/ to > /usr/portage/local/app-emulation/vmware-modules. > 2. Delete all ebuilds from destination (local overlay) and put there renato's > ebuild. also copy owner.patch in the files/ subdirectory. > > 4. cd to the same directory and give: > ebuild vmware-modules-1.0.0.23-r1 manifest > > 5. emerge -av vmware-modules > > I used again this ebuild today when I upgraded the kernel to > gentoo-sources-2.6.30-r1 and it worked perfectly. > > That's basically what I did, but I'm getting the build fail as I noted in comment #13.
I tested my patch and ebuild on 3 different machine in my lab 1 is a core duo intel 1 is a quad core intel 1 is an amd quad core phenom and it worked on kernel 2.6.30 vanilla and gentoo sources.
The patch (owner.patch) works fine. Following the instructions from comment #14 works also just fine. Good job :-)
Followed the instructions in #14 and all is fine.
I also used the instructions in comment #14. Worked great with 2.6.30-r1 on amd64
I've commited new vmware-modules ebuild to portage tree. It has patches for 2.6.29 and 2.6.30.
what about 2.6.31 ? (In reply to comment #20) > I've commited new vmware-modules ebuild to portage tree. It has patches for > 2.6.29 and 2.6.30. >
Created attachment 204672 [details, diff] vmware-modules-1.0.0.24 patch for kernel-2.6.31
Working combination on amd64: app-emulation/vmware-player 2.5.2.156735-r1 app-emulation/vmware-modules 1.0.0.24 sys-kernel/gentoo-sources 2.6.30-r5