After reading the issues on this list about compiling jprof with JDK 1.6, I downloaded JDK 1.5.0_22 and ran tinstall.appl (after updating the path to jnd_mi.h for the include in jni.h).  I received the following error:

if gcc -DHAVE_CONFIG_H -I. -I. -I../../include    -I ../../include -I /var/tmp/jdk1.5.0_22/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DJVMTI -fPIC -shared -D_NO_SCS -g -O2 -m64 -MT jprof.o -MD -MP -MF ".deps/jprof.Tpo" -c -o jprof.o jprof.c; \

        then mv -f ".deps/jprof.Tpo" ".deps/jprof.Po"; else rm -f ".deps/jprof.Tpo"; exit 1; fi

In file included from jprof.c:603:

jprof12x.c: In function ‚EnableEvents1x‚:

jprof12x.c:78: error: ‚JVMPI_EVENT_GEN_COMPILED_METHOD‚ undeclared (first use in this function)

jprof12x.c:78: error: (Each undeclared identifier is reported only once

jprof12x.c:78: error: for each function it appears in.)

jprof12x.c:82: error: ‚JVMPI_EVENT_GEN_INLINE_METHOD‚ undeclared (first use in this function)

jprof12x.c:86: error: ‚JVMPI_EVENT_GEN_BUILTIN_METHOD‚ undeclared (first use in this function)

jprof12x.c:130: error: ‚JVMPI_EVENT_COMPILING_START‚ undeclared (first use in this function)

jprof12x.c:131: error: ‚JVMPI_EVENT_COMPILING_END‚ undeclared (first use in this function)

jprof12x.c: In function ‚EnableEvents2x‚:

jprof12x.c:172: error: ‚JVMPI_EVENT_COMPILED_METHOD_EXIT‚ undeclared (first use in this function)

jprof12x.c:175: error: ‚JVMPI_EVENT_COMPILED_METHOD_ENTRY‚ undeclared (first use in this function)

jprof12x.c:176: error: ‚JVMPI_EVENT_COMPILED_METHOD_ENTRY2‚ undeclared (first use in this function)

jprof12x.c:181: error: ‚JVMPI_EVENT_INLINE_METHOD_ENTRY‚ undeclared (first use in this function)

jprof12x.c:182: error: ‚JVMPI_EVENT_INLINE_METHOD_ENTRY2‚ undeclared (first use in this function)

jprof12x.c:187: error: ‚JVMPI_EVENT_BUILTIN_METHOD_ENTRY‚ undeclared (first use in this function)

jprof12x.c:188: error: ‚JVMPI_EVENT_BUILTIN_METHOD_ENTRY2‚ undeclared (first use in this function)

jprof12x.c:193: error: ‚JVMPI_EVENT_NATIVE_METHOD_ENTRY‚ undeclared (first use in this function)

jprof12x.c:194: error: ‚JVMPI_EVENT_NATIVE_METHOD_ENTRY2‚ undeclared (first use in this function)

jprof12x.c:197: error: ‚JVMPI_EVENT_COMPILING_START‚ undeclared (first use in this function)

jprof12x.c:198: error: ‚JVMPI_EVENT_COMPILING_END‚ undeclared (first use in this function)

jprof12x.c:262: error: ‚JVMPI_EVENT_COMPILER_GC_START‚ undeclared (first use in this function)

jprof12x.c:263: error: ‚JVMPI_EVENT_COMPILER_GC_END‚ undeclared (first use in this function)

jprof.c: In function ‚init_event_names‚:

jprof.c:1135: error: ‚JVMPI_EVENT_COMPILED_METHOD_ENTRY‚ undeclared (first use in this function)

jprof.c:1136: error: ‚JVMPI_EVENT_COMPILED_METHOD_ENTRY2‚ undeclared (first use in this function)

jprof.c:1137: error: ‚JVMPI_EVENT_INLINE_METHOD_ENTRY‚ undeclared (first use in this function)

jprof.c:1138: error: ‚JVMPI_EVENT_INLINE_METHOD_ENTRY2‚ undeclared (first use in this function)

