Forum: Cfengine Help
Subject: compiling cfengine on AIX 6.1
Author: dan5261415
Link to topic: https://cfengine.com/forum/read.php?3,18917,18917#msg-18917

Having trouble compiling cfengine on AIX 6.1, installed required RPMs as well 
as used gnu forms of bison, flex tar and make. It looks like make fails on 
something to do with flex but I can't decipher what. Any help is much 
appreciated.

$ rpm -qa
cdrecord-1.9-7
mkisofs-1.13-4
sudo-1.6.7p5-2
gcc-4.2.0-3
db-3.3.11-4
bash-3.2-1
pcre-3.7-3
make-3.80-1
flex-2.5.4a-6
AIX-rpm-6.1.5.0-7
bison-1.875-3
tar-1.14-2

$ echo $LIBPATH
/usr/linux/lib:/lib:/usr/lib:/usr/local/lib:/opt/freeware/lib

$ echo $PATH
/usr/bin:/usr/sbin:/usr/linux/bin:/sbin:/opt/freeware/bin

DONE: Configuration done. Run make/gmake to build cfengine.

$ gmake
Making all in pub
gmake[1]: Entering directory `/export/home/e00949/src/cfengine-3.1.0b2/pub'
gcc -DHAVE_CONFIG_H -I. -I../src -I/usr/include  -D_THREAD_SAFE   -w 
-D_THREAD_SAFE  -g -O2  -g -Wreturn-type -Wmissing-prototypes -Wuninitialized 
-fPIC -DPIC -D_THREAD_SAFE  -g -O2  -MT getopt.o -MD -MP -MF .deps/getopt.Tpo 
-c -o getopt.o getopt.c
mv -f .deps/getopt.Tpo .deps/getopt.Po
gcc -DHAVE_CONFIG_H -I. -I../src -I/usr/include  -D_THREAD_SAFE   -w 
-D_THREAD_SAFE  -g -O2  -g -Wreturn-type -Wmissing-prototypes -Wuninitialized 
-fPIC -DPIC -D_THREAD_SAFE  -g -O2  -MT getopt1.o -MD -MP -MF .deps/getopt1.Tpo 
-c -o getopt1.o getopt1.c
mv -f .deps/getopt1.Tpo .deps/getopt1.Po
gcc -DHAVE_CONFIG_H -I. -I../src -I/usr/include  -D_THREAD_SAFE   -w 
-D_THREAD_SAFE  -g -O2  -g -Wreturn-type -Wmissing-prototypes -Wuninitialized 
-fPIC -DPIC -D_THREAD_SAFE  -g -O2  -MT full-write.o -MD -MP -MF 
.deps/full-write.Tpo -c -o full-write.o full-write.c
mv -f .deps/full-write.Tpo .deps/full-write.Po
gcc -DHAVE_CONFIG_H -I. -I../src -I/usr/include  -D_THREAD_SAFE   -w 
-D_THREAD_SAFE  -g -O2  -g -Wreturn-type -Wmissing-prototypes -Wuninitialized 
-fPIC -DPIC -D_THREAD_SAFE  -g -O2  -MT regex.o -MD -MP -MF .deps/regex.Tpo -c 
-o regex.o regex.c
mv -f .deps/regex.Tpo .deps/regex.Po
gcc -DHAVE_CONFIG_H -I. -I../src -I/usr/include  -D_THREAD_SAFE   -w 
-D_THREAD_SAFE  -g -O2  -g -Wreturn-type -Wmissing-prototypes -Wuninitialized 
-fPIC -DPIC -D_THREAD_SAFE  -g -O2  -MT getloadavg.o -MD -MP -MF 
.deps/getloadavg.Tpo -c -o getloadavg.o getloadavg.c
mv -f .deps/getloadavg.Tpo .deps/getloadavg.Po
gcc -DHAVE_CONFIG_H -I. -I../src -I/usr/include  -D_THREAD_SAFE   -w 
-D_THREAD_SAFE  -g -O2  -g -Wreturn-type -Wmissing-prototypes -Wuninitialized 
-fPIC -DPIC -D_THREAD_SAFE  -g -O2  -MT snprintf.o -MD -MP -MF 
.deps/snprintf.Tpo -c -o snprintf.o snprintf.c
mv -f .deps/snprintf.Tpo .deps/snprintf.Po
rm -f libcfpub.a
ar cru libcfpub.a getopt.o getopt1.o full-write.o regex.o getloadavg.o 
snprintf.o
ranlib libcfpub.a
gmake[1]: Leaving directory `/export/home/e00949/src/cfengine-3.1.0b2/pub'
Making all in src
gmake[1]: Entering directory `/export/home/e00949/src/cfengine-3.1.0b2/src'
gmake  all-am
gmake[2]: Entering directory `/export/home/e00949/src/cfengine-3.1.0b2/src'
/bin/sh ../ylwrap cf3parse.y y.tab.c cf3parse.c y.tab.h cf3parse.h y.output 
cf3parse.output -- bison -y  -d
got /export/home/e00949/src/cfengine-3\.1\.0b2/src/
conflicts: 4 shift/reduce
gmake[2]: ***  Error 1
gmake[2]: Leaving directory `/export/home/e00949/src/cfengine-3.1.0b2/src'
gmake[1]: ***  Error 2
gmake[1]: Leaving directory `/export/home/e00949/src/cfengine-3.1.0b2/src'
gmake: ***  Error 1

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

Reply via email to