[collectd] [PATCH] Disable LFS flags to avoid 32-bit solaris sys/swap.h error
Doug MacEachern
Doug.MacEachern at hyperic.com
Sat May 23 00:21:14 CEST 2009
I found an older thread on this subject, so as you may recall solaris'
sys/swap.h has:
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
#error "Cannot use swapctl in the large files compilation environment"
#endif
I don't see any function calls in swap.c that would require LFS, so this
workaround just disables the flags.
t2000:~/collectd% ./src/collectd -C ~/test/test.conf -T
PUTVAL t2000/swap/swap-used interval=10 1243030706:5711740928.000000
PUTVAL t2000/swap/swap-free interval=10 1243030706:928456704.000000
PUTVAL t2000/swap/swap-reserved interval=10 1243030706:740540416.000000
[2009-05-22 15:18:26] Exiting normally.
t2000:~/collectd% /usr/sbin/swap -s
total: 5577480k bytes allocated + 723296k reserved = 6300776k used,
906984k available
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Disable-LFS-flags-to-avoid-32-bit-solaris-sys-swap.h.patch
Type: application/octet-stream
Size: 1278 bytes
Desc: 0001-Disable-LFS-flags-to-avoid-32-bit-solaris-sys-swap.h.patch
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090522/46f3da4d/attachment.obj
More information about the collectd
mailing list