Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Apr 2012 18:02:27 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Current FreeBSD <freebsd-current@freebsd.org>
Subject:   www/firefox or mail/thunderbird: Build on FreeBSD 10-CURRENT/amd64 CLANG doesn't work: ./jsapi.h:2105:1: error: 'JS_GetNegativeInfinityValue' has C-linkage specified, but returns user-defined type 'jsval' (aka 'JS::Value') which is, incompatible with C [-Werror, -Wreturn-type-c-linkage], JS_GetNegativeInfinityValue(JSContext *cx);
Message-ID:  <4F9D6613.3070608@zedat.fu-berlin.de>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigD114CB7B7AF56554293AA19C
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

Both ports, www/firefox and mail/thunderbird, reject compiling/updating
with almost the same error as shown below for www/firefox.

This happens on all FreeBSD 10-CURRENT/amd64 boxes compiling with CLANG.
FreeBSD 9 is fine.

Are there any solutions? Is this problem "well known" and I missed
something?

regards,
Oliver


[...]

In file included from In file included from
/usr/ports/www/firefox/work/mozilla-release/js/src/jsalloc.cpp:40:
In file included from ./jscntxt.h:50:
=2E/jsapi.h:2102:1: error: 'JS_GetNaNValue' has C-linkage specified, but
returns user-defined type 'jsval' (aka 'JS::Value') which is
incompatible with C
      [-Werror,-Wreturn-type-c-linkage]
JS_GetNaNValue(JSContext *cx);
^
=2E/jsapi.h:2105:1: error: 'JS_GetNegativeInfinityValue' has C-linkage
specified, but returns user-defined type 'jsval' (aka 'JS::Value') which =
is
      incompatible with C [-Werror,-Wreturn-type-c-linkage]
JS_GetNegativeInfinityValue(JSContext *cx);
^
=2E/jsapi.h:2108:1: error: 'JS_GetPositiveInfinityValue' has C-linkage
specified, but returns user-defined type 'jsval' (aka 'JS::Value') which =
is
      incompatible with C [-Werror,-Wreturn-type-c-linkage]
JS_GetPositiveInfinityValue(JSContext *cx);
^
/usr/ports/www/firefox/work/mozilla-release/js/src/jsanalyze.cpp:40:
In file included from ./jsanalyze.h:44:
In file included from ./jscompartment.h:46:
In file included from ./jscntxt.h:50:
=2E/jsapi.h:2102:1: error: 'JS_GetNaNValue' has C-linkage specified, but
returns user-defined type 'jsval' (aka 'JS::Value') which is
incompatible with C
      [-Werror,-Wreturn-type-c-linkage]
JS_GetNaNValue(JSContext *cx);
^
=2E/jsapi.h:2105:1: error: 'JS_GetNegativeInfinityValue' has C-linkage
specified, but returns user-defined type 'jsval' (aka 'JS::Value') which =
is
      incompatible with C [-Werror,-Wreturn-type-c-linkage]
JS_GetNegativeInfinityValue(JSContext *cx);
^
=2E/jsapi.h:2108:1: error: 'JS_GetPositiveInfinityValue'In file included
from  has/usr/ports/www/firefox/work/mozilla-release/js/src/jsdbgapi.cpp
:C-linkage47 :
In file included from specified,./jsprvtd.h:57 :
but ./jsapi.hreturns: 2102user-defined: 1type:  'jsval' (aka
'JS::Value')error:  which is
'JS_GetNaNValue' has C-linkage specified, but returns
user-definedincompatible type 'jsval' (aka 'JS::Value') which isIn file
included from
/usr/ports/www/firefox/work/mozilla-release/js/src/jsarray.cppwith: 108C:=

  incompatible with C
[-Werror,-Wreturn-type-c-linkage]./jsapi.h:2102
:[-Werror,-Wreturn-type-c-linkage]1
: error: 'JS_GetNaNValue'JS_GetNaNValue(JSContext *cx);
has ^C-linkage
 specified, but returns user-defined type 'jsval' (aka 'JS::Value')
which is incompatible with C
      [-Werror,-Wreturn-type-c-linkage]
JS_GetNaNValue(JSContext *cx);
^
=2E/jsapi.h:2105:1: error: 'JS_GetNegativeInfinityValue' has C-linkage
specified, but returns user-defined type 'jsval' (aka 'JS::Value') which =
is
      incompatible with C [-Werror,-Wreturn-type-c-linkage]
JS_GetNegativeInfinityValue(JSContext *cx);


--------------enigD114CB7B7AF56554293AA19C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBAgAGBQJPnWYZAAoJEOgBcD7A/5N8+VwH/33DtSnea+RwKn0BdItzZpTv
/EI5HN0Lx3JZChww7dQETviZqbbhkXoL/RFrvBD5vEeluYkcypTBFEIZoGNuDrgd
E1E5hBLIT7LHmoXN5ylVhoWu1266Ypsx2VsfT7ErSOCDKVREHWMzlGscrLhKUtTZ
V9CINGNbGQAnSmV3R6TJ1ywmwRWzFDjndOBSHNxUlsOgg69KII4yFQVulXD/7lpm
rshCKefLWEuN1lbdzErhpLpmJGG0lzd7oQ37rag+8203dWRIBdKD+j0sKkfGrB7w
6t+DcqKg77IbldY98qoGiUmhtadkKFGXoPxKDKnR2jAEMvNLzee0Nt1c8IVua1Y=
=OQoz
-----END PGP SIGNATURE-----

--------------enigD114CB7B7AF56554293AA19C--



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