Forum: CFEngine Help
Subject: Re: [ANNOUNCE] CFEngine Community 3.3.0a1 is released
Author: msvob...@linkedin.com
Link to topic: https://cfengine.com/forum/read.php?3,24790,24813#msg-24813

Hit the following build error for Solaris.  I'm getting the same for x86 and 
sparc.

x86:


$ ./configure --prefix=/var/cfengine --with-openssl=/usr/sfw --without-sql 
--with-berkeleydb=/usr/local/BerkeleyDB/4.4 
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for a BSD-compatible install... /usr/local/bin/ginstall -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 whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking whether pthreads work with -pthreads... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_REENTRANT
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for fgrep... /usr/sfw/bin/ggrep -F
checking for ld used by gcc... /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 how to convert i386-pc-solaris2.10 file names to i386-pc-solaris2.10 
format... func_convert_file_noop
checking how to convert i386-pc-solaris2.10 file names to toolchain format... 
func_convert_file_noop
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 dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... 
yes
checking whether -lc should be explicitly linked in... 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... yes
checking whether to build static libraries... no
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
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... /bin/getconf
checking for BerkeleyDB location in /usr/local/BerkeleyDB/4.4... 
/usr/local/BerkeleyDB/4.4
checking for Berkeley DB API... OK
checking for db_create in -ldb... yes
checking for RSA_generate_key in -lcrypto... yes
checking openssl/opensslv.h usability... yes
checking openssl/opensslv.h presence... yes
checking for openssl/opensslv.h... yes
checking for OpenSSL version... OK
checking for pcre_exec in -lpcre... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
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/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... 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 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 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 zone.h usability... yes
checking zone.h presence... yes
checking for zone.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
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... none required
checking for stdbool.h that conforms to C99... no
checking for _Bool... yes
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 special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for off_t... yes
checking for sqrt in -lm... yes
checking for clock_gettime in -lrt... yes
checking whether clock_gettime is declared... yes
checking for clock_gettime... yes
checking whether unsetenv is declared... yes
checking for unsetenv... yes
checking whether strnlen is declared... no
checking for strnlen... no
checking whether strndup is declared... no
checking for strndup... no
checking whether setlinebuf is declared... yes
checking for setlinebuf... yes
checking whether strlcat is declared... yes
checking for strlcat... yes
checking whether strlcpy is declared... yes
checking for strlcpy... yes
checking whether realpath is declared... yes
checking for realpath... yes
checking whether strdup is declared... yes
checking for strdup... yes
checking whether round is declared... yes
checking for round... yes
checking whether nanosleep is declared... yes
checking for nanosleep... yes
checking whether memdup is declared... no
checking for memdup... no
checking for getpwent... yes
checking for setpwent... yes
checking for endpwent... yes
checking for getcwd... yes
checking for getnetgrent... yes
checking for waitpid... yes
checking for seteuid... yes
checking for setegid... yes
checking for setreuid... yes
checking for setregid... yes
checking for uname... yes
checking for gethostname... yes
checking for chflags... no
checking for strstr... yes
checking for strsep... no
checking for putenv... yes
checking for drand48... yes
checking for srand48... yes
checking for getaddrinfo... no
checking for mkfifo... yes
checking for statfs... yes
checking for statvfs... yes
checking for door... no
checking for sysinfo... yes
checking for setsid... yes
checking for strrchr... yes
checking for strerror... yes
checking for sysconf... yes
checking for getzoneid... yes
checking for getzonenamebyid... yes
checking for fpathconf... yes
checking for stdarg.h... yes
checking for varargs.h... yes
checking for vsnprintf... yes
checking whether vsnprintf is C99 compliant... yes
checking for snprintf... yes
checking whether snprintf is C99 compliant... yes
checking for vasprintf... no
checking for stdlib.h... (cached) yes
checking for va_copy... yes
checking for an ANSI C-conforming const... (cached) yes
checking for asprintf... no
checking whether dirfd is declared... no
checking for dirfd... no
checking for dirfd macro... no
checking for jail_get... 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... (cached) no
checking for getaddrinfo in -lsocket... yes
checking for library containing socket... none required
checking for lchown... yes
checking for main in -lpthread... yes
checking for pthread_attr_setstacksize... yes
checking for pthread_sigmask... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for Sockaddr.sa_len... no
checking for either struct rtentry or struct ortentry... rtentry
checking for HP-UX aC... no
checking for GCC specific compile flags... yes
checking for -Wno-pointer-sign... no
checking for hostname... /bin/hostname
checking for Xen cpuid-based HVM detection... yes

Summary of options...
-> PCRE: default path
-> MySQL connector: disabled
-> PostgreSQL connector: disabled
-> DB: Berkeley DB: /usr/local/BerkeleyDB/4.4

