Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244973 - app-emulation/open-vm-tools-0.0.20080808.109361-r1 missing asm/semaphore.h with 2.6.27-r1
Summary: app-emulation/open-vm-tools-0.0.20080808.109361-r1 missing asm/semaphore.h wi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-30 15:31 UTC by Steffen Bergner
Modified: 2008-11-12 13:29 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Bergner 2008-10-30 15:31:48 UTC
Can't compile "app-emulation/open-vm-tools-0.0.20080808.109361-r1" with gentoo-sources-2.6.27-r1 kernel:

...

 * Preparing vmblock module
Using 2.6.x kernel build system.
make -C /usr/src/linux SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r1'
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/block.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/control.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/dbllnklst.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/dentry.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/file.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/filesystem.o
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/filesystem.c: In function 'VMBlockInitFileSystem':
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/filesystem.c:135: warning: passing argument 5 of 'kmem_cache_create' from incompatible pointer type
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/inode.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/module.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/stubs.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/super.o
  LD [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/vmblock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/vmblock.mod.o
  LD [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/vmblock.ko
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r1'
cp -f vmblock.ko ./../vmblock.o
 * Preparing vmhgfs module
Using 2.6.x kernel build system.
make -C /usr/src/linux SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r1'
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/backdoor.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/backdoorGcc32.o
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/bdhandler.o
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/bdhandler.c:29:27: error: asm/semaphore.h: No such file or directory
make[2]: *** [/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/bdhandler.o] Error 1
make[1]: *** [_module_/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r1'
make: *** [vmhgfs.ko] Error 2
 *
 * ERROR: app-emulation/open-vm-tools-0.0.20080808.109361-r1 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 3294:  Called linux-mod_src_compile
 * environment, line 2475:  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 HEADER_DIR=/usr/src/linux/include BUILD_DIR=/usr/src/linux
 *
 * 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/open-vm-tools-0.0.20080808.109361-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/temp/environment'.
 *

>>> Failed to emerge app-emulation/open-vm-tools-0.0.20080808.109361-r1, Log file:

>>>  '/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/temp/build.log'

 * GNU info directory index is up-to-date.


Reproducible: Always

Steps to Reproduce:
emerge -1v open-vm-tools
Actual Results:  
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/bdhandler.o
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/bdhandler.c:29:27: error: asm/semaphore.h: No such file or directory
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-10-30 16:08:18 UTC
FYI:
asm/semaphore.h was moved to linux/semaphore.h iirc. AFAIK, asm/semaphore.h was just one line that included the other location. So, this is an UPSTREAM problem.

hint: app-emulation/virtualbox has the same problem.

Quick google hit, same issue. Upstream was notified and "fixed"
http://sourceforge.net/tracker/?func=detail&atid=989708&aid=2071170&group_id=204462
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-10-30 16:10:13 UTC
(In reply to comment #1)
> FYI:
> asm/semaphore.h was moved to linux/semaphore.h iirc. AFAIK, asm/semaphore.h was


Correction: asm/semaphore.h was just flat out removed in favor of linux/semaphore.h
Comment 3 Mike Auty (RETIRED) gentoo-dev 2008-11-10 10:54:35 UTC
Sorry for the long delay.  I've just pushed 20081010 into the overlay without any testing.  Any chance you could give it a go and let me know how you get on?  If it works out ok, I'll push it into the main tree shortly after.  Thanks...  5:)
Comment 4 Steffen Bergner 2008-11-11 12:21:41 UTC
Which overlay and how to integrate into my portage usage? Thanks.
Comment 5 Mike Auty (RETIRED) gentoo-dev 2008-11-11 19:46:36 UTC
Hiya Steffen, the overlay I was referring to was the vmware overlay ( http://overlays.gentoo.org/proj/vmware ).  You should be able to make use of it using the layman tool, which you can find out how to install/use at http://www.gentoo.org/proj/en/overlays/userguide.xml.
Comment 6 Steffen Bergner 2008-11-12 13:29:07 UTC
(In reply to comment #5)
It works for me now again. Thank you very much. (open-vm-tools-0.0.20081010.123053 and vmware-modules-1.0.0.23)