Ticket #216 (closed defect: fixed)

Opened 3 years ago

Last modified 14 months ago

AIX - ERROR: msync rrd_file: Invalid argument

Reported by: human Owned by: oetiker
Priority: major Milestone:
Component: rrd_graph Version: 1.3.6
Keywords: Cc:

Description

Hi, I've build rrdtool 1.3.6 on AIX 5.3 TL9 SP1 with the following:

export PATH=${PATH}:/opt/freeware/bin:/usr/vac/bin export PKG_CONFIG_PATH=/opt/freeware/lib/pkgconfig export INSTALL_DIR=/opt/freeware export BUILD_DIR=/rrdinstall/BUILD

make-3.80 pkg-config-0.19-6 zlib-1.2.3 libpng-1.2.35 freetype-2.3.5 libxml2-2.6.32 fontconfig-2.4.92 pixman-0.14.0 cairo-1.8.6 glib-2.19.10 pango-1.22.4

./configure \

--prefix=/opt/freeware \ --enable-perl-site-install \ --disable-ruby \ --disable-tcl \ --disable-python \ --disable-rrdcgi \ --disable-static \ --disable-pthread \ --disable-libintl \ --enable-mmap

When running rrdtool graph ..... I get the following error/output:

125x71 ERROR: msync rrd_file: Invalid argument

Return code from rrdtool = 1.

Hope thats enough info, if you want any more, let me know. Thanks, Steve.

Change History

comment:1 Changed 3 years ago by oetiker

Hmm ist seems that mmap works differently on AIX. You may want to compile with --disable-mmap and you might want to have a look at the manual page for msync on aix compared to the one for msync on POSIX/Linux especially the MS_ASYNC parameter ... did you not get any warnings while compileing ?

comment:2 Changed 3 years ago by human

I'm not a expert with regard to programming but when running configure I see the following relating to msync. Resolve Portability Issues checking if msync with MS_ASYNC updates the files mtime... yes

I dont see any errors in the make around the rrd_open.c code except: rrd_open.c:234: warning: comparison between signed and unsigned

Your call to msync: ret = msync(rrd_file->file_start, rrd_file->file_len, MS_ASYNC)

AIX Manual: int msync ( addr, len, flags)

void *addr; size_t len; int flags;

Yes rrd complies ok with the --disable-mmap flag.

comment:3 Changed 14 months ago by oetiker

  • Status changed from new to closed
  • Resolution set to fixed

it seems there are issues with MAP_PRIVATE on AIX ... 1.4.5 will disable this on AIX ... see r2157

Note: See TracTickets for help on using tickets.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.