Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Dec 2009 15:17:40 +0300
From:      Andrew Belashov <bel@orel.ru>
To:        Anton Shterenlikht <mexas@bristol.ac.uk>
Cc:        gnome@freebsd.org, freebsd-sparc64@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: port devel/gobject-introspection fails to build on sparc
Message-ID:  <4B2B72E4.4060808@orel.ru>
In-Reply-To: <20091215162601.GA22008@mech-cluster241.men.bris.ac.uk>
References:  <20091215162601.GA22008@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------000209010901090904060504
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi, Anton!

Anton Shterenlikht wrote:
> on FreeBSD 9.0-CURRENT sparc64
> port devel/gobject-introspection fails to build:
> 
> 
> Making all in gir
> gmake[2]: Entering directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.6/gir'
> ../tools/g-ir-compiler --includedir=.  GLib-2.0.gir -o GLib-2.0.typelib
> gmake[2]: *** [GLib-2.0.typelib] Illegal instruction: 4 (core dumped)
> gmake[2]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.6/gir'
> gmake[1]: *** [all-recursive] Error 1
> 
> Any advice?
> 
> many thanks
> anton
> 

Try the attached patch on own risk.

With Best Regards,
  Andrew Belashov.

--------------000209010901090904060504
Content-Type: text/plain;
 name="patch-zz-bel"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-zz-bel"

--- girepository/girnode.c.orig	2009-07-09 21:20:46.000000000 +0400
+++ girepository/girnode.c	2009-12-09 16:12:24.000000000 +0300
@@ -2288,7 +2288,8 @@
 	    break;
 	  case GI_TYPE_TAG_DOUBLE:
 	    blob->size = sizeof (gdouble);
-	    *(gdouble*)&data[blob->offset] = (gdouble) parse_float_value (constant->value);
+	    gdouble tmp = parse_float_value (constant->value);
+	    memcpy (&data[blob->offset], &tmp, blob->size);
 	    break;
 	  case GI_TYPE_TAG_UTF8:
 	  case GI_TYPE_TAG_FILENAME:

--------------000209010901090904060504--



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