www/firefox and mail/thunderbird fail to compile in FreeBSD 10-CUR/amd64 with CLANG

O. Hartmann ohartman at zedat.fu-berlin.de
Mon Apr 30 06:43:35 UTC 2012


I realized that compiling mail/thunderbird and www/firefox on most
recent FreeBSD 10-CURRENT/amd64 with CLANG/LLVM 3.1 doesn't work
anymore. Compiling www/firefox and mail/thunderbird with gcc 4.6 works
fine.


Am 04/29/12 10:10, schrieb O. Hartmann:
> On my FreeBSD 10 boxes, all compiled with CLANG and using CLANG (
> FreeBSD 10.0-CURRENT #0 r234500: Fri Apr 20 21:59:02 CEST 2012),
> compiling/updating Firefox to V12 and Thunderbird to V12 fails with the
> below shown error.
> 
> Does someone have any clue what could trigger the problem?
> 
> On FreeBSD 9-STABLE/amd64, also compiled with CLANG, there is no such
> problem.
> 
> 
> Thanks in advance,
> 
> Oliver
> 
> 
> [...]
> 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);
> ^
> ./jsapi.h:2111:1: error: 'JS_GetEmptyStringValue' has C-linkage
> specified, but returns user-defined type 'jsval' (aka 'JS::Value') which
> is incompatible
>       with C [-Werror,-Wreturn-type-c-linkage]
> JS_GetEmptyStringValue(JSContext *cx);
> ^
> ./jsapi.h:2819:1: error: 'JS_ComputeThis' has C-linkage specified, but
> returns user-defined type 'jsval' (aka 'JS::Value') which is
> incompatible with C
>       [-Werror,-Wreturn-type-c-linkage]
> JS_ComputeThis(JSContext *cx, jsval *vp);
> ^
> In file included from
> /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]
> 


-- 
O. Hartmann
Freie Universität Berlin
Institut fuer Geologische Wissenschaften
Fachrichtung Planetologie und Fernerkundung
Malteser-Str. 74--100/Haus D

D-12249 Berlin

Tel.: +49 (0) 30 838 70 508
FAX:  +49 (0) 30 838 70 837

-------------- 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/20120430/8dfdfff4/signature.pgp


More information about the freebsd-current mailing list