hyperic / sigar

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

Suppressing Linux x86 Java 7u40+ warning about disabled stack guard #35

Open jprante opened 10 years ago

jprante commented 10 years ago

Sigar lib causes warnings on latest HostSpot JVM:

Java HotSpot(TM) Server VM warning: You have loaded library .../libsigar-x86-linux.so which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.

Is it possible to provide recompiled Linux binaries that do not cause these warning messages?

liaicheng commented 9 years ago

have you solved it? could you show me the way? thanks~!

jprante commented 9 years ago

See pull request #53

You can apply the patch and then run

./autogen.sh ./configure make

Then, replace old sigar lib file with ./src/.libs/libsigar.so.0.0.0

Groostav commented 9 years ago

@jprante has this fix been pushed into a maven release of sigar?

jprante commented 9 years ago

Pull request #53 is still open, beside many others. And for a long time now, I can not see a new sigar release.