[augeas-devel] Augeas on OSX

Rizwan Kassim rizwank at geekymedia.com
Fri May 23 04:25:10 UTC 2008


With regards to the strndup fix, after compile, I still have some errors below.

 gcc -DPACKAGE_NAME=\"augeas\" -DPACKAGE_TARNAME=\"augeas\"
-DPACKAGE_VERSION=\"0.1.1\" "-DPACKAGE_STRING=\"augeas 0.1.1\""
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"augeas\" -DVERSION=\"0.1.1\"
-D_GNU_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DYYTEXT_POINTER=1 -DHAVE_READLINE_READLINE_H=1 -I. -std=gnu99 -Wall
-Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings
-Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls
-Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fasynchronous-unwind-tables -Werror -g -O2 -MT augeas.lo -MD -MP -MF
.deps/augeas.Tpo -c augeas.c  -fno-common -DPIC -o .libs/augeas.o
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 'aug_init':
augeas.c:482: warning: implicit declaration of function 'argz_add_sep'
augeas.c:482: warning: nested extern declaration of 'argz_add_sep'
augeas.c:489: warning: implicit declaration of function 'argz_add'
augeas.c:489: warning: nested extern declaration of 'argz_add'
augeas.c:491: warning: implicit declaration of function 'argz_stringify'
augeas.c:491: warning: nested extern declaration of 'argz_stringify'
augeas.c:509: warning: implicit declaration of function 'argz_create_sep'
augeas.c:509: warning: nested extern declaration of 'argz_create_sep'
make[1]: *** [augeas.lo] Error 1
make: *** [all-recursive] Error 1

With regard to the argz errors, I found some implementations of argz
for machines without gnulib.

newlib has all the code at
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/argz/?cvsroot=src
If these were encased in HAVE_ARGZ_STRINGIFY (etc), would this be okay?

There's also an implementation in ImageMagick's Libltdl, but it's
missing argz_add_sep.
http://trac.imagemagick.org/browser/ImageMagick/trunk/ltdl/argz_.h

How would you prefer that this be approached?

In addition, I'm a bit confused about the struct definition at
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

Is this the correct behavior?

Thanks!
Rizwan




More information about the augeas-devel mailing list