This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling failed for ElfPrstatus.cxx file on x86-64.


Phil,

The compiling based on the cvs-head(10-23) fails for the
frysk/lib/elf/cni/ElfPrstatus.cxx on X86_64. The compiler cannot find
the "u64" and "u32" type definition, which are introduced from
<asm/elf.h>.

I give one small patch, but I think it's not a good fix. :-)

Best regards
Yong Zheng
Index: frysk-imports/lib/elf/cni/ElfPrstatus.cxx
===================================================================
RCS file: /cvs/frysk/frysk-imports/lib/elf/cni/ElfPrstatus.cxx,v
retrieving revision 1.1
diff -u -r1.1 ElfPrstatus.cxx
--- frysk-imports/lib/elf/cni/ElfPrstatus.cxx	23 Oct 2006 00:20:58 -0000	1.1
+++ frysk-imports/lib/elf/cni/ElfPrstatus.cxx	23 Oct 2006 12:01:14 -0000
@@ -43,9 +43,16 @@
 #include <stdio.h>
 #include <stdint.h>
 
+#include <asm/types.h>
+#ifdef __x86_64__
+typedef __u64 u64;
+typedef __u32 u32;
+#endif
+
 #include "lib/elf/ElfPrstatus.h"
 #include "asm/elf.h"
 
+
 using namespace std;
 using namespace java::lang;
 using namespace java::util;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]