Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GrbavaCigla opened this issue Oct 31, 2019 · 6 comments

Comments

@GrbavaCigla
Copy link

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
Copy link

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

@GrbavaCigla
Copy link
Author

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
Copy link
Author

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
Copy link

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

@GrbavaCigla
Copy link
Author

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
Copy link
Author

Is this up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants