[collectd] 4.2.x on Solaris 10

Christophe Kalt collectd at klb.taranis.org
Mon Jan 28 18:00:08 CET 2008


Trying to finish my collectd upgrade that i started over a
month ago, and i found that what we agreed on for the FAQ is
not quite enough.

You want   : CFLAGS="-m64 -mt -D_POSIX_PTHREAD_SEMANTICS"
rather than: CFLAGS="-m64 -D_POSIX_PTHREAD_SEMANTICS"

or, if using GCC, CFLAGS="-m64 -pthreads -D_POSIX_PTHREAD_SEMANTICS"

without the extra flag, you don't have a thread-safe errno
(probably among other things).

i think you get all this for free if you use
http://autoconf-archive.cryp.to/acx_pthread.html, but i'm not
sure whether that'll work with the older autoconf.

Cheers.



More information about the collectd mailing list