[racket] Racket on Centos 5
Sorry, I'd lost track of this one.
The cairo_clip_extents() function is used to implement the `is-empty?
method of region%, for which I can find no uses anywhere in the Racket
source tree.
So, if you change "collects/draw/unsafe/cairo.rkt" around line 124 to
(define-cairo cairo_clip_extents (_fun _cairo_t
(x1 : (_ptr o _double))
(y1 : (_ptr o _double))
(x2 : (_ptr o _double))
(y2 : (_ptr o _double))
-> _void
-> (values x1 y1 x2 y2))
;; Adding this part:
#:make-fail make-not-available)
does that fix the problem, or are there other missing functions?
At Mon, 28 Mar 2011 22:05:09 +0200, "keydana at gmx.de" wrote:
> Hi,
>
> I've encountered the exactly same problem today, running on Oracle Linux (=
> Red Hat 5.5, approximately)...
> Would anyone know a workaround for this, or if any not-too-outdated racket
> version would run with the old libcairo version?
>
> Unfortunately I have no alternative to installing racket on some RedHat-like
> system in a VM, for the present purpose...
>
> Many thanks for any ideas,
> Sigrid
>
>
>
>
> >
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Tue, 01 Mar 2011 22:48:20 -0500
> > From: Neil Van Dyke <neil at neilvandyke.org>
> > To: Ritchie Cai <ritchiecai at gmail.com>
> > Cc: users at racket-lang.org
> > Subject: Re: [racket] Racket on Centos 5
> > Message-ID: <4D6DBE04.3070806 at neilvandyke.org>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > Apparently CentOS 5.5 packages Cairo version 1.2.4.
> >
> > Looks like "cairo_clip_extents" was introduced in Cairo snapshot version
> > 1.3.2.
> >
> > So, "cairo_clip_extents" was introduced in the development stream in
> > November 15th, 2006, four years ago, but the RHEL distro (and therefore,
> > CentOS) has not picked it up. Seems like RHEL/CentOS are as bad for
> > recent-era libraries as Debian Stable. (Matthew Flatt graciously added
> > compatibility with the old GTK-related library versions on the Debian
> > Stable distros that I tend to use.)
> >
> > Looks like the recently released RHEL 6 has Cairo 1.8.8 or later (which
> > should be fine for DrRacket), but CentOS 6 is not yet available. I
> > don't know what Cairo version CentOS 5.6 will have.
> >
> > Ritchie Cai wrote at 03/01/2011 10:09 PM:
> >> Centos 5.5, [...] ffi-obj: couldn't get "cairo_clip_extents" from
> "libcairo.so.2" (/usr/lib64/libcairo.so.2: undefined symbol:
> cairo_clip_extents)
> >>
> >
> > --
> > http://www.neilvandyke.org/
> >
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users