Hi john, hi all.
hdis (hotspot disassembler) doesn't compile under linux, at least on my 
linux box.

There are two problems, first 'uintptr_t' is not defined by default
you have to include stdint.h and then dynamic shared library functions
(dlopen, dlsym etc) are in libdl. (cf patch as attachment)

Rémi




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to jvm-languages@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

diff --git a/src/share/tools/hsdis/Makefile b/src/share/tools/hsdis/Makefile
--- a/src/share/tools/hsdis/Makefile
+++ b/src/share/tools/hsdis/Makefile
@@ -66,6 +66,7 @@ CC 		= gcc
 CC 		= gcc
 CCFLAGS		+= -O
 DLDFLAGS	+= -shared
+LDFLAGS         += -ldl
 OUTFLAGS	+= -o $@
 LIB_EXT		= .so
 CPPFLAGS	+= -Iinclude -Iinclude/$(OS)_$(ARCH)/
diff --git a/src/share/tools/hsdis/hsdis.c b/src/share/tools/hsdis/hsdis.c
--- a/src/share/tools/hsdis/hsdis.c
+++ b/src/share/tools/hsdis/hsdis.c
@@ -33,6 +33,7 @@
 #include <libiberty.h>
 #include <bfd.h>
 #include <dis-asm.h>
+#include <stdint.h>
 
 #ifndef bool
 #define bool int

Reply via email to