pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/41386: lang/ruby18-base fails to compile on Solaris

>Number:         41386
>Category:       pkg
>Synopsis:       lang/ruby18-base fails to compile on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 08 16:05:01 +0000 2009
>Originator:     KAWAKUBO Hiroshi
>Release:        pkgsrc-current on Solaris 10
SunOS XXX 5.10 Generic_137138-09 i86pc i386 i86pc
ruby18-base- fails to compile on Solaris 10 with the following error:

gcc -O -I/usr/pkg/gcc34/include 
-I/usr/pkg/gcc34/lib/gcc/i386-pc-solaris2.10/3.4.6/include -D_REENTRANT 
-I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db4  -fPIC    
-DRUBY_EXPORT -I. -I. -I/usr/pkg/gcc34/include 
-I/usr/pkg/gcc34/lib/gcc/i386-pc-solaris2.10/3.4.6/include -D_REENTRANT 
-I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db4   -c file.c
file.c: In function `file_load_ok':
file.c:4369: error: `O_RDONLY' undeclared (first use in this function)
file.c:4369: error: (Each undeclared identifier is reported only once
file.c:4369: error: for each function it appears in.)
*** Error code 1

This problem was fixed in Ruby's repository, revision 22812.

--- file.c.orig 2009-03-23 08:44:31.000000000 +0000
+++ file.c
@@ -68,6 +68,10 @@
 #include <sys/mkdev.h>
+#if defined(HAVE_FCNTL_H)
+#include <fcntl.h>
 #if !defined HAVE_LSTAT && !defined lstat
 #define lstat stat

Home | Main Index | Thread Index | Old Index