port devel/gobject-introspection fails to build on sparc
Andrew Belashov
bel at orel.ru
Fri Dec 18 12:38:07 UTC 2009
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.
-------------- next part --------------
--- 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:
More information about the freebsd-sparc64
mailing list