Backport #1437
closed1.8.7-p160 compilation with CC fails on OpenSolaris
Description
=begin
I try to compile ruby 1.8.7-p160 on OpenSolaris snv_101b with CC using the following commands:
CC=cc ./configure --without-gcc && gmake
The build fails with this error:
line 4369: undefined symbol: O_RDONLY
cc: acomp failed for file.c
gmake: *** [
file.o] Error 2
Any ideas?
=end
Updated by webops (Matthias Marschall) over 15 years ago
=begin
Tried to compile it now with gcc 3.4.3 - same issue:
./configure && make
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c file.c
file.c: In function 'file_load_ok':
file.c:4369: error: 'O_RDONLY' undeclared (first use in this function)
=end
Updated by webops (Matthias Marschall) over 15 years ago
=begin
Adding
#include "fcntl.h"
to file.c works on OpenSolaris.
=end
Updated by nobu (Nobuyoshi Nakada) over 15 years ago
- Category set to core
- Assignee set to shyouhei (Shyouhei Urabe)
=begin
needs to backport r22812.
=end
Updated by kpachnis (Konstantinos Pachnis) over 15 years ago
=begin
I had the same issues on Solaris 10 u6.
I didn't notice the bug and I created another one.
You can have a look on bug #1444
Konstantinos
=end
Updated by shyouhei (Shyouhei Urabe) over 15 years ago
- Assignee changed from shyouhei (Shyouhei Urabe) to wyhaines (Kirk Haines)
=begin
Done backporting to 1.8.7. 1.8.6 also has this issue.
=end
Updated by wyhaines (Kirk Haines) over 15 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This was done in r24028.
=end