configure: creating ./config.status
config.status: creating Makefile
config.status: creating pub/Makefile
config.status: creating src/Makefile
config.status: creating docs/Makefile
config.status: creating examples/Makefile
config.status: creating examples/example_config/Makefile
config.status: creating masterfiles/Makefile
config.status: creating tests/Makefile
config.status: creating tests/acceptance/Makefile
config.status: creating tests/unit/Makefile
config.status: creating tests/load/Makefile
config.status: creating src/conf.h
config.status: src/conf.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
DONE: Configuration done. Run make/gmake to build cfengine.


$ gmake
Making all in pub
  CC     getopt.lo
getopt.c: In function `_getopt_internal':
getopt.c:409: warning: implicit declaration of function `strcmp'
getopt.c:485: warning: implicit declaration of function `strncmp'
getopt.c:487: warning: implicit declaration of function `strlen'
  CC     getopt1.lo
  CC     strnlen.lo
  CC     strndup.lo
strndup.c: In function `strndup':
strndup.c:33: warning: implicit declaration of function `strnlen'
  CC     memdup.lo
In file included from /usr/include/iso/stdlib_iso.h:30,
                 from /usr/include/stdlib.h:18,
                 from memdup.c:30:
/usr/include/sys/feature_tests.h:332:2: #error "Compiler or options invalid for 
pre-UNIX 03 X/Open applications         and pre-2001 POSIX applications"
gmake[1]: ***  Error 1
gmake: ***  Error 1





$ make
Making all in pub
  CC     memdup.lo
In file included from /usr/include/iso/stdlib_iso.h:30,
                 from /usr/include/stdlib.h:18,
                 from memdup.c:30:
