Re: port devel/gobject-introspection fails to build on sparc

2009-12-18 Thread Andrew Belashov

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.
--- girepository/girnode.c.orig 2009-07-09 21:20:46.0 +0400
+++ girepository/girnode.c  2009-12-09 16:12:24.0 +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:
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

firefox-2 panics on sparc64 at startup

2007-04-24 Thread Andrew Belashov

Hello, All!

firefox-2 is broken on FreeBSD/sparc64.

$ uname -a
FreeBSD bel.localdomain 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Mon Jan 29 10:06:19
MSK 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SUNC3D  sparc64

$ grep \$FreeBSD: www/firefox/Makefile
# $FreeBSD: ports/www/firefox/Makefile,v 1.174 2007/03/22 11:40:32 pav Exp $

$ pkg_info -r firefox-2.0.0.3,1
Information for firefox-2.0.0.3,1:

Depends on:
Dependency: pkg-config-0.21
Dependency: expat-2.0.0_1
Dependency: xorg-fonts-encodings-6.9.0_1
Dependency: jpeg-6b_4
Dependency: libiconv-1.9.2_2
Dependency: gettext-0.16.1_1
Dependency: png-1.2.14
Dependency: freetype2-2.2.1_1
Dependency: perl-5.8.8
Dependency: fontconfig-2.4.2_1,1
Dependency: nspr-4.6.6
Dependency: nss-3.11.5
Dependency: glib-2.12.11
Dependency: libxml2-2.6.27
Dependency: libdrm-2.0.2
Dependency: xorg-libraries-6.9.0_1
Dependency: popt-1.7_3
Dependency: tiff-3.8.2_1
Dependency: hicolor-icon-theme-0.10_1
Dependency: shared-mime-info-0.20
Dependency: libIDL-0.8.8
Dependency: atk-1.18.0
Dependency: bitstream-vera-1.10_3
Dependency: xorg-fonts-truetype-6.9.0
Dependency: libXft-2.1.7_1
Dependency: desktop-file-utils-0.12
Dependency: cairo-1.4.4
Dependency: pango-1.16.2
Dependency: gtk-2.10.11

$ firefox
Segmentation fault (core dumped)

$ gdb /usr/local/lib/firefox/firefox-bin /tmp/firefox-bin.core
GNU gdb 6.1.1 [FreeBSD]
Core was generated by `firefox-bin'.
Program terminated with signal 11, Segmentation fault.
#0  0x407bd67c in nsACString_internal::Length (this=0x7fdd900)
at nsTAString.h:566
566 {
(gdb) l
561 /**
562  * type cast helpers
563  */
564
565   const obsolete_string_type* AsObsoleteString() const
566 {
567   return NS_REINTERPRET_CAST(const obsolete_string_type*, this);
568 }
569
570   obsolete_string_type* AsObsoleteString()
(gdb) bt
#0  0x407bd67c in nsACString_internal::Length (this=0x7fdd900)
at nsTAString.h:566
#1  0x4076099c in NS_NewNativeLocalFile_P ([EMAIL PROTECTED],
followSymlinks=1, result=0x7fde1a0) at nsTAString.h:217
#2  0x00112d1c in XRE_GetBinaryPath (
argv0=0x7fdeb00 /usr/local/lib/firefox/firefox-bin,
aResult=0x7fde2a0) at nsTDependentString.h:67
#3  0x0011fa80 in nsXREDirProvider::Initialize (this=0x7fde620,
aXULAppDir=0x7fde2a0) at nsXREDirProvider.cpp:116
#4  0x00116884 in XRE_main (argc=1, argv=0x7fde8e0,
aAppData=0x230018) at nsAppRunner.cpp:2230
#5  0x001106e8 in main (argc=1, argv=0x7fde8e0)
at nsBrowserApp.cpp:61
(gdb) frame 0
#0  0x407bd67c in nsACString_internal::Length (this=0x7fdd900)
at nsTAString.h:566
566 {
(gdb) x/1i $pc
0x407bd67c _ZNK19nsACString_internal6LengthEv+60:
ldx  [ %g1 + 0x30 ], %g1
(gdb) p $g1
$1 = 0
(gdb) p this[0]
$3 = {mVTable = 0x0,
  mData = 0x7fddd20 /usr/local/lib/firefox/firefox-bin, mLength = 34,
  mFlags = 1}


--
With Best Regards,
Andrew Belashov.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]