[ nagiosplug-Bugs-3569288 ] check_disk does not compile on uclibc (OpenWrt)
SourceForge.net <[email protected]>
| Newsgroups | gmane.network.nagios.plugins.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3569288, was opened at 2012-09-18 23:36 Message generated for change (Tracker Item Submitted) made by krumboeck You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3569288&group_id=29880 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Compilation Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Bernd Krumböck (krumboeck) Assigned to: Nobody/Anonymous (nobody) Summary: check_disk does not compile on uclibc (OpenWrt) Initial Comment: When you try to compile nagios-plugins for OpenWrt you get following linker error: libtool: link: mips-openwrt-linux-uclibc-gcc -DNP_VERSION=\"1.4.16\" -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -o check_disk check_disk.o utils.o popen.o -L/home/bek/develop/openwrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -L/home/bek/develop/openwrt/backfire/staging_dir/target-mips_r2_uClibc-0.9.30.1/lib -L/home/bek/develop/openwrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib -L/home/bek/develop/openwrt/backfire/build_dir/target-mips_r2_uClibc-0.9.30.1/nagios-plugins-1.4.16/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl check_disk.o: In function `get_stats': check_disk.c:(.text+0x57c): undefined reference to `get_fs_usage' check_disk.o: In function `main': check_disk.c:(.text+0x1c84): undefined reference to `get_fs_usage' collect2: ld returned 1 exit status I don't know how uclibc implements statvfs, so my patch could have a side effect (described in fsusage.m4). regards, Bernd ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3569288&group_id=29880 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________________ Nagios Plugin Development Mailing List [email protected] Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null