[augeas-devel] augeas on AIX

Kristof Willaert kristof.willaert at gmail.com
Sat Jun 13 13:22:33 UTC 2009


Hi,

I have been trying to build Augeas on AIX (5.3). 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.

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>

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

Since my C knowledge is virtually non-existent I am a bit at a loss
here, and hoping
someone can point my in the right direction to get this solved.

Thanks in advance.

kristof




More information about the augeas-devel mailing list