Forum: CFEngine Help
Subject: Re: CFEngine Help: Re: libtokyocabinet.so.9 error on AIX 5.2
Author: raymondcox
Link to topic: https://cfengine.com/forum/read.php?3,25650,25835#msg-25835

I finally got CFEngine to compile on AIX 5.3 and 6.1 The trick is to add a few 
additional flags to the LDFLAGS variable:

export LDFLAGS="-lc -lcrypt -ltli -lz -lbz2 -lrt -lpthread -lm -L/usr/local/lib 
-L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib 
-Wl,-bmaxdata:0x80000000"

The following values are what did it: -lc -lcrypt -ltli -lz -lbz2 -lrt 
-lpthread -lm. The -lcrypt is required to get tokyocabinet to compile cleanly, 
and the rest are to satisfy the undefined symbols error messages from CFEngine.

I did run into one last problem while running configure:

Got a whole bunch of messages like this:


configure: creating ./config.status
./config.status: line 709: print: command not found
./config.status: line 709: print: command not found
./config.status: line 709: print: command not found


Turns out bash does not support print -r, I tried changing line 571 of 
config.status from :

ECHO='print -r --'


To:


 ECHO='printf'


And that resolved the majority of the print errors I was getting, but not all. 
I decided to go back to ksh, and that did the trick.

Now on to testing and packaging, I am really looking forward to using the new 
templating.

 but first many cold beers!

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

Reply via email to