Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cfengine 2.0.4 installation problem

0 views
Skip to first unread message

Mark Burgess

unread,
Dec 19, 2002, 8:38:16 AM12/19/02
to ze...@galileo.co.il, help-c...@gnu.org
On 19 Dec, Zeev Fisher wrote:
> Hi,
>
> I'm trying to run the configure script of cfengine 2.0.4 and i get an
> error for openssl :
>
> checking OpenSSL Version... configure: error: This release of cfengine
> requires openssl 0.9.6b or later
>
> I get this although i installed openssl version 0.9.6h :
>
> [65] root@coper100 ==> openssl
> OpenSSL> version
> OpenSSL 0.9.6h 5 Dec 2002
>
> Any idea ?
>
> Thanks a lot in advance.
>
>


I cannot get configure to recognize shared library versions of ssl,
so if you have a package on some kind of linux (you don't give any info
about your system) then that might be the problem. Not sure how to
fix this in autoconf ... does anybody know this? autoconf seems only
to look for libssl.a

M

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.B...@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Zeev Fisher

unread,
Dec 19, 2002, 8:30:46 AM12/19/02
to help-c...@gnu.org
Hi,

I'm trying to run the configure script of cfengine 2.0.4 and i get an
error for openssl :

checking OpenSSL Version... configure: error: This release of cfengine
requires openssl 0.9.6b or later

I get this although i installed openssl version 0.9.6h :

[65] root@coper100 ==> openssl
OpenSSL> version
OpenSSL 0.9.6h 5 Dec 2002

Any idea ?

Thanks a lot in advance.


--
Zeev Fisher - Unix System Administrator
Galileo Technology Ltd - A Marvell Company
Moshav Manof, D.N. Misgav 20184, ISRAEL
Email - ze...@galileo.co.il
Tel - + 972 4 8225046 ext. 2402
Cell - + 972 54 995402
Fax - + 972 4 8326420
WWW Page: http://www.marvell.com

------------------------------------------------------------------------
This message may contain confidential, proprietary or legally privileged
information. The information is intended only for the use of the individual
or entity named above. If the reader of this message is not the
intended recipient, you are hereby notified that any dissemination, distribution
or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify us
immediately by telephone, or by e-mail and delete the message from your
computer.


Thomas Glanzmann

unread,
Dec 19, 2002, 8:45:03 AM12/19/02
to
In article <mailman.413.104030490...@gnu.org>, Zeev Fisher wrote:
> Hi,
>
> I'm trying to run the configure script of cfengine 2.0.4 and i get an
> error for openssl :
>
> checking OpenSSL Version... configure: error: This release of cfengine
> requires openssl 0.9.6b or later
>
> I get this although i installed openssl version 0.9.6h :
>
> [65] root@coper100 ==> openssl
> OpenSSL> version
> OpenSSL 0.9.6h 5 Dec 2002
>
> Any idea ?
>
> Thanks a lot in advance.

#!/bin/bash
export BUILDDIR=/tmp/sithglan-cfengine
export CFENGINEVERSION='2.0.5pre'
export BERKLEYDBVERSION='4.0.14'
export OPENSSLVERSION='0.9.6g'
export SOURCEPATH='/src/cipsec/cfengine/source'
export PATH="/opt/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/tmp/sithglan-cfengine/openssl-${OPENSSLVERSION}/apps"

rm -rf ${BUILDDIR}
mkdir -p ${BUILDDIR}
cd ${BUILDDIR}

gzcat ${SOURCEPATH}/cfengine-${CFENGINEVERSION}.tar.gz | tar xf -
gzcat ${SOURCEPATH}/db-${BERKLEYDBVERSION}.tar.gz | tar xf -
gzcat ${SOURCEPATH}/openssl-${OPENSSLVERSION}.tar.gz | tar xf -

cd ${BUILDDIR}/openssl-${OPENSSLVERSION}
./Configure solaris-sparcv8-cc
make
ln -s . lib

cd ${BUILDDIR}/db-${BERKLEYDBVERSION}/dist
./configure
make
cd ..
rm -rf include
ln -s dist include
ln -s dist/.libs lib
cd dist/.libs
ln -s libdb-4.0.a libdb.a

cd ${BUILDDIR}/cfengine-${CFENGINEVERSION}
./configure --prefix=/var/cfengine --with-berkeleydb=${BUILDDIR}/db-${BERKLEYDBVERSION} --with-openssl=${BUILDDIR}/openssl-${OPENSSLVERSION} --bindir=/var/cfengine/bin --sbindir=/var/cfengine/bin
make
/local/gnu-utils-1.0/gbin/make DESTDIR=${BUILDDIR}/cfengine install-exec-recursive

