Fwd: [help-cfengine] Issues in compiling cfengine-community 3.8.2 on Solaris 10 Sparc

13 views
Skip to first unread message

Soumyadip Das Mahapatra

unread,
Apr 28, 2016, 12:37:13 PM4/28/16
to dev-cf...@googlegroups.com
Hi guys,

I am building cfe community 3.8.2 on a Solaris 10 Sparc box. I have downloaded the tarball from https://cfengine-package-repos.s3.amazonaws.com/tarballs/cfengine-3.8.2.tar.gz. I have successfully built openssl(v1.0.2g http://openssl.org/source/openssl-1.0.2g.tar.gz), pcre(v8.38 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz) , lmdb(v0.9.18 https://github.com/kacf/lmdb/tree/cfengine_LMDB_0.9.18) and installed in /var/cfengine.

However when I try to build cfe, I get the below error while building cf-agent (LD_LIBRARY_PATH issue? Seems like OpenSSL libs are not getting linked) :

  CCLD   libcf-agent.la
  CCLD   cf-agent
Undefined                       first referenced
 symbol                             in file
EVP_PKEY_cmp                        /export/home/smahapat/3.8.2/cfengine-3.8.2/libpromises/.libs/libpromises.so
__builtin_isnan                     /export/home/smahapat/3.8.2/cfengine-3.8.2/libpromises/.libs/libpromises.so
__builtin_isfinite                  /export/home/smahapat/3.8.2/cfengine-3.8.2/libpromises/.libs/libpromises.so
ld: fatal: Symbol referencing errors. No output written to .libs/cf-agent
collect2: ld returned 1 exit status
gmake[2]: *** [cf-agent] Error 1
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2

Configure options:

./configure --prefix=/var/cfengine --with-openssl=/var/cfengine --with-lmdb=/var/cfengine --with-pcre=/var/cfengine

Environment:

LC_MONETARY=en_US.ISO8859-1
SHELL=/bin/bash
TERM=vt220
LC_NUMERIC=en_US.ISO8859-1
OLDPWD=/export/home/blahblah/3.8.2
USER=root
SUDO_USER=blahblah
SUDO_UID=14847
SSH_AUTH_SOCK=/tmp/ssh-QyB22994/agent.22994
USERNAME=root
LD_LIBRARY_PATH=/var/cfengine/lib:/usr/local/lib
PATH=/usr/bin:/usr/sbin:/bin:/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin
MAIL=/var/mail//blahblah
LC_MESSAGES=C
LC_COLLATE=en_US.ISO8859-1
PWD=/export/home/blahblah/3.8.2/cfengine-3.8.2
TZ=US/Pacific
PS1=\[\e[1;31m\]myhost\[\e[0m\]:\[\e[1;35m\]blahblah\[\e[0m\]\[\e[0;35m\][\!]\[\e[0m\] \[\e[1;31m\]\w\[\e[0m\] $
SHLVL=1
SUDO_COMMAND=/bin/bash
HOME=/export/home/blahblah
LOGNAME=root
LC_CTYPE=en_US.ISO8859-1
SUDO_GID=14847
LC_TIME=en_US.ISO8859-1
_=/bin/env

GCC and LD:

$ which gcc
/usr/local/bin/gcc
$ which ld
/usr/ccs/bin/ld
$ gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6

Hoping someone could help me.

Thanks,
Soumyadip



Dimitrios Apostolou

unread,
Apr 29, 2016, 3:29:06 AM4/29/16
to Soumyadip Das Mahapatra, dev-cfengine
What are the contents of /var/cfengine/lib ?

Soumyadip Das Mahapatra

unread,
Apr 29, 2016, 1:26:24 PM4/29/16
to Dimitrios Apostolou, dev-cfengine
Never mind, it was due to openssl lib. I had to rebuild that properly.
Reply all
Reply to author
Forward
0 new messages