NetBSD Problem Report #56044

From john@eir.zia.io  Sun Mar  7 21:43:50 2021
Return-Path: <john@eir.zia.io>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_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 A86E31A9217
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  7 Mar 2021 21:43:50 +0000 (UTC)
Message-Id: <20210307200357.5134F164BE30@eir.zia.io>
Date: Sun,  7 Mar 2021 20:03:57 +0000 (UTC)
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: databases/mysql57-server fails to compile on earmv7hf
X-Send-Pr-Version: 3.95

>Number:         56044
>Category:       pkg
>Synopsis:       databases/mysql57-server fails to compile on earmv7hf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 07 21:45:00 +0000 2021
>Last-Modified:  Wed Mar 10 14:55:01 +0000 2021
>Originator:     John Klos
>Release:        NetBSD 9.1_STABLE
>Organization:

>Environment:


System: NetBSD eir.zia.io 9.1_STABLE NetBSD 9.1_STABLE (GENERIC) #0: Tue Mar 2 15:59:04 UTC 2021 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC evbarm
Architecture: earmv7hf
Machine: evbarm
>Description:

Attempting to compile databases/mysql57-server fails with:

[  4%] Building C object strings/CMakeFiles/strings.dir/strappend.c.o
In file included from /usr/pkgsrc/databases/mysql57-server/work/mysql-5.7.33/strings/strappend.c:40:0:
/usr/pkgsrc/databases/mysql57-server/work/mysql-5.7.33/include/m_string.h:32:0: warning: "bzero" redefined
 #define bzero please_use_memset_rather_than_bzero

In file included from /usr/include/strings.h:72:0,
                 from /usr/include/string.h:98,
                 from /usr/pkgsrc/databases/mysql57-server/work/mysql-5.7.33/include/little_endian.h:34,
                 from /usr/pkgsrc/databases/mysql57-server/work/mysql-5.7.33/include/my_byteorder.h:203,
                 from /usr/pkgsrc/databases/mysql57-server/work/mysql-5.7.33/include/my_global.h:601,
                 from /usr/pkgsrc/databases/mysql57-server/work/mysql-5.7.33/strings/strappend.c:39:
/usr/include/ssp/strings.h:42:0: note: this is the location of the previous definition
 #define bzero(dst, len) \

>How-To-Repeat:

>Fix:


>Audit-Trail:
From: nia <nia@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56044: databases/mysql57-server fails to compile on earmv7hf
Date: Wed, 10 Mar 2021 14:52:12 +0000

 On Sun, Mar 07, 2021 at 09:45:01PM +0000, john@ziaspace.com wrote:
 > Attempting to compile databases/mysql57-server fails with:

 I think this is the actual error:

 /pbulk/work/databases/mysql57-server/work/mysql-5.7.32/extra/protobuf/protobuf-2.6.1/src/google/protobuf/stubs/once.cc:79:67: error: invalid conversion from 'google::protobuf::ProtobufOnceType* {aka long int*}' to 'volatile Atomic32* {aka volatile int*}' [-fpermissive]

 from here:

 http://victory.netbsd.org/pkgsrc/packages/reports/2020Q4/evbarm6-9.0/20210309.2229/mysql-server-5.7.32/build.log
 http://victory.netbsd.org/pkgsrc/packages/reports/2020Q4/evbarm7-9.0/20210309.1320/mysql-server-5.7.32/build.log

 looks like a 32-bit cleanliness problem. I wonder why it can't use an
 external protobuf, too.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.