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


From: Fredrik Jagenheim
Subject: Re: cfengine 2.0.5 compiling on HP-UX 11.0
Date: Tue, 29 Apr 2003 14:14:48 +0200
User-agent: Mutt/1.5.1i

On Fri, Apr 25, 2003 at 12:34:50PM +0100, Garrett, Matt M SITI-ITDIEEE wrote:
> 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. 




reply via email to

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