Bug #1444
closedBuilding ruby 1.8.7 p160 on Solaris 10 u6
Description
=begin
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 <fcntl.h>
#endif
Please, find attached a patch file that adds the above code.
Konstantinos
=end
Files
Updated by nobu (Nobuyoshi Nakada) over 15 years ago
- Status changed from Open to Closed
=begin
same as [Bug #1437]
=end
Updated by djberg96 (Daniel Berger) over 15 years ago
=begin
After applying that patch, it still dies for me on Solaris 10 (x86) with Sun Studio 12 and dmake:
unknown --> 1 job
unknown --> Job output
./mkconfig.rb:10:in require': no such file to load -- fileutils (LoadError) from ./mkconfig.rb:10 *** Error code 1 The following command caused the error: ./miniruby ./mkconfig.rb -timestamp=.rbconfig.time \ -install_name=ruby \ -so_name=ruby rbconfig.rb dmake: Fatal error: Command failed for target
.rbconfig.time'
=end
Updated by nobu (Nobuyoshi Nakada) over 15 years ago
=begin
Hi,
At Sat, 9 May 2009 00:16:31 +0900,
Daniel Berger wrote in [ruby-core:23399]:
After applying that patch, it still dies for me on Solaris 10 (x86) with Sun Studio 12 and dmake:
unknown --> 1 job
unknown --> Job output
./mkconfig.rb:10:in `require': no such file to load -- fileutils (LoadError)
from ./mkconfig.rb:10
The line 10 seems empty. Are you cross-compiling?
--
Nobu Nakada
=end
Updated by djberg96 (Daniel Berger) over 15 years ago
=begin
No, I'm not cross compiling.
=end