jprof.c:1139: error: ‚JVMPI_EVENT_BUILTIN_METHOD_ENTRY‚ undeclared (first use in this function)

jprof.c:1140: error: ‚JVMPI_EVENT_BUILTIN_METHOD_ENTRY2‚ undeclared (first use in this function)

jprof.c:1141: error: ‚JVMPI_EVENT_NATIVE_METHOD_ENTRY‚ undeclared (first use in this function)

jprof.c:1142: error: ‚JVMPI_EVENT_NATIVE_METHOD_ENTRY2‚ undeclared (first use in this function)

jprof.c:1143: error: ‚JVMPI_EVENT_COMPILING_START‚ undeclared (first use in this function)

jprof.c:1147: error: ‚JVMPI_EVENT_COMPILED_METHOD_EXIT‚ undeclared (first use in this function)

jprof.c:1148: error: ‚JVMPI_EVENT_COMPILING_END‚ undeclared (first use in this function)

jprof.c: In function ‚jeh_jmLoadInfo‚:

jprof.c:1564: error: ‚union <anonymous>‚ has no member named ‚generic_compiled_method_load‚

jprof.c:1565: error: ‚union <anonymous>‚ has no member named ‚generic_compiled_method_load‚

jprof.c:1566: error: ‚union <anonymous>‚ has no member named ‚generic_compiled_method_load‚

jprof.c:1567: error: ‚union <anonymous>‚ has no member named ‚generic_compiled_method_load‚

jprof.c:1568: error: ‚union <anonymous>‚ has no member named ‚generic_compiled_method_load‚

jprof.c: In function ‚JVM_OnLoad‚:

jprof.c:1889: error: ‚JVMPI_EVENT_DISABLE_COMPATIBILITY‚ undeclared (first use in this function)

jprof.c: In function ‚JVM_Event‚:

jprof.c:2252: error: ‚JVMPI_EVENT_COMPILING_END‚ undeclared (first use in this function)

jprof.c:2343: warning: passing argument 2 of ‚procSockCmd‚ discards qualifiers from pointer target type

jprof.c:2347: error: ‚JVMPI_EVENT_COMPILED_METHOD_ENTRY2‚ undeclared (first use in this function)

jprof.c:2348: error: ‚JVMPI_EVENT_NATIVE_METHOD_ENTRY2‚ undeclared (first use in this function)

jprof.c:2349: error: ‚JVMPI_EVENT_BUILTIN_METHOD_ENTRY2‚ undeclared (first use in this function)

jprof.c:2361: error: ‚JVMPI_EVENT_COMPILED_METHOD_ENTRY‚ undeclared (first use in this function)

jprof.c:2362: error: ‚JVMPI_EVENT_NATIVE_METHOD_ENTRY‚ undeclared (first use in this function)

jprof.c:2363: error: ‚JVMPI_EVENT_BUILTIN_METHOD_ENTRY‚ undeclared (first use in this function)

jprof.c:2364: error: ‚JVMPI_EVENT_COMPILING_START‚ undeclared (first use in this function)

jprof.c:2370: error: ‚JVMPI_EVENT_COMPILED_METHOD_EXIT‚ undeclared (first use in this function)

jprof.c:2554: error: ‚JVMPI_EVENT_COMPILED_METHOD_LOAD2‚ undeclared (first use in this function)

jprof.c: In function ‚deh_ClassLoad‚:

jprof.c:7121: warning: passing argument 2 of ‚addClass‚ discards qualifiers from pointer target type

make[3]: *** [jprof.o] Error 1

make[3]: Leaving directory `/var/tmp/Dpiperf/src/jprof'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/var/tmp/Dpiperf/src/jprof'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/var/tmp/Dpiperf/src'

make: *** [all-recursive] Error 1

error during make. Exiting.

[root@wal-sapp-18 Dpiperf]#

Any idea what Im doing wrong?  I apologize if this has been answered elsewhere, google and the perfinsp-list archive didnt seem to have any information about this one

Thanks in advance,


Mark