[augeas-devel] Re: augeas on freebsd
Rizwan Kassim
rizwank at geekymedia.com
Fri May 23 03:08:54 UTC 2008
I experienced this problem on my attempt at an OSX and fixed it, but I
didn't post it because, well, it still doesn't compile ;p
I did
diff -r f6ad39f818de src/fa.h
--- a/src/fa.h Fri May 16 12:14:50 2008 -0700
+++ b/src/fa.h Thu May 22 19:42:27 2008 -0700
@@ -184,6 +184,9 @@
int fa_as_regexp(fa_t fa, char **regexp);
#endif
+#ifndef REG_NOERROR
+#define REG_NOERROR 0
+#endif
/*
Is it better that the defines go in the h or c file?
With regards to other errors, i've made some progress, will attach
patches to the OSX thread.
Rizwan
Message: 2
Date: Thu, 22 May 2008 17:38:06 +0000
From: David Lutterkort <dlutter at redhat.com>
Subject: [augeas-devel] Re: augeas on freebsd
To: ADNET Ghislain <gadnet at aqueos.com>
Cc: augeas-devel at redhat.com
Message-ID: <1211477886.29522.363.camel at localhost.localdomain>
Content-Type: text/plain
On Thu, 2008-05-22 at 14:08 +0200, ADNET Ghislain wrote:
> I epic failed my post to augeas dev list so i make you a copy there.
That is strange, what kind of errors did you get ?
> I tried to install augeas on free bsd but i got:
> 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)
> *** Error code 1
I thought that that was a constant defined by the POSIX regexp
interface, but looking at the manpage, it seems to be a GNU extension.
To get things to build, you can just put this at the top of fa.c
somewhere:
#ifndef REG_NOERROR
#define REG_NOERROR 0
#endif
but I need to start getting more serious about making the code more
portable.
You'll probably get more build failures after this, since I use the GNU
regex interface, not the POSIX one. Ugh.
David
More information about the augeas-devel
mailing list