Thanks for your reply.

I finally got it to work not 5 minutes ago.

This is what I had to do:

export PATH=/opt/hp-gcc/bin:/usr/ccs/bin:$PATH
./configure CFLAGS="-U_XOPEN_SOURCE_EXTENDED" --with-berkeleydb=/var/ cfengine/lib/db --with-openssl=/var/cfengine/lib/ssl --enable-static --disable-shared

I had to leave off PCRE because I got this error:
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/var/cfengine/lib/db/ include -I/var/cfengine/lib/ssl/include -D_REENTRANT - U_XOPEN_SOURCE_EXTENDED -I/var/cfengine/lib/pcre/include -g -O2 - Wreturn-type -Wmissing-prototypes -Wuninitialized -D_REENTRANT -g - O2 -I/var/cfengine/lib/db/include -D_REENTRANT - U_XOPEN_SOURCE_EXTENDED -g -O2 -I/var/cfengine/lib/db/include -MT cfagent.o -MD -MP -MF ".deps/cfagent.Tpo" -c -o cfagent.o cfagent.c; \ then mv -f ".deps/cfagent.Tpo" ".deps/cfagent.Po"; else rm - f ".deps/cfagent.Tpo"; exit 1; fi
cfagent.c: In function 'Initialize':
cfagent.c:225: error: 're_syntax_options' undeclared (first use in this function)
cfagent.c:225: error: (Each undeclared identifier is reported only once
cfagent.c:225: error: for each function it appears in.)
cfagent.c:225: error: 'RE_INTERVALS' undeclared (first use in this function)
*** Error exit code 1


On another note, the make install target is broken because make is getting confused by the install.c file. Renaming this file to something else should be considered.

On Apr 27, 2006, at 12:36 PM, PRATYUSH PAUL wrote:

Mike - you have to do this

#GCC=/usr/bin/gcc ./configure ....
#gmake
#gmake install

If this does not work install yacc, bison and flex.

And then try the compile and build

--- Michael Grubb <[EMAIL PROTECTED]> wrote:

I'm having some issues compiling cfengine-2.1.20 on
HP-UX 11.11 on PA-
RISC 1.1
I'm using the HP depot gcc-4.1.0, BerkeleyDB
4.4.20.NC, PCRE 6.3,
Openssl 0.9.8a.
All compiled statically,
Here is the output I'm getting:

$ ./configure LDFLAGS='-lpthread'
--prefix=/usr/local/cfengine --
enable-static --disable-shared
--with-berkeleydb=/var/cfengine/lib/db
--with-openssl=/var/cfengine/lib/ssl
--with-pcre=/var/cfengine/lib/pcre
checking build system type... hppa1.1-hp-hpux11.11
checking host system type... hppa1.1-hp-hpux11.11
checking target system type... hppa1.1-hp-hpux11.11
checking for a BSD-compatible install...
./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
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...
yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none
needed
checking dependency style of gcc... gcc3
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags...
yes
checking for joinable pthread attribute...
PTHREAD_CREATE_JOINABLE
checking if more special flags are required for
pthreads... -D_REENTRANT
checking for cc_r... gcc
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 ANSI C... (cached)
none needed
checking dependency style of gcc... (cached) gcc3
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... yes
checking for bison... no
checking for byacc... no
checking for ranlib... ranlib
checking for a BSD-compatible install...
./install-sh -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -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... no
checking for unistd.h... yes
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 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 latex... false
checking for texi2dvi... false
checking for dvips... false
checking for makeinfo... false
checking for ps2pdf... false
checking for getconf... /usr/bin/getconf
checking for main in -lm... yes
checking for door_create... no
checking for setsockopt... yes
checking for gethostent... yes
checking for getaddrinfo... no
checking for getaddrinfo in -lsocket... no
checking for library containing socket... none
required
checking for BerkeleyDB location in
/var/cfengine/lib/db... /var/
cfengine/lib/db
checking Berkeley DB Version... 4.4.20 OK
checking Berkeley DB API... 4.4.20 OK
checking for db_create in -ldb... yes
checking for OpenSSL location...
/var/cfengine/lib/ssl
checking OpenSSL Version... OK
checking for main in -lcrypto... yes
checking pcre...  = /var/cfengine/lib/pcre
checking for main in -lrx... no
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/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... 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 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... 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 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 mode_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for an ANSI C-conforming const... yes
checking for getcwd... yes
checking for getnetgrent... yes
checking for waitpid... yes
checking for seteuid... no

=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



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

Reply via email to