|
From: SourceForge.net <no...@so...> - 2007-11-26 18:39:16
|
Tracker item #1813016, was opened at 2007-10-13 21:22 Message generated for change (Comment added) made by sopwith You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=1813016&group_id=204462 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Heiko Zuerker (smiley73) Assigned to: ECL (sopwith) Summary: make needs LDFLAGS=-liconv Initial Comment: Hi, the open-vm-tools only compiles in my environment when I add LDFLAGS=-liconv to the make command. See the details at the end of this message. Thanks Heiko ----------------------------------- gcc -v Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.2/specs Configured with: ../gcc-3.3.2/configure --prefix=/usr --localstatedir=/var --enable-shared --enable-CONFIG_SHELL=/bin/bash --enable-threads=posix --with-slibdir=/lib --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,objc --disable-nls i586-pc-linux-gnu Thread model: posix gcc version 3.3.2 ----------------------------------- ld -v GNU ld version 2.16.1 ----------------------------------- glibc 2.3.2 ----------------------------------- gcc -Wall -Werror -Wno-unknown-pragmas -Wno-uninitialized -fno-strict-aliasing -Wno-unused-value -DVMX86_TOOLS -I/data/build/tmp/open-vm-tools-2007.10.08-SNAPSHOT/lib/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -DUSING_AUTOCONF=1 -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/misc/libMisc.a ../lib/foundryMsg/libFoundryMsg.a ../lib/fileUtf8/libFileUtf8.a ../lib/auth/libAuth.a ../lib/panicDefault/libPanicDefault.a ../lib/panic/libPanic.a ../lib/misc/libMisc.a(codeset.o): In function `CodeSetGenericToGeneric': codeset.c:(.text+0x3c5): undefined reference to `libiconv_open' codeset.c:(.text+0x3f5): undefined reference to `libiconv_open' codeset.c:(.text+0x48c): undefined reference to `libiconv' codeset.c:(.text+0x4f7): undefined reference to `libiconv_close' codeset.c:(.text+0x51b): undefined reference to `libiconv_close' collect2: ld returned 1 exit status make[1]: *** [guestd] Error 1 make[1]: Leaving directory `/data/build/tmp/open-vm-tools-2007.10.08-SNAPSHOT/guestd' make: *** [all-recursive] Error 1 ---------------------------------------------------------------------- >Comment By: ECL (sopwith) Date: 2007-11-26 18:39 Message: Logged In: YES user_id=18318 Originator: NO Closing as "WORKSFORME" ---------------------------------------------------------------------- Comment By: Heiko Zuerker (smiley73) Date: 2007-10-16 21:09 Message: Logged In: YES user_id=112133 Originator: YES I disabled all security features, but it still doesn't compile. I'm fine with adding LDFLAGS=-liconv in our build environment, if you want to close this tracker. Heiko ---------------------------------------------------------------------- Comment By: Heiko Zuerker (smiley73) Date: 2007-10-16 00:08 Message: Logged In: YES user_id=112133 Originator: YES In order to reproduce the problem you would have to get the Devil-Linux build environment and kick off a compile. http://www.devil-linux.org/documentation/1.2.x/ch03.html This takes a little bit time and a couple of gigabytes of disk space. Start with the default configuration, but stop after the 'make menuconfig'. Edit the file .config and set OPEN_VM_TOOLS to y. If you don't want spend the time on it, we compile everything per default with -pie and ssp. I did a test compile with make CC="gcc -nopie -fno-stack-protector" all It still didn't work (same error). I will kick off a fresh clean compile with all these security options disabled, maybe that makes a difference. This will take quite a while to finish. Heiko ---------------------------------------------------------------------- Comment By: ECL (sopwith) Date: 2007-10-15 23:20 Message: Logged In: YES user_id=18318 Originator: NO Thanks for reporting this problem. I'm wondering why the undefined function references are to 'libiconv*' instead of 'iconv*'... Did you pass some special flags when building or something like that? glibc 2.3.2 definitely has iconv_open(), iconv(), and iconv_close() functions included in the main libc library. I'd need info on reproducing this before I could suggest a solution. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=1813016&group_id=204462 |