ruby16-shim-ruby18 broken on stable (patch)

Pav Lucistnik pav at oook.cz
Fri Oct 31 16:05:06 PST 2003


Hi,

I can't build ruby16-shim-ruby18 1.8.1 preview2, commited earlier today,
on my -STABLE box. 

Here is an error output:

cc -fPIC -O -pipe -march=pentium-mmx -fPIC -I.
-I/usr/local/lib/ruby/1.6/i386-freebsd5
-I/usr/ports/lang/ruby16-shim-ruby18/work/shim/ruby16/ext/io/wait
-DHAVE_FIONREAD -DFIONREAD_HEADER="<sys/ioctl.h>" -c -o wait.o wait.c
wait.c: In function `io_wait':
wait.c:74: storage size of `timerec' isn't known
wait.c:83: invalid use of undefined type `struct timeval'
*** Error code 1

And here is an quick patch:

--- shim/ruby16/ext/io/wait/wait.c.orig	Sat Nov  1 01:00:12 2003
+++ shim/ruby16/ext/io/wait/wait.c	Sat Nov  1 00:59:14 2003
@@ -16,6 +16,7 @@
 
 #include <sys/types.h>
 #include FIONREAD_HEADER
+#include <sys/time.h>
 
 static VALUE io_ready_p _((VALUE io));
 static VALUE io_wait _((int argc, VALUE *argv, VALUE io));


-- 
Pav Lucistnik <pav at oook.cz>
What do we know about love? Love is like a pear. Pear is sweet and have
a specific shape. Try to exactly define the shape of a pear.
  -- Marigold: 50 Years Of Poetry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?iso-8859-2?Q?digit=E1ln=EC?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20031101/36b7b2bc/attachment.bin


More information about the freebsd-ports mailing list