VMware Cloud Community
dschmid_hyperic
Contributor
Contributor

Errors while trying to build on 64bit AIX

If i try to build the SIGAR suite on a 64Bit AIX machine the following errors occours:

Buildfile: build.xml

jni-init:
[mkdir] Created dir: /home/schm/sigar/bindings/java/build/classes
[echo] java.home=/usr/java14
[echo] jni.src=aix, jni.jdk.os=aix
[javac] Compiling 6 source files to /home/schm/sigar/bindings/java/build/classes
[javac] Note: /home/schm/sigar/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchLoader.java uses or overrides a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[libarch] ppc-aix-5

sigar-version:

version-file:
[copydep] Copying 1 file to /home/schm/sigar/bindings/java/build/src/org/hyperic/sigar

version-file:
[copydep] Copying 1 file to /home/schm/sigar/bindings/java/build/src

version-file:
[copydep] Copying 1 file to /home/schm/sigar/bindings/java/build/src

prepare-src:
[exec] generating javasigar_generated.c
[exec] skipping
[copy] Copying 1 file to /home/schm/sigar/bindings/java/sigar-bin/lib

jni-compile:

jni-cc:
[mkdir] Created dir: /home/schm/sigar/bindings/java/build/obj/ppc-aix-5/lib
[echo] jni libname=sigar-ppc-aix-5
Warning: Reference jni.include.dirs has not been set at runtime, but was found during
build file parsing, attempting to resolve. Future versions of Ant may support
referencing ids defined in non-executed targets.

BUILD FAILED
/home/schm/sigar/bindings/java/hyperic_jni/jni-build.xml:200: The following error occurred while executing this line:
/home/schm/sigar/bindings/java/hyperic_jni/jni-build.xml:246: jni.include.dirs doesn't denote a IncludePath


I'm using the following build environment:

- Perl Version 5.8.2
- Ant Version 1.7.0
- Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20060421 (SR5) (JIT enabled: jitc))
- clean SVN-Checkout of SIGAR

Would be glad to receive any help to finish the build.
Regards, Dirk
Reply
0 Kudos
4 Replies
dougm_hyperic
VMware Employee
VMware Employee

Hi Dirk,

Looks like this problem is with ant 1.7. I will look into it, but in
the meantime you should be able to build using ant 1.6.1.

On Jan 12, 2007, at 6:26 AM, dschmid wrote:

> If i try to build the SIGAR suite on a 64Bit AIX machine the
> following errors occours:
>
> Buildfile: build.xml
>
> jni-init:
> [mkdir] Created dir: /home/schm/sigar/bindings/java/build/classes
> [echo] java.home=/usr/java14
> [echo] jni.src=aix, jni.jdk.os=aix
> [javac] Compiling 6 source files to /home/schm/sigar/bindings/
> java/build/classes
> [javac] Note: /home/schm/sigar/bindings/java/hyperic_jni/src/
> org/hyperic/jni/ArchLoader.java uses or overrides a deprecated API.
> [javac] Note: Recompile with -deprecation for details.
> [libarch] ppc-aix-5
>
> sigar-version:
>
> version-file:
> [copydep] Copying 1 file to /home/schm/sigar/bindings/java/build/
> src/org/hyperic/sigar
>
> version-file:
> [copydep] Copying 1 file to /home/schm/sigar/bindings/java/build/src
>
> version-file:
> [copydep] Copying 1 file to /home/schm/sigar/bindings/java/build/src
>
> prepare-src:
> [exec] generating javasigar_generated.c
> [exec] skipping
> [copy] Copying 1 file to /home/schm/sigar/bindings/java/sigar-
> bin/lib
>
> jni-compile:
>
> jni-cc:
> [mkdir] Created dir: /home/schm/sigar/bindings/java/build/obj/
> ppc-aix-5/lib
> [echo] jni libname=sigar-ppc-aix-5
> Warning: Reference jni.include.dirs has not been set at runtime,
> but was found during
> build file parsing, attempting to resolve. Future versions of Ant
> may support
> referencing ids defined in non-executed targets.
>
> BUILD FAILED
> /home/schm/sigar/bindings/java/hyperic_jni/jni-build.xml:200: The
> following error occurred while executing this line:
> /home/schm/sigar/bindings/java/hyperic_jni/jni-build.xml:246:
> jni.include.dirs doesn't denote a IncludePath
>
>
> I'm using the following build environment:
>
> - Perl Version 5.8.2
> - Ant Version 1.7.0
> - Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
> Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20060421
> (SR5) (JIT enabled: jitc))
> - clean SVN-Checkout of SIGAR
>
> Would be glad to receive any help to finish the build.
> Regards, Dirk
>



