Forum: Cfengine Help
Subject: HP-UX 11.31 PA-RISC - openssl libraries not linking?
Author: bbomgardner
Link to topic: https://cfengine.com/forum/read.php?3,18011,18011#msg-18011

Does anyone have instructions on how they successfully compiled cfengine 
(3.0.5p1) on HP-UX 11.31 PA-RISC?

If I try to compile statically ( --enable-static --disable-shared 
LDFLAGS='--static' ) everything works but cf-key dies trying to setup keys:

uxtst01:/var/cfengine/bin # ./cf-key -d3
Agent2Type(keygenerator)
NewClass(any)
NewClass(community_edition)
NewClass(debug_mode)
Cfengine - autonomous configuration engine - commence self-diagnostic prelude
Unappending Cfengine - autonomous configuration engine - commence 
self-diagnostic prelude
------------------------------------------------------------------------
Unappending 
------------------------------------------------------------------------
Work directory is /var/cfengine
Unappending Work directory is /var/cfengine
Directory for /var/cfengine/inputs/update.conf exists. Okay
Directory for /var/cfengine/bin/cf-agent -D from_cfexecd exists. Okay
Directory for /var/cfengine/outputs/spooled_reports exists. Okay
Directory for /var/cfengine/lastseen/intermittencies exists. Okay
Directory for /var/cfengine/reports/various exists. Okay
Directory for /var/cfengine/state/cf_procs exists. Okay
CheckWorkingDirectories()
Directory for /var/cfengine/. exists. Okay
Making sure that locks are private...
Unappending Making sure that locks are private...
Directory for /var/cfengine/state/. exists. Okay
Checking integrity of the state database
Unappending Checking integrity of the state database
Checking integrity of the module directory
Unappending Checking integrity of the module directory
Checking integrity of the PKI directory
Unappending Checking integrity of the PKI directory
RandomSeed() work directory is /var/cfengine
Looking for a source of entropy in /var/cfengine/state/cf_observations.db
Unappending Looking for a source of entropy in 
/var/cfengine/state/cf_observations.db
Could not read sufficient randomness from /var/cfengine/state/cf_observations.db
Unappending Could not read sufficient randomness from 
/var/cfengine/state/cf_observations.db
Couldn't find a private key (/var/cfengine/ppkeys/localhost.priv) - use cf-key 
to get one
 !!! System error for fopen: "No such file or directory"
Unappending  !!! System error for fopen: "No such file or directory"
Unappending Couldn't find a private key (/var/cfengine/ppkeys/localhost.priv) - 
use cf-key to get one
Memory fault(coredump)
uxtst01:/var/cfengine/bin # ldd cf-key
        /usr/lib/libdld.2 =>    /usr/lib/libdld.2
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/lib/libdld.2 =>    /usr/lib/libdld.2


If I try to compile without these options I get yelled at about the openssl 
version (tried 0.9.8o and 1.0.0a):

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


I have also attempted installing from the porting centre however I am having 
trouble resolving all of the dependencies.  If someone has insight on this I 
would gladly go down this path instead.

Any help would be appreciated.  (Compiling in HP-UX has never made me jump for 
joy thats for sure...)

Kind regards,

Ben

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

Reply via email to