some problems when i cross compiling the nagios-plugins
Posted: Mon Apr 15, 2013 8:45 pm
When i try to cross-compiling the nagios-plugin, i had a mistake when i "make "it ,the error is :
i had search it on the net ,but i can not find any help .so if you know something ,please help me ,thanks!
Code: Select all
/opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -g -O2 -o check_disk check_disk.o utils.o popen.o -L/usr/local/src/nagios-plugins-1.4.13/plugins -L/shame/arm_linux/lib ../lib/libnagiosplug.a ../gl/libgnu.a -ldl
check_disk.o: In function `main':
/usr/local/src/nagios-plugins-1.4.13/plugins/check_disk.c:262: undefined reference to `get_fs_usage'
/usr/local/src/nagios-plugins-1.4.13/plugins/check_disk.c:307: undefined reference to `get_fs_usage'
collect2: ld returned 1 exit status
make[2]: *** [check_disk] 错误 1
make[2]: 离开目录“/usr/local/src/nagios-plugins-1.4.13/plugins”
make[1]: *** [all-recursive] 错误 1
make[1]: 离开目录“/usr/local/src/nagios-plugins-1.4.13”
make: *** [all] 错误 2