This tripped me up, so I thought I'd share the problem and solution just in 
case someone follows in my footsteps or if the developers are interested.

I'm trying to build and install open-vm-tools on a Debian etch guest os (uname 
-a = 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux).

Initially the compilation failed when it got as far as compiling the modules, 
failing on the first module - vmmemctl. There were a lot of include file errors 
- redefinitions, undeclared stuff etc.

It had reported that it was "Using standalone build system." whereas installing 
VMware-tools on Debian usually reports "Using 2.6.x kernel build system."

I tracked the problem down to the module Makefiles declaring "HEADER_DIR = 
/lib/modules/$(VM_UNAME)/build/include". On the Debian systems that I have 
access to, build/ doesn't exist in /lib/modules/2.6.18-4-686. The kernel source 
Debian package installs under /usr/src/. I don't know if this is a peculiarity 
in the way I've configured or installed Debian or the packages, or if it's an 
incorrect assumption in the open-vm-tools build process.

Either way, I worked around it with a "ln -s 
/usr/src/linux-source-2.6.18/include /lib/modules/2.6.18-4-686/build/include" 
and it compiled fine.

I tried configuring with either 
--includedir=/usr/src/linux-source-2.6.18/include or 
HEADER_DIR="/usr/src/linux-source-2.6.18/include" and building without the 
symlink, but both used the standalone build system and failed as before. Maybe 
there's a correct way to configure HEADER_DIR?

Rather than installing a number of additional packages, I chose to configure 
with --without-x --without-dnet --without-icu.

Alan.


NOTICE & DISCLAIMER 
This email including attachments (this "Document") is confidential and may 
contain legally privileged information.  If you have received this Document in 
error please notify the sender immediately and delete this Document from your 
system without using, copying, disclosing or disseminating it or placing any 
reliance upon its contents.  We cannot accept liability for any breaches of 
confidence arising through use of this Document.

The information contained in this Document is provided solely for information 
purposes on an "as is" basis without warranty of any kind, either express or 
implied, including without limitation any implied warranty of satisfactory or 
merchantable quality, fitness for a particular purpose or freedom from error or 
infringement.  The user relies on the information contained herein, and its 
accuracy or otherwise, entirely at their own risk.

Any opinions expressed in this Document are those of the author and do not 
necessarily reflect the opinions of Telsis.  We will not accept responsibility 
for any commitments made by our employees outside the scope of our business.




-------------------------------------------------------------------------
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

Reply via email to