bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cfengine 2.0.5 compiling on HP-UX 11.0 (Fredrik Jagenheim)


From: Garrett, Matt M SITI-ITDIEEE
Subject: Re: cfengine 2.0.5 compiling on HP-UX 11.0 (Fredrik Jagenheim)
Date: Wed, 30 Apr 2003 09:55:48 +0100

Thanks Fredrik 

With 2.0.5 it seems there are two changes to make

As you correctly said add
#include "snprintf.h" to pub/snprintf.c

Also add 
#define HAVE_SNPRINTF 2 to pub/snprintf.h to force it to skip snprintf

Version 2.0.6 just needs to the first change

I don't suppose a Version 2.0.6 Client is compatible with a 2.0.5 Server ?

Matt

Matthew Garrett
Unix System Support
Shell Information Technology International Limited
Loirston House, Wellington Road, Altens, Aberdeen AB12 3BH

Tel: +44 (0)1224 81 8373 Other Tel: Internal 630 8373
Email: address@hidden
Internet: http://www.shell.com


> 
>    1. Re: cfengine 2.0.5 compiling on HP-UX 11.0 (Fredrik Jagenheim)
> 
> 
> ----------------------------------------------------------------------
> 
> > I am trying to install cfengine 2.0.5 on HPUX 11.0
> > Using gcc version 3.2
> > 
> >         gcc -DHAVE_CONFIG_H -I. -I. -I../src 
> -I/usr/local/BerkeleyDB.4.1/include -I/usr/local/ssl/include  
>    -g -O2 -I/usr/local/BerkeleyDB.4.1/include -g -O2 
> -Wreturn-type -Wmissing-prototypes -Wuninitialized -c `test 
> -f 'snprintf.c' || echo './'`snprintf.c
> > snprintf.c:404: error: conflicting types for `snprintf'
> > 
> /usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.00/3.2/include
> /stdio.h:459: error: previous declaration of `snprintf'
> 
> > Any idea's on what the problem might be.
> > 
> 
> Just ran into the same problem myself on cfengine 2.0.6. Seems like a
> vital include file has dropped out from sprintf.
> 
> I just added '#include "snprintf.h"' to 'pub/sprintf.c' and it
> compiled just fine.
> 
> This will include the file ../src/config.h, which will tell the
> sourcefile that we already have a snprintf, thankyouverymuch and
> don't need another. :)
> 
> Hth,
> //F
> 
> -- 
> To segfault is human; to bluescreen moronic. 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Bug-cfengine mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-cfengine
> 
> 
> End of Bug-cfengine Digest, Vol 5, Issue 22
> *******************************************
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]