Reply
0 Kudos
dschmid_hyperic
Contributor
Contributor

Thanks for help.
With ANT 1.6.5 all works fine.

Dirk
Reply
0 Kudos
DanielXu_hyperi
Contributor
Contributor

I've got errors as below:

Buildfile: build.xml

jni-init:
[mkdir] Created dir: /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/build/classes
[echo] java.home=/usr/java14
[echo] jni.src=aix, jni.jdk.os=aix, 32-bit
[javac] Compiling 5 source files to /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/build/classes
[javac] /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchLoader.java:126: cannot resolve symbol
[javac] symbol : class ArchNotSupportedException
[javac] location: class org.hyperic.jni.ArchLoader
[javac] throws ArchNotSupportedException {
[javac] ^
[javac] /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchLoader.java:132: cannot resolve symbol
[javac] symbol : class ArchNotSupportedException
[javac] location: class org.hyperic.jni.ArchLoader
[javac] throws ArchNotSupportedException {
[javac] ^
[javac] /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchLoader.java:183: cannot resolve symbol
[javac] symbol : class ArchNotSupportedException
[javac] location: class org.hyperic.jni.ArchLoader
[javac] throws ArchNotSupportedException {
[javac] ^
[javac] /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchLoader.java:373: cannot resolve symbol
[javac] symbol : class ArchNotSupportedException
[javac] location: class org.hyperic.jni.ArchLoader
[javac] throws ArchNotSupportedException,
[javac] ^
[javac] /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchLoader.java:421: cannot resolve symbol
[javac] symbol : class ArchNotSupportedException
[javac] location: class org.hyperic.jni.ArchLoader
[javac] throws ArchNotSupportedException,
[javac] ^
[javac] /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchLoader.java:427: cannot resolve symbol
[javac] symbol : class ArchNotSupportedException
[javac] location: class org.hyperic.jni.ArchLoader
[javac] throws ArchNotSupportedException,
[javac] ^
[javac] /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchName.java:30: cannot resolve symbol
[javac] symbol : class ArchNotSupportedException
[javac] location: class org.hyperic.jni.ArchName
[javac] public static String getName() throws ArchNotSupportedException {
[javac] ^
[javac] /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchName.java:42: cannot resolve symbol
[javac] symbol : class ArchNotSupportedException
[javac] location: class org.hyperic.jni.ArchName
[javac] private static String getArchName() throws ArchNotSupportedException {
[javac] ^
[javac] /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchLoader.java:204: cannot resolve symbol
[javac] symbol : class ArchNotSupportedException
[javac] location: class org.hyperic.jni.ArchLoader
[javac] } catch (ArchNotSupportedException e) {
[javac] ^
[javac] /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchName.java:100: cannot resolve symbol
[javac] symbol : class ArchNotSupportedException
[javac] location: class org.hyperic.jni.ArchName
[javac] throw new ArchNotSupportedException("platform (" + desc + ") not supported");
[javac] ^
[javac] /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchNameTask.java:35: cannot resolve symbol
[javac] symbol : class ArchNotSupportedException
[javac] location: class org.hyperic.jni.ArchNameTask
[javac] } catch (ArchNotSupportedException e) {
[javac] ^
[javac] Note: /home/daniel/sigar/hyperic-sigar-1.5.0.1-src/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchLoader.java uses or overrides a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 11 errors


My platform is:
IBM AIX 5.3
apache-ant-1.6.5
hyperic-sigar-1.5.0.1-src
Perl Version 5.8.2
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20060421 (SR5) (JIT enabled: jitc))

Thanks for any help.
Best Regards,
Daniel
Reply
0 Kudos
dougm_hyperic
VMware Employee
VMware Employee

hmm, "Compiling 5 source files ...", that should be 6, sounds like you're somehow missing ArchNotSupportedException.java?

ls -1 hyperic_jni/src/org/hyperic/jni/*.java
hyperic_jni/src/org/hyperic/jni/ArchLoaderException.java
hyperic_jni/src/org/hyperic/jni/ArchLoader.java
hyperic_jni/src/org/hyperic/jni/ArchName.java
hyperic_jni/src/org/hyperic/jni/ArchNameTask.java
hyperic_jni/src/org/hyperic/jni/ArchNotSupportedException.java
hyperic_jni/src/org/hyperic/jni/CopyDependsTask.java
Reply
0 Kudos