build fails with latest ebuild from vmware overlay: [...] x86_64-pc-linux-gnu-gcc -Wall -Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing -Wno-unknown-pragmas -Wno-uninitialized -DVMX86_TOOLS -I/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080123.74039/work/open-vm-tools-2008.01.23-74039/lib/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -Os -march=native -pipe -fomit-frame-pointer -DUSING_AUTOCONF=1 -Wl,--as-needed -Wl,-O1 -o guestd debugStdio.o foreignVMToolsDaemon.o foreignVMToolsNetworking.o foundryToolsDaemon.o main.o stub.o toolsDaemon.o -lcrypt -ldl -lpthread ../lib/atomic/libAtomic.a ../lib/backdoor/libBackdoor.a ../lib/conf/libConf.a ../lib/dnd/libDnd.a ../lib/err/libErr.a ../lib/eventManager/libEventManager.a ../lib/file/libFile.a ../lib/guestApp/libGuestApp.a ../lib/guestInfo/libGuestInfo.a ../lib/hgfsServer/libHgfsServer.a ../lib/hgfsServerManagerGuest/libHgfsServerManagerGuest.a ../lib/hgfsServerPolicyGuest/libHgfsServerPolicyGuest.a ../lib/deployPkg/libDeployPkg.a ../lib/impersonate/libImpersonate.a ../lib/netUtil/libNetUtil.a ../lib/printer/libPrinter.a ../lib/procMgr/libProcMgr.a ../lib/rpcIn/libRpcIn.a ../lib/rpcOut/libRpcOut.a ../lib/rpcVmx/libRpcVmx.a ../lib/SLPv2Parser/libSLPv2Parser.a ../lib/socketMgr/libSocketMgr.a ../lib/strUtil/libStrUtil.a ../lib/string/libString.a ../lib/sync/libSync.a ../lib/syncDriver/libSyncDriver.a ../lib/system/libSystem.a ../lib/user/libUser.a ../lib/vixTools/libVixTools.a ../lib/vmBackupLib/libVmBackupLib.a ../lib/vmCheck/libVmCheck.a ../lib/vmSignal/libVmSignal.a ../lib/wiper/libWiper.a ../lib/dict/libDict.a ../lib/hgfs/libHgfs.a ../lib/message/libMessage.a ../lib/unicode/libUnicode.a ../lib/misc/libMisc.a ../lib/foundryMsg/libFoundryMsg.a ../lib/fileUtf8/libFileUtf8.a ../lib/auth/libAuth.a ../lib/panicDefault/libPanicDefault.a ../lib/panic/libPanic.a ../lib/deployPkg/libDeployPkg.a(runDeployPkgPosix.o): In function `DeployPkgDeployPkgInGuest': runDeployPkgPosix.c:(.text+0x20): undefined reference to `dlopen' runDeployPkgPosix.c:(.text+0x2d): undefined reference to `dlerror' runDeployPkgPosix.c:(.text+0x87): undefined reference to `dlsym' runDeployPkgPosix.c:(.text+0x97): undefined reference to `dlsym' runDeployPkgPosix.c:(.text+0xa6): undefined reference to `dlerror' runDeployPkgPosix.c:(.text+0x139): undefined reference to `dlclose' ../lib/auth/libAuth.a(authPosix.o): In function `Auth_AuthenticateUser': authPosix.c:(.text+0x34): undefined reference to `crypt' authPosix.c:(.text+0x54): undefined reference to `crypt' collect2: ld returned 1 exit status make[1]: *** [guestd] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080123.74039/work/open-vm-tools-2008.01.23-74039/guestd' make: *** [all-recursive] Error 1 * * ERROR: app-emulation/open-vm-tools-0.0.20080123.74039 failed. * Call stack: * ebuild.sh, line 46: Called src_compile * environment, line 3786: Called die * The specific snippet of code: * emake || die * The die message: * (no error message) localhost ~ # emerge --info Portage 2.1.4.1 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.24-zen1 x86_64) ================================================================= System uname: 2.6.24-zen1 x86_64 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz Timestamp of tree: Sat, 02 Feb 2008 23:30:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r6, 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Os -march=native -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" Reproducible: Always Steps to Reproduce: 1.emerge open-vm-tools
found it: LDFLAGS="-Wl,--as-needed" proposing filter of that flag inside ebuild.
(In reply to comment #1) > found it: LDFLAGS="-Wl,--as-needed" > > proposing filter of that flag inside ebuild. Filtering flags doesn't fix anything.
This has now been fixed in the vmware overlay, which you can access using layman. Please give it a try and let me know if you have any problems with it. After a bit of testing I'll push it into the main tree. Thanks... 5:)
C [M] /var/portage/tmp/portage/app-emulation/open-vm-tools-0.0.20080123.74039/work/open-vm-tools-2008.01.23-74039/modules/linux/vmblock/linux/filesystem.o /var/portage/tmp/portage/app-emulation/open-vm-tools-0.0.20080123.74039/work/open-vm-tools-2008.01.23-74039/modules/linux/vmblock/linux/filesystem.c: In function ‘Iget’: /var/portage/tmp/portage/app-emulation/open-vm-tools-0.0.20080123.74039/work/open-vm-tools-2008.01.23-74039/modules/linux/vmblock/linux/filesystem.c:276: error: implicit declaration of function ‘iget’ /var/portage/tmp/portage/app-emulation/open-vm-tools-0.0.20080123.74039/work/open-vm-tools-2008.01.23-74039/modules/linux/vmblock/linux/filesystem.c:276: warning: assignment makes pointer from integer without a cast make[2]: *** [/var/portage/tmp/portage/app-emulation/open-vm-tools-0.0.20080123.74039/work/open-vm-tools-2008.01.23-74039/modules/linux/vmblock/linux/filesystem.o] Error 1 make[1]: *** [_module_/var/portage/tmp/portage/app-emulation/open-vm-tools-0.0.20080123.74039/work/open-vm-tools-2008.01.23-74039/modules/linux/vmblock] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.25-rc1' make: *** [vmblock.ko] Error 2 * * ERROR: app-emulation/open-vm-tools-0.0.20080123.74039 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3704: Called linux-mod_src_compile * environment, line 2892: Called die * The specific snippet of code: * emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."; * The die message: * Unable to make auto-build HEADER_DIR=/usr/src/linux/include BUILD_DIR=/lib/modules/2.6.25-rc1/build. * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/app-emulation:open-vm-tools-0.0.20080123.74039:20080215-201716.log'. * The ebuild environment file is located at '/var/portage/tmp/portage/app-emulation/open-vm-tools-0.0.20080123.74039/temp/environment'. * * Messages for package app-emulation/open-vm-tools-0.0.20080123.74039: * If you're compiling for a hardened target, please use the hardened * toolchain (see bug #200376, comment 18). * * ERROR: app-emulation/open-vm-tools-0.0.20080123.74039 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3704: Called linux-mod_src_compile * environment, line 2892: Called die * The specific snippet of code: * emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}.";
Barbu, Your compilation issues is not related the as-needed flag, the error message you're getting is not indicative of of that problem. My guess is that you're running into problems because you're trying to compile this against the 2.6.25-rc1 kernel. Whilst you could file a new bug on this (and one will almost certainly get filed eventually, so feel free to do so), we do not support release candidate versions of the kernel, and you'll be told this in the bug. If you have a patch to fix the problem, we'll be happy to review and integrate it, but otherwise please be patient...
Ok, this has been in the tree for a while, so I'm going to mark this as FIXED. Please feel free to reopen if you're still having problems. 5:)