Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460224 - app-emulation/open-vm-tools-kmod with kernel 3.8.X - .../work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.c:131:4: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
Summary: app-emulation/open-vm-tools-kmod with kernel 3.8.X - .../work/open-vm-tools-2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
: 466686 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-03-04 07:49 UTC by Toei Rei
Modified: 2013-06-24 06:50 UTC (History)
12 users (show)

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


Attachments
Build Log (build.log,12.12 KB, text/plain)
2013-03-04 07:51 UTC, Toei Rei
Details
patch from ubuntu (linux3.8.patch,2.42 KB, text/plain)
2013-03-07 03:28 UTC, Billy DeVincentis
Details
build log (build.log,11.70 KB, text/plain)
2013-05-15 19:15 UTC, Serge
Details
Updated ebuild (open-vm-tools-kmod-2013.04.16.1098359.ebuild,1.71 KB, text/plain)
2013-06-09 11:33 UTC, William Cooke
Details
Putname patch for updated ebuild (putname.patch,430 bytes, patch)
2013-06-09 11:34 UTC, William Cooke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toei Rei 2013-03-04 07:49:17 UTC
make[2]: *** [/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci] Error 2
make[1]: Leaving directory `/usr/src/linux-3.8.2'
make: *** [vmci.ko] Error 2


Reproducible: Always

Steps to Reproduce:
1. build 3.8.X kernel (current: 3.8.2)
2. emerge open-vm-tools-kmod (or: module-rebuild)

Actual Results:  
Compile fails

Expected Results:  
Building works

# emerge --info app-emulation/open-vm-tools-kmod
Portage 2.1.11.50 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.7.9 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.7.9-x86_64-Intel-R-_Xeon-R-_CPU_X3450_@_2.67GHz-with-gentoo-2.1
KiB Mem:     2057872 total,    245756 free
KiB Swap:    2097148 total,   1734016 free
Timestamp of tree: Mon, 04 Mar 2013 05:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo stargazers
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/local/portage/packages"
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="/var/lib/layman/stargazers"
SYNC="rsync://10.0.0.4/gentoo-portage/"
USE="acl aio amd64 apache2 bash-completion berkdb bzip2 caps cli cracklib crypt cxx dri gdbm geoip gpm iconv idn jpeg ldap logrotate lzma mmap mmx modules mudflap multilib mysql mysqli ncurses nfs nls nptl openmp pam pcre png python3 readline session snmp sse sse2 ssl syslog tcpd truetype udev unicode vhosts zlib" ABI_X86="64" 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="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" APACHE2_MPMS="itk" CALLIGRA_FEATURES="kexi words flow plan sheets 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-emulation/open-vm-tools-kmod-2012.12.26.958366 was built with the following:
USE="(multilib)" ABI_X86="64"
Comment 1 Toei Rei 2013-03-04 07:51:43 UTC
Created attachment 340922 [details]
Build Log
Comment 2 Billy DeVincentis 2013-03-07 03:26:08 UTC
There is a patch that I grabbed off ubuntu but it's not perfect, yes it builds but there are some major problems. First, I believe that the drag and drop functions have been moved into fuse so the vmblock module does not work correctly and the init script does not start or stop successfully. Having said that I still happen to be using it.
Comment 3 Billy DeVincentis 2013-03-07 03:28:48 UTC
Created attachment 341186 [details]
patch from ubuntu
Comment 4 Mads 2013-03-27 14:32:45 UTC
Set VM_DRAG_AND_DROP to "no" in /etc/conf.d/vmware-tools, and it will work nicely. Doesn't the newest vmware clients and such use fuse now anyway? Not completely sure, but if someone knows if drag and drop works without vmblock, please do tell.
Comment 5 Arnim Eijkhoudt 2013-04-16 20:31:51 UTC
Will it be possible to get this patched/fixed? Right now open-vm-tools-kmod will not compile for 3.8.x kernels, even after playing the VMCI patch listed above.
Comment 6 Mads 2013-04-17 10:01:08 UTC
I'm running this on gentoo-sources 3.8.7, and it compiles just fine with gcc 4.8.0... only those warnings about missing symbols that makes vmblock not work.
Comment 7 Arnim Eijkhoudt 2013-04-18 10:11:27 UTC
There are additional regression problems with compilation on hardened-sources, much like: https://bugs.gentoo.org/show_bug.cgi?id=386721, that still come up after applying the Ubuntu patch provided above.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-24 16:34:04 UTC
*** Bug 466686 has been marked as a duplicate of this bug. ***
Comment 9 Serge 2013-05-15 19:14:02 UTC
Same problem :

worked with kernel 3.7.10, but break the same way with kernel 3.8.13

gentoo-x64-src ~ # emerge --info app-emulation/open-vm-tools-kmod
Portage 2.1.11.62 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.7.10-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:      505792 total,    101040 free
KiB Swap:     524280 total,    519756 free
Timestamp of tree: Wed, 15 May 2013 17:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.10.3, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ rsync://de-mirror.org/gentoo/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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=""
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm gpm iconv ldap logrotate mmx modules mudflap multilib ncurses nls nptl oci8-instant-client openmp pam pcre readline session sse sse2 ssl tcpd unicode vhosts zlib" ABI_X86="64" 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="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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-emulation/open-vm-tools-kmod-2012.12.26.958366 was built with the following:
USE="(multilib)" ABI_X86="64"
Comment 10 Serge 2013-05-15 19:15:12 UTC
Created attachment 348422 [details]
build log
Comment 11 Serge 2013-05-15 19:16:17 UTC
gentoo-x64-src ~ # emerge -pqv '=app-emulation/open-vm-tools-kmod-2012.12.26.958366'
[ebuild   R   ] app-emulation/open-vm-tools-kmod-2012.12.26.958366
Comment 12 Serge 2013-05-15 19:26:13 UTC
I can confirm the same problem on a x86 vm :

  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/vmciKernelIf.o
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.c:131:4: erreur: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.c:131:4: erreur: un élément de l'initialisation n'est pas une constante
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.c:131:4: erreur: (near initialization for ‘vmci_driver.remove’)
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.c:1751:1: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vmci_probe_device’
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.c:1979:1: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vmci_remove_device’
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.c:123:12: attention : ‘vmci_probe_device’ used but never defined [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.c:125:13: attention : ‘vmci_remove_device’ used but never defined [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.c:2060:1: attention : ‘vmci_interrupt’ defined but not used [-Wunused-function]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.c:2134:1: attention : ‘vmci_interrupt_bm’ defined but not used [-Wunused-function]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.c:1714:1: attention : ‘vmci_enable_msix’ defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[2]: *** [/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci/linux/driver.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[1]: *** [_module_/var/tmp/portage/app-emulation/open-vm-tools-kmod-2012.12.26.958366/work/open-vm-tools-2012.12.26-958366/modules/linux/vmci] Erreur 2
make[1] : on quitte le répertoire « /usr/src/linux-3.8.13-gentoo »
make: *** [vmci.ko] Erreur 2
 * ERROR: app-emulation/open-vm-tools-kmod-2012.12.26.958366 failed (compile phase):
 *   emake failed






gentoo-vm-std linux #  emerge --info app-emulation/open-vm-tools-kmod
Portage 2.1.11.62 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.7.10-gentoo-i686-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:      514884 total,     89580 free
KiB Swap:     257004 total,    256152 free
Timestamp of tree: Wed, 15 May 2013 17:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-local
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/portage/packages"
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/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm gpm iconv ldap logrotate modules mudflap ncurses nls nptl nptlonly oci8-instant-client openmp pam pcre perl python readline session ssl tcpd unicode vhosts x86 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" 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="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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-emulation/open-vm-tools-kmod-2012.12.26.958366 was built with the following:
USE=""
Comment 13 Serge 2013-05-17 11:19:03 UTC
was not clear about kernel version:

gentoo-x64-src ~ # ls -l /usr/src
total 8
lrwxrwxrwx  1 root root   19 15 mai   20:27 linux -> linux-3.8.13-gentoo
drwxr-xr-x 24 root root 4096 28 avril 14:36 linux-3.7.10-gentoo-r1
drwxr-xr-x 24 root root 4096 15 mai   20:37 linux-3.8.13-gentoo
gentoo-x64-src ~ # ^C

gentoo-x64-src ~ # ls /boot -l
total 9028
lrwxrwxrwx 1 root root       1 28 avril 15:01 boot -> .
drwxr-xr-x 2 root root    4096 28 avril 15:09 grub
-rw-r--r-- 1 root root 1545912 28 avril 14:38 initramfs-genkernel-x86_64-3.7.10-gentoo-r1
-rw-r--r-- 1 root root 1546356 15 mai   20:42 initramfs-genkernel-x86_64-3.8.13-gentoo
-rw-r--r-- 1 root root 3047968 28 avril 14:37 kernel-3.7.10-gentoo-r1
-rw-r--r-- 1 root root 3088864 15 mai   20:42 kernel-3.8.13-gentoo
Comment 14 William Cooke 2013-06-09 11:33:37 UTC
Created attachment 350510 [details]
Updated ebuild

Copied from older version and added putname patch.
Comment 15 William Cooke 2013-06-09 11:34:44 UTC
Created attachment 350512 [details, diff]
Putname patch for updated ebuild

Changes syscall from putname to __putname in control.c
Comment 16 William Cooke 2013-06-09 11:35:22 UTC
As per the file listing on the SourceForge page for this project, there was a new version out on 2013-04-24. I was successfully able to emerge this new version by creating my own repository, copying open-vm-tools-kmod-2012.12.26.958366.ebuild to open-vm-tools-kmod-2013.04.16.1098359.ebuild and then applying a patch to fix a putname syscall problem. This was all on the 3.8.13-gentoo kernel.


The reason for the patch is because upon starting the service, I got this error:

modprobe: ERROR: could not insert 'vmblock': Unknown symbol in module, or unknown parameter (see dmesg)                                                                    [ !! ]
vmware-tools   | * Mounting vmblock device ...
vmware-tools   |mount: mount point /proc/fs/vmblock/mountPoint does not exist                 [ !! ]


And this is in my dmesg output:

[   43.559597] vmblock: Unknown symbol putname (err 0)


I found info about this on https://bugs.archlinux.org/task/33835 and used the referenced gentoo patch. I change some paths in it to make it work correctly. I have attached the updated ebuilds and the patch.
Comment 17 Robert R. Richter 2013-06-15 19:06:04 UTC
plz release the ebuild - need this asap! thank you!
Comment 18 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-06-22 23:28:59 UTC
Should be fixed by open-vm-tools-kmod-2013.04.16.1098359 , please reopen if there are still problems.
Comment 19 Arnim Eijkhoudt 2013-06-23 19:05:38 UTC
Please reopen, because this ebuild does not compile properly on hardened systems:

[...]
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359 ...
 * Preparing vmblock module
make -j5 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.9.6-hardened/build OVT_SOURCE_DIR=/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359 
Using 2.6.x kernel build system.
make -C /lib/modules/3.9.6-hardened/build SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-3.9.6-hardened'
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/filesystem.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/file.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/module.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/super.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/control.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/inode.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/dentry.o
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/control.c: In function ‘ExecuteBlockOp’:
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/control.c:285:9: warning: assignment from incompatible pointer type [enabled by default]
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/block.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/stubs.o
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/inode.c:49:4: warning: initialization from incompatible pointer type [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/inode.c:49:4: warning: (near initialization for ‘RootInodeOps.lookup’) [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/inode.c: In function ‘InodeOpLookup’:
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/inode.c:138:32: error: incompatible types when assigning to type ‘kgid_t’ from type ‘int’
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/dentry.c:38:4: warning: initialization from incompatible pointer type [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/dentry.c:38:4: warning: (near initialization for ‘LinkDentryOps.d_revalidate’) [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/dentry.c: In function ‘DentryOpRevalidate’:
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/dentry.c:104:7: warning: passing argument 2 of ‘actualDentry->d_op->d_revalidate’ makes integer from pointer without a cast [enabled by default]
/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/dentry.c:104:7: note: expected ‘unsigned int’ but argument is of type ‘struct nameidata *’
make[2]: *** [/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock/linux/inode.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.04.16.1098359/work/open-vm-tools-2013.04.16-1098359/modules/linux/vmblock] Error 2
make[1]: Leaving directory `/usr/src/linux-3.9.6-hardened'
make: *** [vmblock.ko] Error 2
 * ERROR: app-emulation/open-vm-tools-kmod-2013.04.16.1098359 failed (compile phase):
 *   emake failed
 * 
[...]
Comment 20 Mike Gilbert gentoo-dev 2013-06-23 19:13:47 UTC
(In reply to Arnim Eijkhoudt from comment #19)
> Please reopen, because this ebuild does not compile properly on hardened
> systems:

That looks like a separate issue; please file a new bug.