From owner-freebsd-current@FreeBSD.ORG Sun Apr 29 16:02:35 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 32F1C1065670 for ; Sun, 29 Apr 2012 16:02:35 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id D83DF8FC08 for ; Sun, 29 Apr 2012 16:02:34 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) for freebsd-current@freebsd.org with esmtp (envelope-from ) id <1SOWa1-0004Z9-Pb>; Sun, 29 Apr 2012 18:02:33 +0200 Received: from e178035180.adsl.alicedsl.de ([85.178.35.180] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) for freebsd-current@freebsd.org with esmtpsa (envelope-from ) id <1SOWa1-0002Dm-JQ>; Sun, 29 Apr 2012 18:02:33 +0200 Message-ID: <4F9D6613.3070608@zedat.fu-berlin.de> Date: Sun, 29 Apr 2012 18:02:27 +0200 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120314 Thunderbird/10.0.3 MIME-Version: 1.0 To: Current FreeBSD X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD114CB7B7AF56554293AA19C" X-Originating-IP: 85.178.35.180 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); X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Apr 2012 16:02:35 -0000 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--