From nobody@FreeBSD.org  Wed Sep 12 07:36:38 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 880171065678
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Sep 2012 07:36:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 693C08FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Sep 2012 07:36:38 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8C7acHv052693
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Sep 2012 07:36:38 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q8C7acIH052677;
	Wed, 12 Sep 2012 07:36:38 GMT
	(envelope-from nobody)
Message-Id: <201209120736.q8C7acIH052677@red.freebsd.org>
Date: Wed, 12 Sep 2012 07:36:38 GMT
From: Oliver Hartmann <ohartman@zedat.fu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: www/libxul: ./jscompartment.h:394:8: error: visibility does not match previous declaration
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         171566
>Category:       ports
>Synopsis:       www/libxul: ./jscompartment.h:394:8: error: visibility does not match previous declaration
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gecko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 12 07:40:01 UTC 2012
>Closed-Date:    Wed Oct 10 21:18:30 UTC 2012
>Last-Modified:  Wed Oct 10 21:18:30 UTC 2012
>Originator:     Oliver Hartmann
>Release:        FreeBSD 10.0-CURRENT/amd64 r240369, CLANG buildworld/kernel
>Organization:
FU Berlin
>Environment:
>Description:
Updating www/libxul from version libxul-1.9.2.28_1 to new 10.0.7 via portupgrade fails with the follwoing error emitted:

[...]
clang++ -o jsapi.o -c  -I./../../dist/system_wrappers_js -include ./config/gcc_hidden.h -DOSTYPE=\"FreeBSD10\" -DOSARCH=FreeBSD -DEXPORT_JS_API -DIMPL_MFBT -DJS_HAS_CTYPES -DDLL_PREFIX=\"lib\" -DDLL_SUFFIX=\".so\" -I/usr/local/lib/libffi-3.0.9/include  -I.  -I. -I. -I./../../dist/include -I./../../dist/include/nsprpub  -I/usr/local/include/nspr  -I. -I./assembler -I./yarr  -fPIC -isystem/usr/local/include        -I/usr/local/include/nss -I/usr/local/include/nss/nss      -I/usr/local/include -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -O2 -pipe -pipe -O3 -march=native -fno-strict-aliasing -Wno-return-type-c-linkage -pipe  -DNDEBUG -DTRIMMED -fno-omit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_JIT=1 -DENABLE_ASSEMBLER=1  -isystem/usr/local/include        -I/usr/local/include/nss -I/usr/local/include/nss/nss      -I/usr/local/include -DMOZILLA_CLIENT -include ./
 js-confdefs.h -MD -MF .deps/jsapi.pp /usr/ports/www/libxul/work/mozilla-esr10/js/src/jsapi.cpp
In file included from /usr/ports/www/libxul/work/mozilla-esr10/js/src/jsanalyze.cpp:40:
In file included from ./jsanalyze.h:44:
./jscompartment.h:394:8: error: visibility does not match previous declaration
struct JS_FRIEND_API(JSCompartment) {
       ^
./jstypes.h:162:29: note: expanded from macro 'JS_FRIEND_API'
#define JS_FRIEND_API(t)    JS_PUBLIC_API(t)
                            ^
./jstypes.h:152:29: note: expanded from macro 'JS_PUBLIC_API'
# define JS_PUBLIC_API(t)   JS_EXPORT_API(t)
                            ^
./jstypes.h:113:33: note: expanded from macro 'JS_EXPORT_API'
# define JS_EXPORT_API(__type)  JS_EXTERNAL_VIS __type
                                ^
./jstypes.h:94:42: note: expanded from macro 'JS_EXTERNAL_VIS'
#  define JS_EXTERNAL_VIS __attribute__((visibility ("default")))
                                         ^
./config/gcc_hidden.h:2:13: note: previous attribute is here
#pragma GCC visibility push(hidden)
            ^
In file included from /usr/ports/www/libxul/work/mozilla-esr10/js/src/jsanalyze.cpp:45:
In file included from ./jsinferinlines.h:50:
In file included from ./vm/Stack-inl.h:49:
In file included from ./jsscriptinlines.h:54:
In file included from ./jsscopeinlines.h:58:
In file included from ./jsobjinlines.h:53:
./jsproxy.h:52:7: error: visibility does not match previous declaration
class JS_FRIEND_API(ProxyHandler) {

[...]

>How-To-Repeat:
Update/install www/libxul (10.0.7) on FreeBSD 10.0-CURRENT/amd64 with the current CLANG v3.2 as the main compiler and buildworld/buildkernel with clang.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gecko 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Sep 12 07:40:17 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171566 

From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: bug-followup@FreeBSD.org, ohartman@zedat.fu-berlin.de
Cc:  
Subject: Re: ports/171566: www/libxul: ./jscompartment.h:394:8: error: visibility
 does not match previous declaration
Date: Wed, 19 Sep 2012 15:47:38 +0200

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig53AF9CCC3E782D2793602C0B
 Content-Type: text/plain; charset=ISO-8859-15
 Content-Transfer-Encoding: quoted-printable
 
 If compiled with USE_GCC=3D4.6+, port www/libxul compiles, but fails
 installing:
 
 /usr/ports/www/libxul/work/mozilla-esr10/dist/bin/xpcshell: Undefined
 symbol "JSVAL_NULL"
 gmake[1]: *** [install] Error 1
 gmake[1]: Leaving directory
 `/usr/ports/www/libxul/work/mozilla-esr10/xulrunner/installer'
 gmake: *** [install] Error 2
 *** [gecko-pre-install] Error code 2
 
 Stop in /usr/ports/www/libxul.
 *** [install] Error code 1
 
 Stop in /usr/ports/www/libxul.
 
 
 --------------enig53AF9CCC3E782D2793602C0B
 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)
 
 iQEcBAEBAgAGBQJQWc0EAAoJEOgBcD7A/5N8pMIH/3iweNApfIO1GQuXDOd4sIg5
 kuvH7XbfjVcqhWDpjvguOCGFeaXXvHommc2SGmO/pPEQQuyRBPKP64cTOnTRx5x9
 8TpIdGglGPT2RF/WDUq8zJSOAWmAl2dp0dUqSVVOKFsOmCIof05LUlwzU/sR7M3i
 tMh0eTNrHNI9SKMpHKkF9DMshJn5c1I20WExvlRrtlY8FrNVzwmX74+luTMc6hHs
 9XehwMrUv5qEthcXnPMAV0J/c7krwAYELcCBDm7XQyZFxutymkgb294oNdEmoL/2
 3nelFIYrHTr3bRUPUXZWydFCvKIpkK0TPbRnxc31qw2hAn1AlfSXqZCeJXSyXwI=
 =BoEa
 -----END PGP SIGNATURE-----
 
 --------------enig53AF9CCC3E782D2793602C0B--
State-Changed-From-To: open->closed 
State-Changed-By: flo 
State-Changed-When: Wed Oct 10 21:18:29 UTC 2012 
State-Changed-Why:  
Should be fixed in r305684 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171566 
>Unformatted:
