hyperic / sigar

System Information Gatherer And Reporter
http://sigar.hyperic.com/
Apache License 2.0
1.52k stars 504 forks source link

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

Open GrbavaCigla opened 5 years ago

GrbavaCigla commented 5 years ago

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

boomskats commented 5 years ago

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

GrbavaCigla commented 5 years ago

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!

GrbavaCigla commented 4 years ago

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
boomskats commented 4 years ago

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

GrbavaCigla commented 4 years ago

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!

GrbavaCigla commented 4 years ago

Is this up?