help-cfengine
[Top][All Lists]
Advanced

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

Re: error compiling cfengine 2.1.4 -- error: conflicting types


From: Donald Wolfe
Subject: Re: error compiling cfengine 2.1.4 -- error: conflicting types
Date: Tue, 13 Apr 2004 07:45:04 -0700 (PDT)

Sorry about leaving out the details...

The system is Solaris 8, installed out of the box with
the entire distribution plus OEM support.  It has
BerkeleyDB.4.2, openssl-0.9.7d, autoconf, automake,
binutils, bison, flex, gcc, ghostview, m4, make,
ncurses, perl , tar, tetex, OpenSSH, and texinfo
installed in /usr/local.  I get the error when I set
CFLAGS=-static, which seems odd since I think the
error is coming from the preprocess step.  My end goal
is to be able to easily install cfengine on all our
systems locally, and independently, but some of our
systems do not have all the prerequisites installed.

Thanks,

Don

--- Mark Burgess <Mark.Burgess@iu.hio.no> wrote:
> 
> Perhaps try
> 
> make distclean
> configure
> make
> 
> else some kind of OS info would be useful.
> 
> M
> 
> > 
> > I am trying to compile, and install cfengine 2.1.4
> and
> > am getting an error while running make.  I am
> running
> > configure, and make as follows:
> > 
> > CFLAGS=-static; export CFLAGS
> > make distclean
> > ./configure \
> >         --prefix=/build/usr/local \
> >        
> --with-berkeleydb=/usr/local/BerkeleyDB.4.2 \
> >         --with-openssl=/usr/local/ssl
> > make
> > 
> > 
> > I am getting the following error indicating
> > conflicting declarations in the src/prototypes
> file,
> > and the /usr/include/netdb.h file.
> > 
> > What is the proper way to resolve this issue?
> > 
> > The error:
> > 
> > ...
> > In file included from ../src/cf.defs.h:1944,
> >                  from full-write.c:23:
> > ../src/prototypes.h:798: error: conflicting types
> for
> > `setnetgrent'
> > /usr/include/netdb.h:283: error: previous
> declaration
> > of `setnetgrent'
> > ../src/prototypes.h:800: error: conflicting types
> for
> > `endnetgrent'
> > /usr/include/netdb.h:284: error: previous
> declaration
> > of `endnetgrent'
> > make[1]: *** [full-write.o] Error 1
> > make[1]: Leaving directory
> >
> `/export/Infrastructure/CFEngine/cfengine-2.1.4/pub'
> > make: *** [all-recursive] Error 1
> > ...
> > 
> > 
> > Thanks!
> > 
> > Don
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - File online by April 15th
> > http://taxes.yahoo.com/filing.html
> > 
> > 
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@gnu.org
> > http://mail.gnu.org/mailman/listinfo/help-cfengine
> > 
> 
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272            Email: 
> Mark.Burgess@iu.hio.no
> Fax : +47 22453205            WWW  : 
> http://www.iu.hio.no/~mark
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 


        
                
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/




reply via email to

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