On May 2, 2006, at 12:21 AM, Mark Burgess wrote:

Michael Grubb wrote:
I've come across some AIX compile issues with cfengine 2.1.20 on AIX 5.3
1)  PCRE support won't compile complains about RE_INTERVALS:
./configure --prefix=/usr/local/cfengine --with-berkeleydb=/var/ cfengine/lib/db --with-openssl=/var/cfengine/lib/ssl --with-pcre=/ var/ cfengine/lib/pcre --enable-static --disable-shared
I get this when I run make:
Making all in src
        make  all-am
source='cfagent.c' object='cfagent.o' libtool=no DEPDIR=.deps depmode=aix /bin/sh ../depcomp cc -DHAVE_CONFIG_H - I. - I. -I. -I/var/cfengine/lib/db/include -I/var/cfengine/lib/ ssl/ include -D_THREAD_SAFE -I/var/cfengine/lib/pcre/include - w - D_THREAD_SAFE -g -I/var/cfengine/lib/db/include - D_THREAD_SAFE -g -I/var/cfengine/lib/db/include -c cfagent.c "cfagent.c", line 225.1: 1506-045 (S) Undeclared identifier re_syntax_options. "cfagent.c", line 225.22: 1506-045 (S) Undeclared identifier RE_INTERVALS. "cfagent.c", line 225.1: 1506-045 (S) Undeclared identifier re_syntax_options.
make: 1254-004 The error code from the last command is 1.
This is much the same error I get on other platforms (HP-UX 11i v1, Solaris, and I believe Tru64).

This is a problem in the library, not in cfengine I'm afraid.


Am I Doing something wrong? Or is everyone having this issue? I'm not sure where to start troubleshooting this particular problem if it is only me.

2) The IBM version of lex won't work, GNU Flex is required, when the % a and %p options are tweaked in cflex.l to larger values I get a Table size overflow error.

3) GNU Bison will not work, when cfparse.y is processed GNU Bison exits 141 immediately, haven't been able to figure the cause of this one out, as it gives no errors.

Definitely use flex and bison, and compile them yourself. Many distirbuted versions simply are faulty and never maintained. You should have no problems using a current version of these packages which has compiled successfully.

4) The IBM C compiler doesn't like the C++ style comments in the nameinfo.c file, they should be changed to C style comments.

I keep taking them out and they keep creeping back in... sorry!

If anyone has any ideas on #1 and 3, I'd be glad to hear them. I've attached a patch to address #4. Regards,
Michael Grubb, CISSP
--------------------------------------------------------------------- ---
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine


--
Mark Burgess

Professor of Network and System Administration
Oslo University College

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  [EMAIL PROTECTED]
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



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

Reply via email to