/usr/include/sys/feature_tests.h:332:2: #error "Compiler or options invalid for 
pre-UNIX 03 X/Open applications         and pre-2001 POSIX applications"
*** Error code 1
The following command caused the error:
echo "  CC    " memdup.lo;/bin/bash ../libtool --silent --tag=CC    
--mode=compile gcc -DHAVE_CONFIG_H  -I. -I../src    -I/usr/local/include  
-D_REENTRANT -pthreads -g -O2     -I/usr/local/BerkeleyDB/4.4/include 
-I/usr/sfw/include    -std=gnu99 -g -Wall -D_REENTRANT -pthreads -g -O2     
-I/usr/local/BerkeleyDB/4.4/include -I/usr/sfw/include -MT memdup.lo -MD -MP 
-MF .deps/memdup.Tpo -c -o memdup.lo memdup.c
make: Fatal error: Command failed for target `memdup.lo'
Current working directory /export/home/msvoboda/cfengine-3.3.0a1/pub
*** Error code 1
The following command caused the error:
fail= 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 docs examples masterfiles tests '; 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; \
  (CDPATH="${ZSH_VERSION+.}:" && 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'





And on SPARC


$ ./configure --prefix=/var/cfengine --with-openssl=/usr/sfw --without-sql 
--with-berkeleydb=/usr/local/BerkeleyDB/4.4 
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... /usr/local/bin/ginstall -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 whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking whether pthreads work with -pthreads... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_REENTRANT
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for fgrep... /usr/sfw/bin/ggrep -F
checking for ld used by gcc... /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 how to convert sparc-sun-solaris2.10 file names to 
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain format... 
func_convert_file_noop
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 dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... 
yes
checking whether -lc should be explicitly linked in... 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... yes
checking whether to build static libraries... no
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
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... /bin/getconf
checking for BerkeleyDB location in /usr/local/BerkeleyDB/4.4... 
/usr/local/BerkeleyDB/4.4
checking for Berkeley DB API... OK
checking for db_create in -ldb... yes
checking for RSA_generate_key in -lcrypto... yes
checking openssl/opensslv.h usability... yes
checking openssl/opensslv.h presence... yes
checking for openssl/opensslv.h... yes
checking for OpenSSL version... OK
checking for pcre_exec in -lpcre... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
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/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... 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 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 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 zone.h usability... yes
checking zone.h presence... yes
checking for zone.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
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... none required
checking for stdbool.h that conforms to C99... no
checking for _Bool... yes
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 special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for off_t... yes
checking for sqrt in -lm... yes
checking for clock_gettime in -lrt... yes
checking whether clock_gettime is declared... yes
checking for clock_gettime... yes
checking whether unsetenv is declared... yes
checking for unsetenv... yes
checking whether strnlen is declared... no
checking for strnlen... no
checking whether strndup is declared... no
checking for strndup... no
checking whether setlinebuf is declared... yes
checking for setlinebuf... yes
checking whether strlcat is declared... yes
checking for strlcat... yes
checking whether strlcpy is declared... yes
checking for strlcpy... yes
checking whether realpath is declared... yes
checking for realpath... yes
checking whether strdup is declared... yes
checking for strdup... yes
checking whether round is declared... yes
checking for round... yes
checking whether nanosleep is declared... yes
checking for nanosleep... yes
checking whether memdup is declared... no
checking for memdup... no
checking for getpwent... yes
checking for setpwent... yes
checking for endpwent... yes
checking for getcwd... yes
checking for getnetgrent... yes
checking for waitpid... yes
checking for seteuid... yes
checking for setegid... yes
checking for setreuid... yes
checking for setregid... yes
checking for uname... yes
checking for gethostname... yes
checking for chflags... no
checking for strstr... yes
checking for strsep... no
checking for putenv... yes
checking for drand48... yes
checking for srand48... yes
checking for getaddrinfo... no
checking for mkfifo... yes
checking for statfs... yes
checking for statvfs... yes
checking for door... no
checking for sysinfo... yes
checking for setsid... yes
checking for strrchr... yes
checking for strerror... yes
checking for sysconf... yes
checking for getzoneid... yes
checking for getzonenamebyid... yes
checking for fpathconf... yes
checking for stdarg.h... yes
checking for varargs.h... yes
checking for vsnprintf... yes
checking whether vsnprintf is C99 compliant... yes
checking for snprintf... yes
checking whether snprintf is C99 compliant... yes
checking for vasprintf... no
checking for stdlib.h... (cached) yes
checking for va_copy... yes
checking for an ANSI C-conforming const... (cached) yes
checking for asprintf... no
checking whether dirfd is declared... no
checking for dirfd... no
checking for dirfd macro... no
checking for jail_get... 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... (cached) no
checking for getaddrinfo in -lsocket... yes
checking for library containing socket... none required
checking for lchown... yes
checking for main in -lpthread... yes
checking for pthread_attr_setstacksize... yes
checking for pthread_sigmask... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for Sockaddr.sa_len... no
checking for either struct rtentry or struct ortentry... rtentry
checking for HP-UX aC... no
checking for GCC specific compile flags... yes
checking for -Wno-pointer-sign... no
checking for hostname... /bin/hostname
checking for Xen cpuid-based HVM detection... no

Summary of options...
-> PCRE: default path
-> MySQL connector: disabled
-> PostgreSQL connector: disabled
-> DB: Berkeley DB: /usr/local/BerkeleyDB/4.4

configure: creating ./config.status
config.status: creating Makefile
config.status: creating pub/Makefile
config.status: creating src/Makefile
config.status: creating docs/Makefile
config.status: creating examples/Makefile
config.status: creating examples/example_config/Makefile
config.status: creating masterfiles/Makefile
config.status: creating tests/Makefile
config.status: creating tests/acceptance/Makefile
config.status: creating tests/unit/Makefile
config.status: creating tests/load/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.




marmot.corp:msvoboda[6] ~/cfengine-3.3.0a1 $ gmake
Making all in pub
  CC     getopt.lo
getopt.c: In function `_getopt_internal':
getopt.c:409: warning: implicit declaration of function `strcmp'
getopt.c:485: warning: implicit declaration of function `strncmp'
getopt.c:487: warning: implicit declaration of function `strlen'
  CC     getopt1.lo
  CC     strnlen.lo
  CC     strndup.lo
strndup.c: In function `strndup':
strndup.c:33: warning: implicit declaration of function `strnlen'
  CC     memdup.lo
In file included from /usr/include/iso/stdlib_iso.h:30,
                 from /usr/include/stdlib.h:18,
                 from memdup.c:30:
/usr/include/sys/feature_tests.h:332:2: #error "Compiler or options invalid for 
pre-UNIX 03 X/Open applications         and pre-2001 POSIX applications"
gmake[1]: ***  Error 1
gmake: ***  Error 1





marmot.corp:msvoboda[7] ~/cfengine-3.3.0a1 $ make
Making all in pub
  CC     memdup.lo
In file included from /usr/include/iso/stdlib_iso.h:30,
                 from /usr/include/stdlib.h:18,
                 from memdup.c:30:
/usr/include/sys/feature_tests.h:332:2: #error "Compiler or options invalid for 
pre-UNIX 03 X/Open applications         and pre-2001 POSIX applications"
*** Error code 1
The following command caused the error:
echo "  CC    " memdup.lo;/bin/bash ../libtool --silent --tag=CC    
--mode=compile gcc -DHAVE_CONFIG_H  -I. -I../src    -I/usr/local/include  
-D_REENTRANT -pthreads -g -O2     -I/usr/local/BerkeleyDB/4.4/include 
-I/usr/sfw/include    -std=gnu99 -g -Wall -D_REENTRANT -pthreads -g -O2     
-I/usr/local/BerkeleyDB/4.4/include -I/usr/sfw/include -MT memdup.lo -MD -MP 
-MF .deps/memdup.Tpo -c -o memdup.lo memdup.c
make: Fatal error: Command failed for target `memdup.lo'
Current working directory /export/home/msvoboda/cfengine-3.3.0a1/pub
*** Error code 1
The following command caused the error:
fail= 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 docs examples masterfiles tests '; 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; \
  (CDPATH="${ZSH_VERSION+.}:" && 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'



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

Reply via email to