cd ${BUILDDIR}/cfengine/var/cfengine/bin
tar cf - cfexecd cfenvgraph cfenvd cfkey cfrun cfservd cfagent | gzip -c > /src/cipsec/cfengine/sithglan/cfengine-${CFENGINEVERSION}-sos5.tgz
cd /tmp
rm -rf ${BUILDDIR}

echo 'I am done!'

--
Rathsbergerstrasse 28 D-91054 Erlangen / Burgberg +49 (0) 9131 - 614720

Wheeler, John

unread,
Dec 19, 2002, 10:46:54 AM12/19/02
to Zeev Fisher, help-c...@gnu.org

Not sure if you are on solaris, I have the same problem. Turns out /usr/ucblib is needed.
Fixed with
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/ucblib
Could also use crle.

wheeler

> -----Original Message-----
> From: Zeev Fisher [mailto:ze...@galileo.co.il]
> Sent: Thursday, December 19, 2002 7:31 AM
> To: help-c...@gnu.org
> Subject: cfengine 2.0.4 installation problem
>
>
> Hi,
>
> I'm trying to run the configure script of cfengine 2.0.4 and i get an
> error for openssl :
>
> checking OpenSSL Version... configure: error: This release of
> cfengine
> requires openssl 0.9.6b or later
>
> I get this although i installed openssl version 0.9.6h :
>
> [65] root@coper100 ==> openssl
> OpenSSL> version
> OpenSSL 0.9.6h  5 Dec 2002
>
> Any idea ?
>
> Thanks a lot in advance.
>
>

> --
> Zeev Fisher - Unix System Administrator
> Galileo Technology Ltd - A Marvell Company
> Moshav Manof, D.N. Misgav 20184, ISRAEL
> Email    -  ze...@galileo.co.il
> Tel      -  + 972 4 8225046 ext. 2402
> Cell     -  + 972 54 995402
> Fax      -  + 972 4 8326420
> WWW Page:     http://www.marvell.com
>
> --------------------------------------------------------------
> ----------
> This message may contain confidential, proprietary or legally
> privileged information. The information is intended only for
> the use of the individual or entity named above. If the
> reader of this message is not the intended recipient, you are
> hereby notified that any dissemination, distribution or
> copying of this communication is strictly prohibited. If you
> have received this communication in error, please notify us
> immediately by telephone, or by e-mail and delete the message
> from your computer.
>
>
>
>

> _______________________________________________
> Help-cfengine mailing list
> Help-c...@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-> cfengine
>

Zeev Fisher

unread,
Dec 19, 2002, 11:30:27 AM12/19/02
to Wheeler, John, help-c...@gnu.org
It didn't help.

Thanks.

Thomas Glanzmann

unread,
Dec 19, 2002, 12:12:04 PM12/19/02
to help-c...@gnu.org
> I tried on Solaris with openssl that i compiled myself.

> 1) Is it possible to compile openssl not to use shared libraries ?
> 2) Can you tell me maybe how to tell the configure script manually that
> openssl is ok and continue ?

Look carefully at the provided script.

Get sure that you have installed SUNWspro, and a version of gnumake

Get the sources for berkeleydb, openssl and cfengine.

After the following steps you habe a dynamically linked version of cfengine with
a static openssl and berkleydb version in it. Last time I tried to compile the
whole thing under solaris it crashed.

If you need a binary for Solaris 9, Solaris 8 or a further assistance just drop
me an eMail.

Greetings,
Thomas

#!/bin/bash
export BUILDDIR=/tmp/sithglan-cfengine
export CFENGINEVERSION='2.0.5pre'
export BERKLEYDBVERSION='4.0.14'
export OPENSSLVERSION='0.9.6g'
export SOURCEPATH='/src/cipsec/cfengine/source'

export PATH="/opt/SUNWspro/bin:/usr/ccs/bin:/usr/bin:${BUILDIR}/openssl-${OPENSSLVERSION}/apps"

rm -rf ${BUILDDIR}
mkdir -p ${BUILDDIR}
cd ${BUILDDIR}

gzcat ${SOURCEPATH}/cfengine-${CFENGINEVERSION}.tar.gz | tar xf -
gzcat ${SOURCEPATH}/db-${BERKLEYDBVERSION}.tar.gz | tar xf -
gzcat ${SOURCEPATH}/openssl-${OPENSSLVERSION}.tar.gz | tar xf -

