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);

O. Hartmann ohartman at zedat.fu-berlin.de
Sun Apr 29 16:02:35 UTC 2012


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:
./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);
^
./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);
^
./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:
./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);
^
./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);
^
./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);
^
./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);

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20120429/f09e9145/signature.pgp


More information about the freebsd-current mailing list