5 Replies Latest reply on Apr 8, 2008 3:52 PM by clebert.suconic

    cannot ant or build profiler

    pgtaviator

      SunOS 5.9 Generic_118558-39 sun4u sparc SUNW,Sun-Fire-V240

      build of jvmpi appears to go ok.
      build of jvmti fails via compile.sh


      ../native-src/jbossAgentJNI.cpp: In function `void
      Java_org_jboss_profiler_jvmti_JVMTIInterface_notifyInventory(JNIEnv*,
      _jobject*, unsigned char, _jstring*, _jstring*, _jobject*)':
      ../native-src/jbossAgentJNI.cpp:814: warning: cast from pointer to integer of
      different size
      ../native-src/jbossAgentJNI.cpp: In function `_jstring*
      Java_org_jboss_profiler_jvmti_JVMTIInterface_getMethodName(JNIEnv*,
      _jobject*, long long int)':
      ../native-src/jbossAgentJNI.cpp:920: warning: cast to pointer from integer of
      different size
      ../native-src/jbossAgentJNI.cpp: In function `_jstring*
      Java_org_jboss_profiler_jvmti_JVMTIInterface_getMethodSignature(JNIEnv*,
      _jobject*, long long int)':
      ../native-src/jbossAgentJNI.cpp:941: warning: cast to pointer from integer of
      different size
      ../native-src/jbossAgentJNI.cpp: In function `_jclass*
      Java_org_jboss_profiler_jvmti_JVMTIInterface_getMethodClass(JNIEnv*,
      _jobject*, long long int)':
      ../native-src/jbossAgentJNI.cpp:961: warning: cast to pointer from integer of
      different size


      ANT also fails


      Buildfile: build.xml

      init:

      compile:
      [javac] Compiling 5 source files to /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/output/classes

      BUILD FAILED
      /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/build.xml:23: /holder/jboss_profiler/jboss-profiler-1.0.CR4/build/jar not found.


      mkdir -p ../build/jar (from directory containing build.xml for jvmti).
      fails again


      Buildfile: build.xml

      init:

      compile:
      [javac] Compiling 5 source files to /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/output/classes

      BUILD FAILED
      /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/build.xml:23: /holder/jboss_profiler/jboss-profiler-1.0.CR4/java/libs not found.


      java/libs does not exist in the distribution so I mkdir -p ../java/libs
      failed again.


      Buildfile: build.xml

      init:

      compile:
      [javac] Compiling 5 source files to /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/output/classes
      [javac] /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/java-src/org/jboss/profiler/jvmti/JVMTIInterface.java:25: package gnu.trove does not exist
      [javac] import gnu.trove.TLongObjectHashMap;
      [javac] ^
      [javac] /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/java-src/org/jboss/profiler/jvmti/JVMTIInterface.java:51: package org.jboss.logging does not exist
      [javac] import org.jboss.logging.Logger;
      [javac] ^
      [javac] /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/java-src/org/jboss/profiler/jvmti/JVMTIInterface.java:60: cannot find symbol
      [javac] symbol : class Logger
      [javac] location: class org.jboss.profiler.jvmti.JVMTIInterface
      [javac] private static final Logger log = Logger.getLogger(JVMTIInterface.class);
      [javac] ^
      [javac] /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/java-src/org/jboss/profiler/jvmti/JVMTIInterface.java:921: cannot find symbol
      [javac] symbol : class TLongObjectHashMap
      [javac] location: class org.jboss.profiler.jvmti.JVMTIInterface.InnerCallBack
      [javac] TLongObjectHashMap classesMap = new TLongObjectHashMap();
      [javac] ^
      [javac] /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/java-src/org/jboss/profiler/jvmti/JVMTIInterface.java:60: cannot find symbol
      [javac] symbol : variable Logger
      [javac] location: class org.jboss.profiler.jvmti.JVMTIInterface
      [javac] private static final Logger log = Logger.getLogger(JVMTIInterface.class);
      [javac] ^
      [javac] /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/java-src/org/jboss/profiler/jvmti/JVMTIInterface.java:921: cannot find symbol
      [javac] symbol : class TLongObjectHashMap
      [javac] location: class org.jboss.profiler.jvmti.JVMTIInterface.InnerCallBack
      [javac] TLongObjectHashMap classesMap = new TLongObjectHashMap();
      [javac] ^
      [javac] Note: Some input files use unchecked or unsafe operations.
      [javac] Note: Recompile with -Xlint:unchecked for details.
      [javac] 6 errors

      BUILD FAILED
      /holder/jboss_profiler/jboss-profiler-1.0.CR4/jvmti-src/build.xml:23: Compile failed; see the compiler error output for details.


      Sorry, I'm not a developer and would certainly appreciate any information regarding potential cause of these problems.

      Thank you!