使用32位库在64位VM上构建时发出警告

时间:2014-06-19 14:36:19

标签: c

我正在尝试使用使用此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'.

有什么方法可以阻止警告出现吗?

1 个答案:

答案 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