Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208741 - app-emulation/open-vm-tools-0.0.20080123.74039: fail to emerge w/ --as-needed
Summary: app-emulation/open-vm-tools-0.0.20080123.74039: fail to emerge w/ --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-02-03 13:31 UTC by Veit Nachtmann
Modified: 2008-04-06 21:18 UTC (History)
0 users

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 Veit Nachtmann 2008-02-03 13:31:34 UTC
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
Comment 1 Veit Nachtmann 2008-02-03 13:53:11 UTC
found it: LDFLAGS="-Wl,--as-needed"

proposing filter of that flag inside ebuild.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-03 16:09:55 UTC
(In reply to comment #1)
> found it: LDFLAGS="-Wl,--as-needed"
> 
> proposing filter of that flag inside ebuild.

Filtering flags doesn't fix anything.

Comment 3 Mike Auty (RETIRED) gentoo-dev 2008-02-05 13:26:56 UTC
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:)
Comment 4 Barbu Eros Iulian 2008-02-15 20:21:28 UTC
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}.";
 
Comment 5 Mike Auty (RETIRED) gentoo-dev 2008-02-16 13:33:26 UTC
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...
Comment 6 Mike Auty (RETIRED) gentoo-dev 2008-04-06 21:18:33 UTC
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:)