[Nagiosplug-devel] [ nagiosplug-Bugs-3569288 ] check_disk does not compile on uclibc (OpenWrt)

SourceForge.net noreply at sourceforge.net
Wed Sep 19 08:36:19 CEST 2012


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




More information about the Devel mailing list