我正在尝试使用使用此C库“libhadoop.so”的应用程序构建文件。执行此操作时,将显示以下警告消息:
OpenJDK 64-Bit Server VM warning: You have loaded library /home/user/hadoop-
2.2.0/lib/native/libhadoop.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 <libfile>',
or link it with '-z noexecstack'.
有什么方法可以阻止警告出现吗?
答案 0 :(得分:0)
也许Stack guard might have disabled?给出的解决方案也会对您有所帮助。
检查包裹&#34; execstack
&#34;用:execstack --version
如果找不到,请安装:
sudo apt-get install execstack
执行消息内推荐的命令:
sudo execstack -c /home/user/hadoop-2.2.0/lib/native/libhadoop.so