From: Konstantinos Pachnis Date: 2009-05-08T05:21:49+09:00 Subject: [ruby-core:23391] [Bug #1444] Building ruby 1.8.7 p160 on Solaris 10 u6 Bug #1444: Building ruby 1.8.7 p160 on Solaris 10 u6 http://redmine.ruby-lang.org/issues/show/1444 Author: Konstantinos Pachnis Status: Open, Priority: Normal ruby -v: ruby 1.8.7 (2009-04-08 patchlevel 160) [i386-solaris2.10] The build process of ruby-1.8.7-p160 on Solaris 10 u6 using SunStudio 12 fails with the following error: "file.c", line 4369: undefined symbol: O_RDONLY cc: acomp failed for file.c *** Error code 2 make: Fatal error: Command failed for target `file.o' The same error occurs with gcc 3.4.3 (bundled with Solaris) After adding to the file.c the following code the build process completes successfully. #if defined (__SVR4) && defined (__sun) #include #endif Please, find attached a patch file that adds the above code. Konstantinos ---------------------------------------- http://redmine.ruby-lang.org