[collectd] Standards conformance (was: FreeBSD compile fixes)
Florian Forster
octo at verplant.org
Fri Apr 17 10:52:15 CEST 2009
Hi,
On Thu, Apr 16, 2009 at 10:59:24PM -0400, Doug MacEachern wrote:
> Not sure about #2, other ideas?
I was having problems with that on Solaris, too:
If I compile with `c99' or `-std=c99', the libc doesn't export
`snprintf' and `strerror_r' anymore.
If I set
_POSIX_C_SOURCE=200112L
the libc complains that POSIX 2001 *must* be compiled with c99. Hooray
for standards!
I think I'll add a configure flag for something like a ‘maintainer mode’
or something, which will
- enable all those standard-flags
- add "-g -O0" to the CFLAGS
- maybe change the default prefix to /tmp/collectd
If you or anybody else has any comments on how to handle standards
comformance, I'd love to here 'em :)
Regards,
-octo
--
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090417/0febc21a/attachment.pgp
More information about the collectd
mailing list