Joseph Jones liked your message with Boxer. On December 7, 2015 at 00:55:22 MST, naruse / airemix.jp wrote:Issue #11733 has been updated by Yui NARUSE.Assignee set to cruby-aix----------------------------------------Bug #11733: Compile of ruby 2.2.3 fails on AIX 6.1 TL07 SP03https://bugs.ruby-lang.org/issues/11733#change-55299* Author: Perry Smith* Status: Open* Priority: Normal* Assignee: cruby-aix* ruby -v: * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN----------------------------------------The build on AIX fails in the ext/-test-/file directory with errors such ascompiling /usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c: In function 'get_fsname':/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c:39:14: error: storage size of 'st' isn'tknown/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c:44:5: warning: implicit declaration of function 'statvfs'/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c:39:14: warning: unused variable 'st'make: *** [fs.o] Error 1This can be avoided if line 65 is modified but then we encounter a seconderror:compiling /usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c: In function 'get_fsname':/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c:45:5: warning: implicit declaration of function 'statvfs'/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c:49:11: error: 'struct statfs' has no member named 'f_basetype'/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c:50:9: error: 'struct statfs' has no member named 'f_basetype'/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c:50:9: error: 'struct statfs' has no member named 'f_basetype'/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c:50:9: error: 'struct statfs' has no member named 'f_basetype'/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c:50:9: error: 'struct statfs' has no member named 'f_basetype'In the extconf.rb,they test for struct statfs -- which AIX has but the code declares variables of statfs_t which AIX does not have.The AIX statfs is defined in /usr/include/sys/statfs.h (which is included by vfs.h). It has an f_typefield but not an f_basetype field.To get around the issue, I kludged extconf.rb to fail to find the structures it was looking for and then it built but this is clearly not a real solution.-- https://bugs.ruby-lang.org/