Hi, Like Nakarin said, you should get PCRE linked in. However, this is probably not what causes the build problem:
>> /bin/bash ../ylwrap cf3parse.y y.tab.c cf3parse.c y.tab.h cf3parse.h y.output cf3parse.output -- yacc -d >> got /export/home/tmarshall/cfengine-3\.0\.3/src/ >> >> conflicts: 4 shift/reduce >> source='cf3parse.c' object='libpromises_la-cf3parse.lo' libtool=yes \ I've seen this too, and I think it's caused by yacc.. A workaround is to unpack src/cf3parse.c and src/cf3parse.h from the tarball (or svn), overwriting any existing. Then perhaps run "touch src/cf3parse.c && touch src/cf3parse.h" to avoid attempts to recompile them. --Eystein On 01/29/2010 07:46 AM, Nakarin Phooripoom wrote: > checking for main in -lpcre... no > <snippet> > checking for pcre.h... no > checking pcre/pcre.h usability... no > checking pcre/pcre.h presence... no > > Maybe you should compile with --with-pcre=/path_to_pcre. BTW; do you have > flex or bison installed? > > Cheers, > --Nakarin > > On Jan 28, 2010, at 9:44 PM, Thomas Marshall wrote: > >> Hello, >> I am having issues getting cfengine 3.0.3 compiled on solaris 10 with sun >> studio. Here are my configure bits: >> ./configure --with-openssl=/usr/local/ssl --with-pcre >> --with-berkeleydb=/usr/local/BerkeleyDB.4.8 >> checking build system type... sparc-sun-solaris2.10 >> checking host system type... sparc-sun-solaris2.10 >> checking target system type... sparc-sun-solaris2.10 >> checking for a BSD-compatible install... ./install-sh -c >> checking whether build environment is sane... yes >> checking for a thread-safe mkdir -p... ./install-sh -c -d >> checking for gawk... no >> checking for mawk... no >> checking for nawk... nawk >> checking whether make sets $(MAKE)... yes >> checking for style of include used by make... GNU >> checking for gcc... no >> checking for cc... cc >> checking for C compiler default output file name... a.out >> checking whether the C compiler works... yes >> checking whether we are cross compiling... no >> checking for suffix of executables... >> checking for suffix of object files... o >> checking whether we are using the GNU C compiler... no >> checking whether cc accepts -g... yes >> checking for cc option to accept ISO C89... none needed >> checking dependency style of cc... none >> checking whether pthreads work with -pthread... no >> checking whether pthreads work with -pthreads... no >> checking for the pthreads library -lpthread... yes >> checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE >> checking if more special flags are required for pthreads... -D_REENTRANT >> checking for cc_r... cc >> checking whether we are using the GNU C compiler... (cached) no >> checking whether cc accepts -g... (cached) yes >> checking for cc option to accept ISO C89... (cached) none needed >> checking dependency style of cc... (cached) none >> checking for flex... no >> checking for lex... lex >> checking lex output file root... lex.yy >> checking lex library... -ll >> checking whether yytext is a pointer... no >> checking for bison... no >> checking for byacc... no >> checking for ranlib... ranlib >> checking for a sed that does not truncate output... /usr/bin/sed >> checking for grep that handles long lines and -e... /usr/xpg4/bin/grep >> checking for egrep... /usr/xpg4/bin/grep -E >> checking for fgrep... /usr/xpg4/bin/grep -F >> checking for non-GNU ld... /usr/ccs/bin/ld >> checking if the linker (/usr/ccs/bin/ld) is GNU ld... no >> checking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin/nm -p >> checking the name lister (/usr/ccs/bin/nm -p) interface... BSD nm >> checking whether ln -s works... yes >> checking the maximum length of command line arguments... 786240 >> checking whether the shell understands some XSI constructs... yes >> checking whether the shell understands "+="... no >> checking for /usr/ccs/bin/ld option to reload object files... -r >> checking for objdump... no >> checking how to recognize dependent libraries... pass_all >> checking for ar... ar >> checking for strip... strip >> checking for ranlib... (cached) ranlib >> checking command to parse /usr/ccs/bin/nm -p output from cc object... ok >> checking how to run the C preprocessor... cc -E >> checking for ANSI C header files... yes >> checking for sys/types.h... yes >> checking for sys/stat.h... yes >> checking for stdlib.h... yes >> checking for string.h... yes >> checking for memory.h... yes >> checking for strings.h... yes >> checking for inttypes.h... yes >> checking for stdint.h... yes >> checking for unistd.h... yes >> checking for dlfcn.h... yes >> checking for objdir... .libs >> checking for cc option to produce PIC... -KPIC -DPIC >> checking if cc PIC flag -KPIC -DPIC works... yes >> checking if cc static flag -Bstatic works... yes >> checking if cc supports -c -o file.o... yes >> checking if cc supports -c -o file.o... (cached) yes >> checking whether the cc linker (/usr/ccs/bin/ld) supports shared >> libraries... yes >> checking dynamic linker characteristics... solaris2.10 ld.so >> checking how to hardcode library paths into programs... immediate >> checking whether stripping libraries is possible... no >> checking if libtool supports shared libraries... yes >> checking whether to build shared libraries... no >> checking whether to build static libraries... yes >> checking for a BSD-compatible install... ./install-sh -c >> checking for getloadavg... yes >> checking for pstat_getdynamic... no >> checking for kstat_open in -lkstat... yes >> checking for getloadavg... yes >> checking whether getloadavg requires setgid... no >> checking for getconf... /usr/bin/getconf >> checking for main in -lm... yes >> checking for ldap_get_values_len in -lldap... yes >> checking for main in -lmysqlclient... no >> checking for main in -lpq... no >> checking mysql/mysql.h usability... no >> checking mysql/mysql.h presence... no >> checking for mysql/mysql.h... no >> checking pgsql/libpq-fe.h usability... no >> checking pgsql/libpq-fe.h presence... no >> checking for pgsql/libpq-fe.h... no >> checking libpq-fe.h usability... no >> checking libpq-fe.h presence... no >> checking for libpq-fe.h... no >> checking for main in -lcfnova... no >> checking for main in -lcfconstellation... no >> checking for main in -lcfgalaxy... no >> checking for door_create... no >> checking for setsockopt... no >> checking for setsockopt in -lsocket... yes >> checking for gethostent... no >> checking for gethostent in -lnsl... yes >> checking for getaddrinfo... yes >> checking for library containing socket... none required >> checking for BerkeleyDB location in /usr/local/BerkeleyDB.4.8... >> /usr/local/BerkeleyDB.4.8 >> checking Berkeley DB API... 4.8.26 OK >> checking for db_create in -ldb... yes >> checking for OpenSSL location... /usr/local/ssl >> checking OpenSSL Version... OK >> checking for main in -lcrypto... yes >> checking pcre... "yes" >> checking for main in -lpcre... no >> checking for main in -lrt... no >> checking pcre.h usability... no >> checking pcre.h presence... no >> checking for pcre.h... no >> checking pcre/pcre.h usability... no >> checking pcre/pcre.h presence... no >> checking for pcre/pcre.h... no >> checking for unistd.h... (cached) yes >> checking for stdlib.h... (cached) yes >> checking sys/loadavg.h usability... yes >> checking sys/loadavg.h presence... yes >> checking for sys/loadavg.h... yes >> checking sys/mount.h usability... yes >> checking sys/mount.h presence... yes >> checking for sys/mount.h... yes >> checking utime.h usability... yes >> checking utime.h presence... yes >> checking for utime.h... yes >> checking time.h usability... yes >> checking time.h presence... yes >> checking for time.h... yes >> checking sys/time.h usability... yes >> checking sys/time.h presence... yes >> checking for sys/time.h... yes >> checking malloc.h usability... yes >> checking malloc.h presence... yes >> checking for malloc.h... yes >> checking sys/malloc.h usability... no >> checking sys/malloc.h presence... no >> checking for sys/malloc.h... no >> checking vfs.h usability... no >> checking vfs.h presence... no >> checking for vfs.h... no >> checking sys/vfs.h usability... yes >> checking sys/vfs.h presence... yes >> checking for sys/vfs.h... yes >> checking sys/sockio.h usability... yes >> checking sys/sockio.h presence... yes >> checking for sys/sockio.h... yes >> checking sys/statvfs.h usability... yes >> checking sys/statvfs.h presence... yes >> checking for sys/statvfs.h... yes >> checking sys/statfs.h usability... yes >> checking sys/statfs.h presence... yes >> checking for sys/statfs.h... yes >> checking sys/param.h usability... yes >> checking sys/param.h presence... yes >> checking for sys/param.h... yes >> checking fcntl.h usability... yes >> checking fcntl.h presence... yes >> checking for fcntl.h... yes >> checking sys/filesys.h usability... no >> checking sys/filesys.h presence... no >> checking for sys/filesys.h... no >> checking dustat.h usability... no >> checking dustat.h presence... no >> checking for dustat.h... no >> checking regex.h usability... yes >> checking regex.h presence... yes >> checking for regex.h... yes >> checking rxposix.h usability... no >> checking rxposix.h presence... no >> checking for rxposix.h... no >> checking sys/systeminfo.h usability... yes >> checking sys/systeminfo.h presence... yes >> checking for sys/systeminfo.h... yes >> checking sys/acl.h usability... yes >> checking sys/acl.h presence... yes >> checking for sys/acl.h... yes >> checking winsock2.h usability... no >> checking winsock2.h presence... no >> checking for winsock2.h... no >> checking for ANSI C header files... (cached) yes >> checking whether time.h and sys/time.h may both be included... yes >> checking for sys/wait.h that is POSIX.1 compatible... yes >> checking for dirent.h that defines DIR... yes >> checking for library containing opendir... no >> checking for main in -lgd... no >> checking gd.h usability... no >> checking gd.h presence... no >> checking for gd.h... no >> checking for mode_t... yes >> checking for size_t... yes >> checking for uid_t in sys/types.h... yes >> checking for pid_t... yes >> checking for clockid_t... yes >> checking for an ANSI C-conforming const... yes >> checking for getcwd... no >> checking for getnetgrent... no >> checking for waitpid... no >> checking for seteuid... no >> checking for setegid... no >> checking for setreuid... no >> checking for setregid... no >> checking for uname... no >> checking for gethostname... no >> checking for realpath... no >> checking for regcomp... no >> checking for chflags... no >> checking for strstr... no >> checking for strsep... no >> checking for putenv... no >> checking for drand48... no >> checking for srand48... no >> checking for getaddrinfo... (cached) yes >> checking for bcopy... no >> checking for mkfifo... no >> checking for statfs... no >> checking for statvfs... no >> checking for door... no >> checking for sysinfo... no >> checking for setsid... no >> checking for strdup... no >> checking for strrchr... no >> checking for strerror... no >> checking for snprintf... no >> checking for sysconf... no >> checking for struct sockaddr.sa_len... no >> checking for either struct rtentry or struct ortentry... rtentry >> checking whether to compile with large file support... yes >> checking for main in -lpthread... no >> checking for lchown... no >> checking for pthread_attr_setstacksize... no >> checking for pthread_create in -lpthread... no >> checking for pthread_sigmask... no >> checking for pthread_create in -lpthread... (cached) no >> checking 8-bit support in Flex... no 8-bit support >> checking Checking for GCC Specific compile flags... no >> checking for hostname... /usr/bin/hostname >> checking Checking for Xen cpuid-based HVM detection... no >> configure: creating ./config.status >> config.status: creating Makefile >> config.status: creating pub/Makefile >> config.status: creating src/Makefile >> config.status: creating src/cf3lex.l >> config.status: creating docs/Makefile >> config.status: creating tests/Makefile >> config.status: creating tests/file_masters/Makefile >> config.status: creating tests/file_operands/Makefile >> config.status: creating tests/units/Makefile >> config.status: creating inputs/Makefile >> config.status: creating src/conf.h >> config.status: executing depfiles commands >> config.status: executing libtool commands >> DONE: Configuration done. Run make/gmake to build cfengine. >> >> Then when I run make, I get the following errors: >> >> -bash-3.00# make >> Making all in pub >> source='getopt.c' object='getopt.o' libtool=no \ >> DEPDIR=.deps depmode=none /bin/bash ../depcomp \ >> cc -DHAVE_CONFIG_H -I. -I../src -I/usr/local/BerkeleyDB.4.8/include >> -I/usr/local/ssl/include -D_REENTRANT -D_REENTRANT -g >> -I/usr/local/BerkeleyDB.4.8/include -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -g -I/usr/local/BerkeleyDB.4.8/include >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c getopt.c >> "getopt.c", line 409: warning: implicit function declaration: strcmp >> "getopt.c", line 485: warning: implicit function declaration: strncmp >> "getopt.c", line 487: warning: implicit function declaration: strlen >> source='getopt1.c' object='getopt1.o' libtool=no \ >> DEPDIR=.deps depmode=none /bin/bash ../depcomp \ >> cc -DHAVE_CONFIG_H -I. -I../src -I/usr/local/BerkeleyDB.4.8/include >> -I/usr/local/ssl/include -D_REENTRANT -D_REENTRANT -g >> -I/usr/local/BerkeleyDB.4.8/include -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -g -I/usr/local/BerkeleyDB.4.8/include >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c getopt1.c >> source='full-write.c' object='full-write.o' libtool=no \ >> DEPDIR=.deps depmode=none /bin/bash ../depcomp \ >> cc -DHAVE_CONFIG_H -I. -I../src -I/usr/local/BerkeleyDB.4.8/include >> -I/usr/local/ssl/include -D_REENTRANT -D_REENTRANT -g >> -I/usr/local/BerkeleyDB.4.8/include -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -g -I/usr/local/BerkeleyDB.4.8/include >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c full-write.c >> source='regex.c' object='regex.o' libtool=no \ >> DEPDIR=.deps depmode=none /bin/bash ../depcomp \ >> cc -DHAVE_CONFIG_H -I. -I../src -I/usr/local/BerkeleyDB.4.8/include >> -I/usr/local/ssl/include -D_REENTRANT -D_REENTRANT -g >> -I/usr/local/BerkeleyDB.4.8/include -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -g -I/usr/local/BerkeleyDB.4.8/include >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c regex.c >> "regex.c", line 33: warning: empty translation unit >> source='getloadavg.c' object='getloadavg.o' libtool=no \ >> DEPDIR=.deps depmode=none /bin/bash ../depcomp \ >> cc -DHAVE_CONFIG_H -I. -I../src -I/usr/local/BerkeleyDB.4.8/include >> -I/usr/local/ssl/include -D_REENTRANT -D_REENTRANT -g >> -I/usr/local/BerkeleyDB.4.8/include -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -g -I/usr/local/BerkeleyDB.4.8/include >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c getloadavg.c >> source='snprintf.c' object='snprintf.o' libtool=no \ >> DEPDIR=.deps depmode=none /bin/bash ../depcomp \ >> cc -DHAVE_CONFIG_H -I. -I../src -I/usr/local/BerkeleyDB.4.8/include >> -I/usr/local/ssl/include -D_REENTRANT -D_REENTRANT -g >> -I/usr/local/BerkeleyDB.4.8/include -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -g -I/usr/local/BerkeleyDB.4.8/include >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c snprintf.c >> rm -f libcfpub.a >> ar cru libcfpub.a getopt.o getopt1.o full-write.o regex.o getloadavg.o >> snprintf.o >> ranlib libcfpub.a >> Making all in src >> make all-am >> /bin/bash ../ylwrap cf3parse.y y.tab.c cf3parse.c y.tab.h cf3parse.h >> y.output cf3parse.output -- yacc -d >> got /export/home/tmarshall/cfengine-3\.0\.3/src/ >> >> conflicts: 4 shift/reduce >> source='cf3parse.c' object='libpromises_la-cf3parse.lo' libtool=yes \ >> DEPDIR=.deps depmode=none /bin/bash ../depcomp \ >> /bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. >> -I/usr/local/BerkeleyDB.4.8/include -I/usr/local/ssl/include -D_REENTRANT >> -D_REENTRANT -g -I/usr/local/BerkeleyDB.4.8/include -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -g -I/usr/local/BerkeleyDB.4.8/include >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o libpromises_la-cf3parse.lo >> `test -f 'cf3parse.c' || echo './'`cf3parse.c >> libtool: compile: cc -DHAVE_CONFIG_H -I. >> -I/usr/local/BerkeleyDB.4.8/include -I/usr/local/ssl/include -D_REENTRANT >> -D_REENTRANT -g -I/usr/local/BerkeleyDB.4.8/include -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -g -I/usr/local/BerkeleyDB.4.8/include >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c cf3parse.c -o >> libpromises_la-cf3parse.o >> "prototypes3.h", line 1067: identifier redeclared: endnetgrent >> current : function(void) returning void >> previous: function(void) returning int : "/usr/include/netdb.h", >> line 338 >> "prototypes3.h", line 1073: identifier redeclared: strstr >> current : function(pointer to char, pointer to char) returning >> pointer to char >> previous: function(pointer to const char, pointer to const char) >> returning pointer to char : "/usr/include/iso/string_iso.h", line 133 >> "prototypes3.h", line 1076: identifier redeclared: strdup >> current : function(pointer to char) returning pointer to char >> previous: function(pointer to const char) returning pointer to char >> : "/usr/include/string.h", line 90 >> "prototypes3.h", line 1079: identifier redeclared: strrchr >> current : function(pointer to char, char) returning pointer to char >> previous: function(pointer to const char, int) returning pointer to >> char : "/usr/include/iso/string_iso.h", line 132 >> cc: acomp failed for cf3parse.c >> *** Error code 1 >> make: Fatal error: Command failed for target `libpromises_la-cf3parse.lo' >> Current working directory /export/home/tmarshall/cfengine-3.0.3/src >> *** Error code 1 >> make: Fatal error: Command failed for target `all' >> Current working directory /export/home/tmarshall/cfengine-3.0.3/src >> *** Error code 1 >> The following command caused the error: >> failcom='exit 1'; \ >> for f in x $MAKEFLAGS; do \ >> case $f in \ >> *=* | --[!k]*);; \ >> *k*) failcom='fail=yes';; \ >> esac; \ >> done; \ >> dot_seen=no; \ >> target=`echo all-recursive | sed s/-recursive//`; \ >> list='pub src tests docs inputs'; for subdir in $list; do \ >> echo "Making $target in $subdir"; \ >> if test "$subdir" = "."; then \ >> dot_seen=yes; \ >> local_target="$target-am"; \ >> else \ >> local_target="$target"; \ >> fi; \ >> (cd $subdir&& make $local_target) \ >> || eval $failcom; \ >> done; \ >> if test "$dot_seen" = "no"; then \ >> make "$target-am" || exit 1; \ >> fi; test -z "$fail" >> make: Fatal error: Command failed for target `all-recursive' >> >> >> >> >> TM >> >> >> >> >> _______________________________________________ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine