Backport #1437
closed
1.8.7-p160 compilation with CC fails on OpenSolaris
Added by webops (Matthias Marschall) over 15 years ago.
Updated over 13 years ago.
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
=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
=begin
Adding
#include "fcntl.h"
to file.c works on OpenSolaris.
=end
- Category set to core
- Assignee set to shyouhei (Shyouhei Urabe)
=begin
needs to backport r22812.
=end
=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
- 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
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This was done in r24028.
=end
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0