NetBSD Problem Report #54462

From www@netbsd.org  Tue Aug 13 19:16:29 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 556477A10E
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 13 Aug 2019 19:16:29 +0000 (UTC)
Message-Id: <20190813191627.E73637A1E4@mollari.NetBSD.org>
Date: Tue, 13 Aug 2019 19:16:27 +0000 (UTC)
From: ng0@n0.is
Reply-To: ng0@n0.is
To: gnats-bugs@NetBSD.org
Subject: security/tor-browser:  error: visibility does not match previous declaration
X-Send-Pr-Version: www-1.0

>Number:         54462
>Category:       pkg
>Synopsis:       security/tor-browser:  error: visibility does not match previous declaration
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ryoon
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 13 19:20:00 +0000 2019
>Last-Modified:  Tue Aug 13 23:53:40 +0000 2019
>Originator:     ng0
>Release:        current, 2019-08-13
>Organization:
>Environment:
NetBSD uptimegirl 9.99.4 NetBSD 9.99.4 (GENERIC) amd64

>Description:
on a system with pkgsrc using clang from base, security/tor-browser-8.5.4 fails with:

In file included from /usr/work/security/tor-browser/work/firefox-tor-browser-60.8.0esr-8.5-1-build2/intl/hyphenation/glue/hnjstdio.cpp:13:
In file included from /usr/work/security/tor-browser/work/build/dist/include/nsNetUtil.h:10:
In file included from /usr/work/security/tor-browser/work/build/dist/include/mozilla/Maybe.h:22:
In file included from /usr/work/security/tor-browser/work/build/dist/stl_wrappers/ostream:44:
In file included from /usr/work/security/tor-browser/work/build/dist/system_wrappers/ostream:3:
In file included from /usr/include/c++/ostream:138:
In file included from /usr/work/security/tor-browser/work/build/dist/stl_wrappers/ios:44:
In file included from /usr/work/security/tor-browser/work/build/dist/system_wrappers/ios:3:
In file included from /usr/include/c++/ios:216:
In file included from /usr/include/c++/__locale:15:
In file included from /usr/work/security/tor-browser/work/build/dist/stl_wrappers/string:44:
In file included from /usr/work/security/tor-browser/work/build/dist/system_wrappers/string:3:
In file included from /usr/include/c++/string:437:
In file included from /usr/work/security/tor-browser/work/build/dist/stl_wrappers/cstdio:44:
In file included from /usr/work/security/tor-browser/work/build/dist/system_wrappers/cstdio:3:
/usr/include/c++/cstdio:130:77: error: no matching function for call to
      'hnjFeof'
  ...int __libcpp_feof(FILE* __stream) { return feof(__stream); }
                                                ^~~~~~~~~~~~~~
/usr/work/security/tor-browser/work/firefox-tor-browser-60.8.0esr-8.5-1-build2/intl/hyphenation/glue/hnjalloc.h:34:20: note: 
      expanded from macro 'feof'
#define feof(file) hnjFeof(file)
                   ^~~~~~~
/usr/work/security/tor-browser/work/firefox-tor-browser-60.8.0esr-8.5-1-build2/intl/hyphenation/glue/hnjalloc.h:49:5: note: 
      candidate function not viable: no known conversion from 'FILE *'
      (aka '__sFILE *') to 'hnjFile *' (aka 'hnjFile_ *') for 1st argument
int hnjFeof(hnjFile* f);
    ^
In file included from /usr/work/security/tor-browser/work/firefox-tor-browser-60.8.0esr-8.5-1-build2/intl/hyphenation/glue/hnjstdio.cpp:13:
In file included from /usr/work/security/tor-browser/work/build/dist/include/nsNetUtil.h:10:
In file included from /usr/work/security/tor-browser/work/build/dist/include/mozilla/Maybe.h:22:
In file included from /usr/work/security/tor-browser/work/build/dist/stl_wrappers/ostream:44:
In file included from /usr/work/security/tor-browser/work/build/dist/system_wrappers/ostream:3:
In file included from /usr/include/c++/ostream:138:
In file included from /usr/work/security/tor-browser/work/build/dist/stl_wrappers/ios:44:
In file included from /usr/work/security/tor-browser/work/build/dist/system_wrappers/ios:3:
In file included from /usr/include/c++/ios:216:
In file included from /usr/include/c++/__locale:15:
In file included from /usr/work/security/tor-browser/work/build/dist/stl_wrappers/string:44:
In file included from /usr/work/security/tor-browser/work/build/dist/system_wrappers/string:3:
In file included from /usr/include/c++/string:437:
In file included from /usr/work/security/tor-browser/work/build/dist/stl_wrappers/cstdio:44:
In file included from /usr/work/security/tor-browser/work/build/dist/system_wrappers/cstdio:3:
/usr/include/c++/cstdio:132:8: error: visibility does not match previous
      declaration
inline _LIBCPP_INLINE_VISIBILITY int feof(FILE* __stream) { return __lib...
       ^
/usr/include/c++/__config:220:51: note: expanded from macro
      '_LIBCPP_INLINE_VISIBILITY'
#define _LIBCPP_INLINE_VISIBILITY __attribute__ ((__visibility__("hidden...
                                                  ^
/usr/include/stdio.h:222:1: note: previous attribute is here
__BEGIN_DECLS
^
/usr/include/sys/cdefs.h:365:24: note: expanded from macro '__BEGIN_DECLS'
#define __BEGIN_DECLS           __BEGIN_PUBLIC_DECLS
                                ^
/usr/include/sys/cdefs.h:346:2: note: expanded from macro '__BEGIN_PUBLIC_DECLS'
        _Pragma("GCC visibility push(default)") __BEGIN_EXTERN_C
        ^
<scratch space>:212:6: note: expanded from here
 GCC visibility push(default)
     ^
2 errors generated.
gmake[3]: *** [/usr/work/security/tor-browser/work/firefox-tor-browser-60.8.0esr-8.5-1-build2/config/rules.mk:1056: hnjstdio.o] Error 1
gmake[3]: Leaving directory '/usr/work/security/tor-browser/work/build/intl/hyphenation/glue'
gmake[2]: *** [/usr/work/security/tor-browser/work/firefox-tor-browser-60.8.0esr-8.5-1-build2/config/recurse.mk:73: intl/hyphenation/glue/target] Error 2
gmake[2]: Leaving directory '/usr/work/security/tor-browser/work/build'
gmake[1]: *** [/usr/work/security/tor-browser/work/firefox-tor-browser-60.8.0esr-8.5-1-build2/config/recurse.mk:33: compile] Error 2
gmake[1]: Leaving directory '/usr/work/security/tor-browser/work/build'
gmake: *** [/usr/work/security/tor-browser/work/firefox-tor-browser-60.8.0esr-8.5-1-build2/config/rules.mk:442: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/security/tor-browser
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/security/tor-browser

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Tue, 13 Aug 2019 23:53:40 +0000
Responsible-Changed-Why:
Ryo, can you please give it a look?
(over to MAINTAINER)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.