[collectd] 4.2.1 on Solaris 10

Christophe Kalt collectd at klb.taranis.org
Thu Dec 6 14:15:12 CET 2007


Good morning :)

On Dec 06, Florian Forster wrote:
| On Wed, Dec 05, 2007 at 07:36:10PM -0500, Christophe Kalt wrote:
| > Well, now that i think about it a bit more, there's another solution,
| > but not one i find especially appealing either unless you're ready to
| > commit to the effort it'll take. Build a 64 bit binary.
| 
| That might be the difference we're looking for: I always build 64bit
| binaries on Solaris since that Solaris guy told me that anything but
| 64bit is lame on Solaris..

Hah!  i wouldn't agree with that statement, 32 bit is fine for
many things, but who cares :)

|                            Here's how I run ./configure:
| -- 8< --
|  nice ./configure --prefix=/home/octo/tmp --with-rrdtool=/home/octo/usr \
|    --enable-debug CC=cc CXX=CC \
|    CFLAGS="-xarch=v9 -xO5 -D_POSIX_PTHREAD_SEMANTICS" | tee config.out
| -- >8 --
| Important are, of course, only CC, CXX and CFLAGS. `cc' is
| ``cc: Sun C 5.7 2005/01/07'', `CC' is the corresponding C++-compiler and
| only there to make the autotools happy.

You Sun compiler is a bit dated, but not horribly so.  The
-xO5 isn't necessary, what really matters are the other two
flags.  -xarch=v9 is a SPARC only thing, newer compilers use
-m64 instead (which works on either platform).
(See http://dsc.sun.com/sunstudio/documentation/ss12/mr/READMEs/c.html)

I've confirmed it builds cleanly on x64 with Sun Studio 11 &
12.  (Sun Studio 11 gave me problems w/ perl, but that was
probably the Sun built one, probably w/ Sun Studio 12?)
I may try with gcc as well, but i'm not sure i'd trust gcc
for that anyhow.

LFS is therefore irrelevant.
On the downside, getting autoconf to do things right will
probably be a bit tricky.  64 bit flags are compiler
dependant, platform dependant for older Sun compiler versions,
and you need to make sure you aren't running on 32 bit
hardware (which is unlikely to be a real concern on SPARC
though).

A quick look at http://autoconf-archive.cryp.to/ didn't yield
anything of interest, but someone must've done this already.

Cool.



More information about the collectd mailing list