On 03/03/2011 17:04, Matthew Booth wrote:
Fix no. 1:
There is no getopt_long in AIX's libc and including getopt.h causes
compilation to fail.
I fixed this by downloading a copies of getopt_long.c and getopt_long.h
with google, and including them instead.
I had to slightly tweak getopt_long.h to get rid of the dependency on
gettext - I've included the full sources for getopt_long.c/h as
attachments (which hopefully work on this mailing list)
Sounds like a job for a gnulib module! The getopt-gnu module explicitly
mentions AIX support, so I suspect this is the right solution.
Unfortunately, it seems that the license of gnulib's getopt-gnu module
is a bit quirky, and gnulib-tool currently barfs when trying to install
it. I'm pretty sure that it should actually be ok, though, so I've fired
off a bug report to bug-gnulib about it.
Update: this is now fixed upstream in gnulib. However, the gnulib
update breaks augeas's bootstrap. I'm currently brewing a patch to
update gnulib and fix bootstrap.
Wow - That didn't take long - Thanks for your super-speedy work Matt.
Fix no. 2:
These are patches in gnulib, not augeas. Eric, I noticed your name at
the top of this module. Any comments?
Turns out these are already fixed in the latest upstream gnulib. They
should fall out with the gnulib update patch.
Coolness - I'll give it a try as soon as its ready.
Thanks,
Jim
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel