hyperic / sigar

System Information Gatherer And Reporter

Home Page:http://sigar.hyperic.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build sigar: "error: called object ‘minor’ is not a function or function pointer"

GrbavaCigla opened this issue · comments

Issue

When I run make it breaks with error:
error: called object ‘minor’ is not a function or function pointer

Steps to reproduce

./autogen.sh
./configure
make

Info

I use Arch linux, linux-5.3.7

What target architecture are you building for? Have you tried the ant approach outlined in https://github.com/hyperic/sigar/wiki/source?

My target architectures are arm and x86_64, i want to use C/C++. I did not try ant, example build looks like is only for java. Thanks for fast reply!

Tried compiling with ant, but comman ant gives this:

Buildfile: /home/cigla/Documents/Git/sigar.git/bindings/java/build.xml

jni-init:
    [mkdir] Created dir: /home/cigla/Documents/Git/sigar.git/bindings/java/build/classes
     [echo] jni.src=linux, jni.jdk.os=linux, 64-bit
    [javac] /home/cigla/Documents/Git/sigar.git/bindings/java/hyperic_jni/jni-build.xml:165: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 6 source files to /home/cigla/Documents/Git/sigar.git/bindings/java/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.4
    [javac] error: Source option 1.4 is no longer supported. Use 7 or later.
    [javac] error: Target option 1.4 is no longer supported. Use 7 or later.

BUILD FAILED
/home/cigla/Documents/Git/sigar.git/bindings/java/hyperic_jni/jni-build.xml:165: Compile failed; see the compiler error output for details.

Total time: 1 second

Sorry, just seen this. Do you have JAVA_HOME set to point to a jdk dir?

JAVA_HOME is not set, but when I set it using export JAVA_HOME=/usr/lib/jvm/default, also I read that on arch JAVA_HOME doesn't need to be set because it is already set in $PATH. I also tried openjdk 7 and 8 still doesn't work. But I am trying to build for C++, so why am I using Java?
Thank you in advance!

Is this up?