Hmm.... I must be doing something wrong then.  I did ./configure, then make and 
I run into:

redner-dev-03:cfengine-3.0.3 root# make
Making all in pub
gcc -DHAVE_CONFIG_H -I. -I../src -I/usr/include   -g -O2  -g -O2 -Wreturn-type 
-Wmissing-prototypes -Wuninitialized -g -O2  -MT full-write.o -MD -MP -MF 
.deps/full-write.Tpo -c -o full-write.o full-write.c
In file included from ../src/cf.defs.h:280,
                 from full-write.c:29:
../src/../pub/snprintf.h:13: error: expected declaration specifiers or '...' 
before numeric constant



gcc doesn't like this line in pub/snprintf.h:

extern int snprintf(char *, size_t, const char *, /*args*/ ...);



redner-dev-03:cfengine-3.0.3 root# uname -a
Darwin redner-dev-03.apple.com 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 
10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386

redner-dev-03:cfengine-3.0.3 root# sw_vers
ProductName:    Mac OS X
ProductVersion: 10.6.2
BuildVersion:   10C540






Jordan


On Jan 11, 2010, at 1:11 PM, Nakarin Phooripoom wrote:

> Hi Jordan,
> 
> I might say cfengine3 really supports Snow Leopard. I didn't use MacPorts but 
> compiled all dependencies on my own.
> 
> Nakarin-MacBook:cfengine-3.0.3 phnakarin$ sw_vers 
> ProductName:  Mac OS X
> ProductVersion:       10.6.2
> BuildVersion: 10C540
> 
> Nakarin-MacBook:cfengine-3.0.3 phnakarin$ uname -a
> Darwin Nakarin-MacBook.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 
> 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
> 
> Nakarin-MacBook:cfengine-3.0.3 phnakarin$ src/cf-agent -V
> This comprises cf-agent core community version 3.0.3 - (C) Cfengine AS 2008-
> 
> Nakarin-MacBook:cfengine-3.0.3 phnakarin$ otool -L src/cf-agent 
> src/cf-agent:
>       /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
> version 125.0.0)
>       /var/cfengine.lib/lib/libtokyocabinet.9.dylib (compatibility version 
> 9.0.0, current version 9.4.0)
>       /var/cfengine.lib/lib/libpq.5.dylib (compatibility version 5.0.0, 
> current version 5.2.0)
>       /var/cfengine.lib/lib/mysql/libmysqlclient.16.dylib (compatibility 
> version 17.0.0, current version 17.0.0)
>       /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 
> 1.2.3)
>       /var/cfengine.lib/lib/libldap-2.4.2.dylib (compatibility version 7.0.0, 
> current version 7.2.0)
>       /var/cfengine.lib/lib/liblber-2.4.2.dylib (compatibility version 7.0.0, 
> current version 7.2.0)
>       /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current 
> version 38.0.0)
>       /usr/lib/libsasl2.2.dylib (compatibility version 3.0.0, current version 
> 3.15.0)
>       /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos 
> (compatibility version 5.0.0, current version 5.0.0)
>       /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current 
> version 0.9.8)
>       /var/cfengine.lib/lib/libpcreposix.0.dylib (compatibility version 
> 1.0.0, current version 1.0.0)
>       /var/cfengine.lib/lib/libpcre.0.dylib (compatibility version 1.0.0, 
> current version 1.1.0)
>       /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current 
> version 0.9.8)
> 
> Cheers,
> --Nakarin
> 
> On Jan 11, 2010, at 8:47 PM, Mark Burgess wrote:
> 
>> 
>> It works. Check your header files
>> 
>> Jordan Redner wrote:
>>> Let me re-phrase...
>>> 
>>> Is cfengine 3 supported on Snow Leopard?
>>> 
>>> 
>>> Jordan
>>> 
>>> On Jan 8, 2010, at 10:32 AM, Jordan Redner wrote:
>>> 
>>>> Are there any links to build cfengine3 on Snow Leopard?  
>>>> 
>>>> I see that the latest version on MacPorts is 2.2.  I was successful doing 
>>>> so on Leopard but make is giving me:
>>>> 
>>>> Making all in pub
>>>> gcc -DHAVE_CONFIG_H -I. -I../src -I/usr/include   -g -O2  -g -O2 
>>>> -Wreturn-type -Wmissing-prototypes -Wuninitialized -g -O2  -MT 
>>>> full-write.o -MD -MP -MF .deps/full-write.Tpo -c -o full-write.o 
>>>> full-write.c
>>>> In file included from ../src/cf.defs.h:280,
>>>>               from full-write.c:29:
>>>> ../src/../pub/snprintf.h:13: error: expected declaration specifiers or 
>>>> ‘...’ before numeric constant
>>>> ../src/../pub/snprintf.h:13: error: expected declaration specifiers or 
>>>> ‘...’ before ‘__builtin_object_size’
>>>> ../src/../pub/snprintf.h:13: warning: conflicting types for built-in 
>>>> function ‘__builtin___snprintf_chk’
>>>> ../src/../pub/snprintf.h:14: error: expected declaration specifiers or 
>>>> ‘...’ before numeric constant
>>>> ../src/../pub/snprintf.h:14: error: expected declaration specifiers or 
>>>> ‘...’ before ‘__builtin_object_size’
>>>> ../src/../pub/snprintf.h:14: warning: conflicting types for built-in 
>>>> function ‘__builtin___vsnprintf_chk’
>>>> make[1]: *** [full-write.o] Error 1
>>>> make: *** [all-recursive] Error 1
>>>> 
>>>> 
>>>> any pointers would be helpful.
>>>> 
>>>> 
>>>> thanks,
>>>> 
>>>> 
>>>> Jordan
>>>> 
>>>> _______________________________________________
>>>> Help-cfengine mailing list
>>>> Help-cfengine@cfengine.org
>>>> https://cfengine.org/mailman/listinfo/help-cfengine
>>> 
>>> _______________________________________________
>>> Help-cfengine mailing list
>>> Help-cfengine@cfengine.org
>>> https://cfengine.org/mailman/listinfo/help-cfengine
>> 
>> -- 
>> Mark Burgess
>> 
>> -------------------------------------------------
>> Professor of Network and System Administration
>> Oslo University College, Norway
>> 
>> Personal Web: http://www.iu.hio.no/~mark
>> Office Telf : +47 22453272
>> -------------------------------------------------
>> _______________________________________________
>> Help-cfengine mailing list
>> Help-cfengine@cfengine.org
>> https://cfengine.org/mailman/listinfo/help-cfengine
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

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

Reply via email to