[augeas-devel] Augeas on OSX

Rizwan Kassim rizwank at geekymedia.com
Fri May 30 00:51:07 UTC 2008


Make Augeas build on non-Linux Patch 1-7 makes it look like the
open_memstream changes you mentioned to me are no longer needed,
correct?

A fresh OSX checkout has the following issues :

[ rizwank at macbook /tmp/aug/augeas ] $./autogen.sh
+ ./autogen.sh
I am going to run ./configure with --enable-warnings - if you
wish to pass any extra arguments to it, please specify them on
the ./autogen.sh command line.
/usr/bin/glibtoolize: line 229: test: # serial 48 AC_PROG_LIBTOOL:
integer expression expected
/usr/bin/glibtoolize: line 231: test: # serial 48 AC_PROG_LIBTOOL:
integer expression expected
configure.ac:2: installing `./missing'

(seemingly configures fine though.)

make results in
fa.c: In function 'fa_compile':
fa.c:2421: error: 'REG_NOERROR' undeclared (first use in this function)
fa.c:2421: error: (Each undeclared identifier is reported only once
fa.c:2421: error: for each function it appears in.)
fa.c: In function 'parse_simple_exp':
fa.c:2579: error: 'REG_NOERROR' undeclared (first use in this function)
make[1]: *** [fa.lo] Error 1
make: *** [all-recursive] Error 1

With the following patch :
diff -r 01489ef21f1d src/fa.h
--- a/src/fa.h	Thu May 29 10:51:19 2008 -0700
+++ b/src/fa.h	Thu May 29 17:49:10 2008 -0700
@@ -184,6 +184,10 @@
 int fa_as_regexp(fa_t fa, char **regexp);
 #endif

+#ifndef REG_NOERROR
+#define REG_NOERROR 0
+#endif
+

 /*
  * Local variables:

That is resolved.


The remaining issues have to deal with strndup (I submitted a patch to
this, but it's not LGPL. That being said, it's pretty simple stuff,
I'm not really sure how to write it all over again without it looking
similiar to the GPL version.) and with argz funcitons.

cc1: warnings being treated as errors
In file included from augeas.c:27:
syntax.h:169: warning: 'struct re_registers' declared inside parameter list
syntax.h:169: warning: its scope is only this definition or
declaration, which is probably not what you want
augeas.c:30:18: error: argz.h: No such file or directory
augeas.c: In function 'make_path':
augeas.c:166: warning: implicit declaration of function 'strndup'
augeas.c:166: warning: nested extern declaration of 'strndup'
augeas.c:166: warning: assignment makes pointer from integer without a cast
augeas.c:168: warning: assignment makes pointer from integer without a cast
augeas.c: In function 'aug_init':
augeas.c:483: warning: implicit declaration of function 'argz_add_sep'
augeas.c:483: warning: nested extern declaration of 'argz_add_sep'
augeas.c:490: warning: implicit declaration of function 'argz_add'
augeas.c:490: warning: nested extern declaration of 'argz_add'
augeas.c:492: warning: implicit declaration of function 'argz_stringify'
augeas.c:492: warning: nested extern declaration of 'argz_stringify'
augeas.c:510: warning: implicit declaration of function 'argz_create_sep'
augeas.c:510: warning: nested extern declaration of 'argz_create_sep'
make[1]: *** [augeas.lo] Error 1
make: *** [all-recursive] Error 1

Cheers,
rk




More information about the augeas-devel mailing list