[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: help - cfengine will not make on cygwin
From: |
Hoerauf, Roy |
Subject: |
RE: help - cfengine will not make on cygwin |
Date: |
Tue, 8 Apr 2003 13:22:02 -0400 |
Mark,
Thanks
Still no luck.
Does not like #elsif
-------------
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/BerkeleyDB.4.1/include -I/usr/inclu
de -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -g -O2 -I/usr/lo
cal/BerkeleyDB.4.1/include -c `test -f 'cfexecd.c' || echo './'`cfexecd.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
cfexecd.c: In function `StartServer':
cfexecd.c:313: warning: passing arg 3 of `spawnvp' from incompatible pointer typ
e
cfexecd.c:319:7: warning: extra tokens at end of #else directive
cfexecd.c:335:2: #else after #else
cfexecd.c:306:1: the conditional began here
make[2]: *** [cfexecd.o] Error 1
make[2]: Leaving directory `/src/cfengine-2.0.6b3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/src/cfengine-2.0.6b3/src'
make: *** [all-recursive] Error 1
-------------
or
-------------
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/BerkeleyDB.4.1/include -I/usr/inclu
de -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -g -O2 -I/usr/lo
cal/BerkeleyDB.4.1/include -c `test -f 'cfexecd.c' || echo './'`cfexecd.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
cfexecd.c: In function `StartServer':
cfexecd.c:313: warning: passing arg 3 of `spawnvp' from incompatible pointer typ
e
cfexecd.c:319:7: warning: extra tokens at end of #else directive
cfexecd.c:335:2: #else after #else
cfexecd.c:306:1: the conditional began here
make[2]: *** [cfexecd.o] Error 1
make[2]: Leaving directory `/src/cfengine-2.0.6b3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/src/cfengine-2.0.6b3/src'
make: *** [all-recursive] Error 1
-------------
Roy
-----Original Message-----
From: Mark.Burgess@iu.hio.no [mailto:Mark.Burgess@iu.hio.no]
Sent: Thursday, April 03, 2003 2:55 PM
To: Hoerauf, Roy
Subject: Re: help - cfengine will not make on cygwin
Oops -- ok thanks. You can edit the line to
#elsif
or
#else if
M
On 3 Apr, Hoerauf, Roy wrote:
> Thanks for responding so quickly.
>
> I got cfengine-2.0.6b3. Still fails. Different error message.
>
> --------
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/BerkeleyDB.4.1/include
> -I/usr/inclu
> de -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -g -O2
> -I/usr/lo
> cal/BerkeleyDB.4.1/include -c `test -f 'cfexecd.c' || echo './'`cfexecd.c
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning: as it has already been specified as a non-system directory
> cfexecd.c: In function `StartServer':
> cfexecd.c:313: warning: passing arg 3 of `spawnvp' from incompatible pointer
> typ
> e
> cfexecd.c:319:2: invalid preprocessing directive #elseif
> make[2]: *** [cfexecd.o] Error 1
> make[2]: Leaving directory `/src/cfengine-2.0.6b3/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/src/cfengine-2.0.6b3/src'
> make: *** [all-recursive] Error 1
> --------
>
>
>
> -----Original Message-----
> From: Mark.Burgess@iu.hio.no [mailto:Mark.Burgess@iu.hio.no]
> Sent: Thursday, April 03, 2003 1:46 PM
> To: Hoerauf, Roy
> Cc: help-cfengine@gnu.org
> Subject: Re: help - cfengine will not make on cygwin
>
>
>
> PLease try 2.0.6b3 for patch
>
> M
>
> On 3 Apr, Hoerauf, Roy wrote:
>> I am running the latest version of the cygwin dll. I downloaded
>> cfengine-2.0.5. It configures ok. But when I 'make' it, it always exits
>> with the following:
>>
>> ---------
>> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/BerkeleyDB.4.1/include
>> -I/usr/inclu
>> de -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -g -O2
>> -I/usr/lo
>> cal/BerkeleyDB.4.1/include -c `test -f 'cfenvd.c' || echo './'`cfenvd.c
>> cc1: warning: changing search order for system directory "/usr/include"
>> cc1: warning: as it has already been specified as a non-system directory
>> gcc -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -g -O2
>> -I/usr/loc
>> al/BerkeleyDB.4.1/include -L/usr/local/BerkeleyDB.4.1/lib -L/usr/lib -o
>> cfen
>> vd.exe cfenvd.o globals.o filenames.o nameinfo.o classes.o item.o
>> item-ext.o it
>> em-file.o eval.o wildcard.o df.o read.o granules.o log.o popen.o patches.o
>> locks
>> .o init.o -L../pub -lpub -L/usr/local/BerkeleyDB.4.1/lib -ldb -L/usr/lib
>> -lcrypt
>> o -L../pub -lpub -lpthread -lm
>> cfenvd.o(.text+0x4162): In function `GatherLoadData':
>> /src/cfengine-2.0.5/src/cfenvd.c:1058: undefined reference to `_getloadavg'
>> collect2: ld returned 1 exit status
>> make[2]: *** [cfenvd.exe] Error 1
>> make[2]: Leaving directory `/src/cfengine-2.0.5/src'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/src/cfengine-2.0.5/src'
>> make: *** [all-recursive] Error 1
>> ---------
>>
>> As I am not a programmer, I could really use some help or be pointed in the
>> right direction.
>>
>> Thanks
>>
>>
>> Roy
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
> Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~