Tracker item #1813024, was opened at 2007-10-13 15:05 Message generated for change (Settings changed) made by adembo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=1813024&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: checkvm Group: None >Status: Open Resolution: None Priority: 5 Private: No Submitted By: Heiko Zuerker (smiley73) Assigned to: Nobody/Anonymous (nobody) Summary: checkvm compile fails Initial Comment: Checkvm fails to compile (see error message below). ./configure --prefix=/usr --disable-multimon --without-x make LDFLAGS=-liconv all Unfortunately upgrading to a newer gcc is at the moment not possible. Regards Heiko Zuerker http://www.devil-linux.org ----------------------------------- 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 ----------------------------------- [ cut the stuff with worked ] make[1]: Entering directory `/data/build/tmp/open-vm-tools-2007.10.08-SNAPSHOT/checkvm' gcc -DPACKAGE_NAME=\"open-vm-tools\" -DPACKAGE_TARNAME=\"open-vm-tools\" -DPACKAGE_VERSION=\"2007.10.08-SNAPSHOT\" -DPACKAGE_STRING=\"open-vm-tools\ 2007.10.08-SNAPSHOT\" -DPACKAGE_BUGREPORT=\"[EMAIL PROTECTED]" -DPACKAGE=\"open-vm-tools\" -DVERSION=\"2007.10.08-SNAPSHOT\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DX_DISPLAY_MISSING=1 -DHAVE_ECVT=1 -DHAVE_FCVT=1 -DHAVE_WCHAR_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_CRYPT_H=1 -DHAVE_SYS_IO_H=1 -DHAVE_SYS_SYSINFO_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STRUCT_STAT_ST_RDEV=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LSEEK=1 -DNO_MULTIMON=1 -I. -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 -MT checkvm.o -MD -MP -MF .deps/checkvm.Tpo -c -o checkvm.o checkvm.c checkvm.c: In function `getVersion': checkvm.c:80: error: can't find a register in class `BREG' while reloading `asm' make[1]: *** [checkvm.o] Error 1 make[1]: Leaving directory `/data/build/tmp/open-vm-tools-2007.10.08-SNAPSHOT/checkvm' make: *** [all-recursive] Error 1 ---------------------------------------------------------------------- Comment By: Adar Dembo (adembo) Date: 2008-11-24 02:32 Message: Mike, we haven't added -nopie upstream, but enough people have complained about this (here and in the Gentoo bug report) that we should look into doing just that, or look at changing the affected checkvm.c code. I'll reopen this bug. For those seeing this bug report for the first time, there's a lot more information available at the associated Gentoo bug report, which can be found here: http://bugs.gentoo.org/show_bug.cgi?id=200376 ---------------------------------------------------------------------- Comment By: Mike Auty (ikelos) Date: 2007-11-26 11:04 Message: Logged In: YES user_id=230582 Originator: NO Sorry to check on this, but does that mean that -nopie has been added to the CFLAGS in the Makefile, or could other users still run into this problem? If it has been added, is it enabled at all times, or just when being built against a hardened config? Certainly for the Gentoo distribution we can add in a Makefile patch, I just would have thought it more beneficial to have a solid fix upstream... ---------------------------------------------------------------------- Comment By: ECL (sopwith) Date: 2007-11-26 10:38 Message: Logged In: YES user_id=18318 Originator: NO Closing as "WORKSFORME"... ---------------------------------------------------------------------- Comment By: Heiko Zuerker (smiley73) Date: 2007-11-26 09:23 Message: Logged In: YES user_id=112133 Originator: YES Hey, I ended up using this to get the compile running: CC="gcc -U_FORTIFY_SOURCE -fno-PIE" LDFLAGS=-liconv ./configure --prefix=/usr --without-x make all modules -U_FORTIFY_SOURCE was necessary because there are a lot of compiler warnings and we treat warnings as errors. -fno-PIE was necessary because of the error in the original support request. It may be required on hardened systems in general. Devil-Linux uses the hardened settings from "Hardened Linux from Scratch", which may be the base or similar to other hardened distros. Heiko ---------------------------------------------------------------------- Comment By: Mike Auty (ikelos) Date: 2007-11-26 04:24 Message: Logged In: YES user_id=230582 Originator: NO Hiya, we've had a report of one of our users patching the Makefile in checkvm to include I tried to CFLAGS+="-nopie" and this appears to solve the problem. It would be nice to find a way of only enabling this if required... ---------------------------------------------------------------------- Comment By: Heiko Zuerker (smiley73) Date: 2007-10-16 14:06 Message: Logged In: YES user_id=112133 Originator: YES I hate to admit it, but the problem seems to be Devil-Linux specific. I disabled all security features and now it compiles fine. I'm not sure where the problem is, this may take quite some time to figure it out. It may be SSP or PIE related. If you want you can close this tracker. Heiko ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=1813024&group_id=204462 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ open-vm-tools-devel mailing list open-vm-tools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel