Is there a way to compile cfengine with the HP C/C++ compiler?
No errors in the configure but still try to use gcc.

Here is the result with 3.2.4:

$ ./configure
checking build system type... hppa2.0w-hp-hpux11.23
checking host system type... hppa2.0w-hp-hpux11.23
checking target system type... hppa2.0w-hp-hpux11.23
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... no
checking for awk... awk
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... no
checking for cc... cc
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... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... none
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... 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 xlc_r... no
checking for cc_r... no
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 how to print strings... print -r
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1536000
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert hppa2.0w-hp-hpux11.23 file names to 
hppa2.0w-hp-hpux11.23 format... func_convert_file_noop
checking how to convert hppa2.0w-hp-hpux11.23 file names to toolchain format... 
func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... file_magic 
(s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library
checking for dlltool... no
checking how to associate runtime and link libraries... print -r --
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from cc 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... 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... +Z -DPIC
checking if cc PIC flag +Z -DPIC works... yes
checking if cc static flag -Wl,-a -Wl,archive 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/bin/ld) supports shared libraries... 
checking if cc understands -b... yes
yes
checking dynamic linker characteristics... hpux11.23 dld.sl
checking how to hardcode library paths into programs... relink
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... 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 getloadavg... no
checking for pstat_getdynamic... yes
checking for kstat_open in -lkstat... no
checking for elf_begin in -lelf... yes
checking for kvm_open in -lkvm... no
checking for getloadavg in -lutil... no
checking for getloadavg in -lgetloadavg... no
checking for getloadavg... no
checking sys/dg_sys_info.h usability... no
checking sys/dg_sys_info.h presence... no
checking for sys/dg_sys_info.h... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for setlocale... yes
checking inq_stats/cpustats.h usability... no
checking inq_stats/cpustats.h presence... no
checking for inq_stats/cpustats.h... no
checking sys/cpustats.h usability... no
checking sys/cpustats.h presence... no
checking for sys/cpustats.h... no
checking mach/mach.h usability... no
checking mach/mach.h presence... no
checking for mach/mach.h... no
checking nlist.h usability... yes
checking nlist.h presence... yes
checking for nlist.h... yes
checking for struct nlist.n_un.n_name... no
checking whether getloadavg requires setgid... no
checking for getconf... /usr/bin/getconf
./configure[13467]: pg_config: A test command parameter is not valid.
checking for PQconnectdb in -lpq... no
checking libpq-fe.h usability... no
checking libpq-fe.h presence... no
checking for libpq-fe.h... no
./configure[13613]: mysql_config: A test command parameter is not valid.
checking for mysql_real_connect in -lmysqlclient... no
checking mysql.h usability... no
checking mysql.h presence... no
checking for mysql.h... no
checking for BerkeleyDB location in default... /usr/local
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... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
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... yes
checking sys/malloc.h presence... yes
checking for sys/malloc.h... yes
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... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
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... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
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... no
checking zone.h presence... no
checking for zone.h... no
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... yes
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... no
checking for unsetenv... no
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... no
checking for setlinebuf... no
checking whether strlcat is declared... no
checking for strlcat... no
checking whether strlcpy is declared... no
checking for strlcpy... no
checking whether realpath is declared... yes
checking for realpath... yes
checking whether round is declared... yes
checking for round... yes
checking whether strdup is declared... yes
checking for strdup... yes
checking whether nanosleep is declared... yes
checking for nanosleep... yes
checking for getcwd... yes
checking for getnetgrent... yes
checking for waitpid... yes
checking for seteuid... no
checking for setegid... no
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... yes
checking for bcopy... yes
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 snprintf... yes
checking for sysconf... yes
checking for getzoneid... no
checking for getzonenamebyid... no
checking for fpathconf... yes
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... yes
checking for gethostent... yes
checking for getaddrinfo... (cached) 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 struct sockaddr.sa_len... no
checking for either struct rtentry or struct ortentry... rtentry
checking for main in -lPW... yes
checking for 8-bit support in Flex... no 8-bit support
checking for HP-UX aC... yes
checking for GCC specific compile flags... no
checking for hostname... /usr/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: default

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 examples/Makefile
config.status: creating examples/example_config/Makefile
config.status: creating masterfiles/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.

$ make
No suffix list.
Making all in pub
No suffix list.
/bin/sh ./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 examples/Makefile
config.status: creating examples/example_config/Makefile
config.status: creating masterfiles/Makefile
config.status: creating src/conf.h
config.status: src/conf.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
  CC     getopt.lo
cc: error 1412: Unrecognized argument "gcc" to option -A.
cc: error 1412: Unrecognized argument "gcc" to option -A.
cc: warning 422: Unknown option "fPIC" ignored.
cc: error 1412: Unrecognized argument "gcc" to option -A.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Louis Francoeur
Unix administrator/Administrateur Unix
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to