cd ${BUILDDIR}/openssl-${OPENSSLVERSION}
./Configure solaris-sparcv8-cc
make
ln -s . lib

cd ${BUILDDIR}/db-${BERKLEYDBVERSION}/dist
./configure
make
cd ..
rm -rf include
ln -s dist include
ln -s dist/.libs lib
cd dist/.libs
ln -s libdb-4.0.a libdb.a

cd ${BUILDDIR}/cfengine-${CFENGINEVERSION}
./configure --prefix=/var/cfengine --with-berkeleydb=${BUILDDIR}/db-${BERKLEYDBVERSION} --with-openssl=${BUILDDIR}/openssl-${OPENSSLVERSION} --bindir=/var/cfengine/bin --sbindir=/var/cfengine/bin
make

make DESTDIR=${BUILDDIR}/cfengine install-exec-recursive

cd ${BUILDDIR}/cfengine/var/cfengine/bin
tar cf - cfexecd cfenvgraph cfenvd cfkey cfrun cfservd cfagent | gzip -c > /src/cipsec/cfengine/sithglan/cfengine-${CFENGINEVERSION}-sos5.tgz
cd /tmp
rm -rf ${BUILDDIR}

echo 'I am done!'

--
Thomas Glanzmann ++49 (0) 9131 85-27574 Department of Computer Science III
Martensstrasse 3 D-91058 Erlangen Germany University of Erlangen-Nuremberg
http://www3.informatik.uni-erlangen.de/Research/UMLinux/


Thomas Glanzmann

unread,
Dec 19, 2002, 1:16:01 PM12/19/02
to
In article <mailman.431.104031842...@gnu.org>, Thomas Glanzmann wrote:
>> I tried on Solaris with openssl that i compiled myself.
>
>> 1) Is it possible to compile openssl not to use shared libraries ?
>> 2) Can you tell me maybe how to tell the configure script manually that
>> openssl is ok and continue ?
>
> a static openssl and berkleydb version in it. Last time I tried to compile the
> whole thing under solaris it crashed.
tried to link the whole thing __statically__. The version I provided works
fine.

Nate Campi

unread,
Dec 19, 2002, 1:18:36 PM12/19/02
to help-c...@gnu.org
On Thu, Dec 19, 2002 at 06:12:04PM +0100, Thomas Glanzmann wrote:
> > I tried on Solaris with openssl that i compiled myself.
>
> > 1) Is it possible to compile openssl not to use shared libraries ?
> > 2) Can you tell me maybe how to tell the configure script manually that
> > openssl is ok and continue ?
>
> Look carefully at the provided script.
>
> Get sure that you have installed SUNWspro, and a version of gnumake
>
> Get the sources for berkeleydb, openssl and cfengine.
>
> After the following steps you habe a dynamically linked version of cfengine with
> a static openssl and berkleydb version in it. Last time I tried to compile the
> whole thing under solaris it crashed.
>
> If you need a binary for Solaris 9, Solaris 8 or a further assistance just drop
> me an eMail.

I'm happy to offer a sun package for cfengine 2.0.4, I've switched to
pushing out the binaries directly with 2.0.5pre2 so I don't have
packages pre-built for it.

http://www.campin.net/cfengine/WRDcfeng-2.0.4-sparc.pkg

...and for binaries for solaris/sparc 2.0.5pre2:

http://www.campin.net/cfengine/2.0.5pre2/

They rely on packages (that I install from sunfreeware.com)
BerkeleyDB.3.3 and Openssl 0.9.6(g) installed in /usr/local.

# ldd /usr/local/sbin/cfagent
libdb-3.3.so => /usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so
libcrypto.so.0.9.6 => /usr/local/ssl/lib/libcrypto.so.0.9.6
libpthread.so.1 => /usr/lib/libpthread.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libm.so.1 => /usr/lib/libm.so.1
libelf.so.1 => /usr/lib/libelf.so.1
libsec.so.1 => /usr/lib/libsec.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libthread.so.1 => /usr/lib/libthread.so.1
/usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1

These won't be up forever get them while you can. Using "gnutopkg" you
can easily build your own solaris packages with absolutely no knowledge
of how it works, assuming the source for the software uses
autoconf/automake and defines a DESTDIR variable in the Makefile (I had
to add it for cfengine):

http://bolthole.com/solaris/#packaging
http://bolthole.com/solaris/gnutopkg

--
Nate Campi http://www.campin.net

"When angry, count four; when very angry, swear." - Pudd'nhead Wilson's
Calendar(1894) - Samuel Clemens

0 new messages