[augeas-devel] augeas on AIX

David Lutterkort lutter at redhat.com
Sun Jun 14 04:37:26 UTC 2009


On Sat, 2009-06-13 at 15:22 +0200, Kristof Willaert wrote:
> I have been trying to build Augeas on AIX (5.3). 

Excellent ! I know nothing about AIX, but would love to have Augeas work
there.

> So far I have been able
> to get it to compile and run without segfaulting. Had to work around the
> non-existing getopt_long in AIX, and manually link a few gnulib .o files into
> libfa, but it is running.

Can you send details of what you needed to do ? I'd like to add that in.

> What isn't working, is that I don't see anything in the /files subtree
> in augtool.
> The /augeas subtree is populated with all the lenses, but nothing appears
> in /files:
> 
> nim  > augtool
> augtool> ls /
> augeas/ = (none)
> files = (none)
> augtool> ls /files
> augtool>

Does 'print /augeas//error' show anything ? Might be best if you can run
'augtool print >somefile.txt' and send that file as an attachment.

> When I truss (strace equivalent on AIX) the binary, I see the files
> the lenses are
> supposed to edit being stat'ed, but not opened, while on linux the files seem to
> get opened when starting augtool.
> 
> Eg. for /etc/sudoers:
> 
> statx("/", 0x2FF20398, 176, 020)                = 0
> statx("./", 0x2FF20398, 176, 020)               = 0
> chdir("etc/")                                   = 0
> statx("sudoers", 0x2FF208C8, 128, 010)          = 0
> chdir("/")                                      = 0
> chdir("/usr/local/share/augeas/lenses/dist")    = 0
> open("/usr/share/lib/terminfo/x/xterm", O_RDONLY) = 3
> kread(3, "1A01 $\0 %\0 !\0 �01 d02".., 4096)    = 1686
> close(3)                                        = 0

Yeah, something's fishy with that ... it also seems that it's not
reading any lenses; are the lenses
in /usr/local/share/augeas/lenses/dist ? You should see it open a bunc
of .aug files.

David





More information about the augeas-devel mailing list