SUGGESTED FIX
diff -r c7c777385a15 src/share/tools/hsdis/Makefile
--- a/src/share/tools/hsdis/Makefile Wed Apr 02 12:09:59 2008 -0700
+++ b/src/share/tools/hsdis/Makefile Thu Apr 03 09:11:31 2008 -0700
@@ -49,6 +49,7 @@ CCFLAGS/sparcv9 += -xarch=v9
CCFLAGS/sparcv9 += -xarch=v9
CCFLAGS += $(CCFLAGS/$(LIBARCH))
DLDFLAGS += -G
+LDFLAGS += -ldl
OUTFLAGS += -o $@
LIB_EXT = .so
else
@@ -66,6 +67,7 @@ CC = gcc
CC = gcc
CCFLAGS += -O
DLDFLAGS += -shared
+LDFLAGS += -ldl
OUTFLAGS += -o $@
LIB_EXT = .so
CPPFLAGS += -Iinclude -Iinclude/$(OS)_$(ARCH)/
diff -r c7c777385a15 src/share/tools/hsdis/hsdis.c
--- a/src/share/tools/hsdis/hsdis.c Wed Apr 02 12:09:59 2008 -0700
+++ b/src/share/tools/hsdis/hsdis.c Thu Apr 03 09:11:31 2008 -0700
@@ -33,6 +33,7 @@
#include <libiberty.h>
#include <bfd.h>
#include <dis-asm.h>
+#include <inttypes.h>
#ifndef bool
#define bool int
|