Hey Roland

Yes, I have built both Tokyocabinet and Cfengine 3.3 on Solaris 10 SPARC and 
x86/64.   You need to use a more recent compiler.  The compiler in 
/usr/sfw/bin/gcc doesn't support the c99 compile environment, so, tokyocabinet 
wont build.  You can build QDBM using the compiler Sun provided, but, it seems 
that Tokyocabinet is the better performing backend database and what gets used 
on the Linux binaries that Cfengine provides.  I'm trying to keep my Cfengine 
install base unified across platforms, so, I'm using Tokyocabinet on Solaris 
instead of QDBM.

Here's my build instructions:

Download GCC here:
http://www.sunfreeware.com/sparc/10/gcc-3.4.6-sol10-sparc-local.gz
Download libiconv here:
http://www.sunfreeware.com/sparc/10/libiconv-1.14-sol10-sparc-local.gz

Install both packages.


I downloaded and used tokyocabinet-1.4.47.

msvoboda[3] ~/tokyocabinet-1.4.47 $ cat build 
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG=/usr/local/bin/pkg-config
export LDFLAGS="-L/usr/sfw/lib/ -R/usr/sfw/lib/"
export CPPFLAGS="-I/usr/sfw/include"
export CC="/usr/local/bin/gcc -m32"
export LD="/usr/ccs/bin/ld -m32"
export MAKE='/usr/sfw/bin/gmake'
./configure --prefix=/var/cfengine --exec-prefix=/var/cfengine
gmake
gmake install

I'm using pcre-8.02

msvoboda[7] ~/pcre-8.02 $ 
./configure --prefix=/var/cfengine
gmake
gmake install


Finally, building Cfengine 3.3.0

msvoboda[502] ~/cfengine-3.3.0 $ 
./configure --prefix=/var/cfengine --with-pcre=/var/cfengine 
--with-tokyocabinet=/var/cfengine --with-openssl=/usr/sfw



This builds all software / libraries under /var/cfengine minus openssl...  You 
could build and install openssl under /var/cfengine as well, I'm just using the 
bits that Sun provided..  Once Cfengine is built, you can remove 99.9% of the 
content under there that pcre / tokyocabinet splatted down that isn't necessary 
once Cfengine has been compiled.  I rolled the following into my Solaris 
package.


msvoboda[508] ~/solaris_packages/LINKcfeng3-3-0/root $ find .
.
./var
./var/cfengine
./var/cfengine/lib
./var/cfengine/lib/libpromises.so.1
./var/cfengine/lib/libpcre.so.0
./var/cfengine/lib/libpromises.so.1.0.0
./var/cfengine/lib/libpcre.so.0.0.1
./var/cfengine/lib/libtokyocabinet.so.9
./var/cfengine/sbin
./var/cfengine/sbin/cf-know
./var/cfengine/sbin/cf-runagent
./var/cfengine/sbin/cf-promises
./var/cfengine/sbin/cf-execd
./var/cfengine/sbin/cf-report
./var/cfengine/sbin/cf-monitord
./var/cfengine/sbin/cf-key
./var/cfengine/sbin/cf-agent
./var/cfengine/sbin/cf-serverd
./usr/sfw
./usr/sfw/lib
./usr/sfw/lib/libcrypto.so.0.9.7
./usr/sfw/lib/libcrypto_extra.so.0.9.7



Hope this helps.

Thanks
Mike


________________________________________
From: help-cfengine-boun...@cfengine.org [help-cfengine-boun...@cfengine.org] 
on behalf of no-re...@cfengine.com [no-re...@cfengine.com]
Sent: Wednesday, May 02, 2012 9:54 PM
To: help-cfengine@cfengine.org
Subject: CFEngine Help: Re: CFEngine Help: Compile problems, 3.3 on Solaris 10

Forum: CFEngine Help
Subject: Re: CFEngine Help: Compile problems, 3.3 on Solaris 10
Author: rsm.gbg
Link to topic: https://cfengine.com/forum/read.php?3,25729,25808#msg-25808

Has anyone managed to compile 3.3 on Solaris 10 Sparc?

1. Compiler and VARS that needs to be set?
2. Package dependencies? like QDBM.
3. Configure line used?
4. make line used? (setting VARS?)

- Roland

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to