Ticket #216 (closed defect: fixed)
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: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.



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 ?