Hey there,
I work for a company that produces appliances using a custom linux
platform. I'm trying to compile and setup open-vm-tools for these, and
running into problems. My question right now is, What version of
open-vm-tools should I use to compile against 2.6.36.2? Also, what version
of glib should I use?
Currently, I'm trying:
open-vm-tools-8.4.2
glib-2.16
Later versions of glib were giving me problems. I was able to get
open-vm-tools-8.4.2 to compile with glib-2.12 and some nasty patching to
open-vm-tools. I was unable to get vmxnet to recognize eth0 and figured I
ought to try compiling it without changees to code I don't understand.
Thanks, any help would be appreciated.
Kelly Price
Also, here's the diff of open-vm-tools-8.4.2 I tried:
diff -ru orig/lib/file/fileIOPosix.c work/lib/file/fileIOPosix.c
--- orig/lib/file/fileIOPosix.c 2011-09-21 11:25:15.000000000 -0700
+++ work/lib/file/fileIOPosix.c 2012-01-24 17:38:25.811606001 -0800
@@ -974,16 +974,16 @@
*/
#define VM_HAVE__LLSEEK 1
-
+/*
static INLINE int
_llseek(unsigned int fd,
- unsigned long offset_high,
+ unsigned long offset_high,
unsigned long offset_low,
loff_t * result,
unsigned int whence)
{
return syscall(SYS__llseek, fd, offset_high, offset_low, result, whence);
-}
+}*/
#endif
uint64
diff -ru orig/lib/include/vm_basic_defs.h work/lib/include/vm_basic_defs.h
--- orig/lib/include/vm_basic_defs.h 2011-09-21 11:25:15.000000000 -0700
+++ work/lib/include/vm_basic_defs.h 2012-01-24 17:27:25.471221000 -0800
@@ -63,6 +63,7 @@
*
* Standard macros for VMware source code.
*/
+#include <linux/types.h>
#ifndef _VM_BASIC_DEFS_H_
#define _VM_BASIC_DEFS_H_
@@ -343,12 +344,15 @@
#ifdef __GNUC__
#ifndef sun
-static INLINE_SINGLE_CALLER uintptr_t
+static INLINE_SINGLE_CALLER unsigned long
+//static INLINE_SINGLE_CALLER uintptr_t
GetFrameAddr(void)
{
- uintptr_t bp;
+ unsigned long bp;
+// uintptr_t bp;
#if !(__GNUC__ == 4 && (__GNUC_MINOR__ == 0 || __GNUC_MINOR__ == 1))
- bp = (uintptr_t)__builtin_frame_address(0);
+ bp = (unsigned long) __builtin_frame_address(0);
+// bp = (uintptr_t)__builtin_frame_address(0);
#else
/*
* We use this assembly hack due to a bug discovered in gcc 4.1.1.
@@ -374,7 +378,8 @@
static INLINE_SINGLE_CALLER uintptr_t
GetCallerFrameAddr(void)
{
- return *(uintptr_t*)GetFrameAddr();
+ return *(unsigned long*)GetFrameAddr();
+// return *(uintptr_t*)GetFrameAddr();
}
#endif // sun
diff -ru orig/lib/misc/idLinux.c work/lib/misc/idLinux.c
--- orig/lib/misc/idLinux.c 2011-09-21 11:25:15.000000000 -0700
+++ work/lib/misc/idLinux.c 2012-01-24 17:54:22.743606000 -0800
@@ -45,11 +45,17 @@
* for our 64bit builds!
*/
#ifdef VM_X86_64
+#undef SYS_setreuid32
#define SYS_setreuid32 (abort(), 0)
+#undef SYS_setregid32
#define SYS_setregid32 (abort(), 0)
+#undef SYS_setresuid32
#define SYS_setresuid32 (abort(), 0)
+#undef SYS_setresgid32
#define SYS_setresgid32 (abort(), 0)
+#undef SYS_setuid32
#define SYS_setuid32 (abort(), 0)
+#undef SYS_setgid32
#define SYS_setgid32 (abort(), 0)
#endif
diff -ru orig/libvmtools/vmtoolsLog.c work/libvmtools/vmtoolsLog.c
--- orig/libvmtools/vmtoolsLog.c 2011-09-21 11:25:15.000000000 -0700
+++ work/libvmtools/vmtoolsLog.c 2012-01-24 17:58:31.939606000 -0800
@@ -237,7 +237,7 @@
}
if (msg != NULL && data->convertToLocal) {
- gchar *msgCurr = g_locale_from_utf8(msg, len, NULL, &len, NULL);
+ gchar *msgCurr = g_locale_from_utf8(msg, len, NULL,(unsigned
int*) &len, NULL);
g_free(msg);
msg = msgCurr;
}
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
open-vm-tools-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-discuss