Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Nov 2003 01:05:02 +0100
From:      Pav Lucistnik <pav@oook.cz>
To:        knu@freebsd.org
Cc:        freebsd-ports@freebsd.org
Subject:   ruby16-shim-ruby18 broken on stable (patch)
Message-ID:  <1067645102.27451.76.camel@hood.oook.cz>

next in thread | raw e-mail | index | archive | help

--=-VrwH+LuEeE0wxuQzjx5f
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

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

Here is an error output:

cc -fPIC -O -pipe -march=3Dpentium-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=3D"<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 @@
=20
 #include <sys/types.h>
 #include FIONREAD_HEADER
+#include <sys/time.h>
=20
 static VALUE io_ready_p _((VALUE io));
 static VALUE io_wait _((int argc, VALUE *argv, VALUE io));


--=20
Pav Lucistnik <pav@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

--=-VrwH+LuEeE0wxuQzjx5f
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: 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?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQA/oviuntdYP8FOsoIRAhodAKDGp1fgBaLf3s/mBJEOl3zDhqzqPwCgqYBR
aktpf3Mgk1mvWqrQudcqkSU=
=3LTt
-----END PGP SIGNATURE-----

--=-VrwH+LuEeE0wxuQzjx5f--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1067645102.27451.76.camel>