X-Original-To: alpine-user@lists.alpinelinux.org Received: from mx1.tetrasec.net (mx1.tetrasec.net [74.117.190.25]) by lists.alpinelinux.org (Postfix) with ESMTP id B6AAFF855AC for ; Thu, 4 Jul 2019 15:24:06 +0000 (UTC) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id EE1189E2842; Thu, 4 Jul 2019 15:24:05 +0000 (UTC) Received: from ncopa-desktop.copa.dup.pw (67.63.200.37.customer.cdi.no [37.200.63.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: alpine@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id 28ECD9E00E7; Thu, 4 Jul 2019 15:24:04 +0000 (UTC) Date: Thu, 4 Jul 2019 17:23:57 +0200 From: Natanael Copa To: Kouam Josiane Cc: alpine-user@lists.alpinelinux.org Subject: Re: [alpine-user] error: '__va_copy' was not declared in this scope Message-ID: <20190704172357.5a1810a4@ncopa-desktop.copa.dup.pw> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-alpine-linux-musl) X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 4 Jul 2019 12:16:52 +0200 Kouam Josiane wrote: > Hello everyone, >=20 > I'm new in alpine linux and i want to compile an c++ project i've well > compiled in ubuntu linux using gcc v5.4.0. >=20 > I'm using alpine 6.4.0 version of gcc and g++ compiler. >=20 > I got this error and many other syntax error. I don't know if there is a > corresponding version of gcc i should use in this case. ... > /root/RAMCloud/src/Common.cc:65:25: error: '__va_copy' was not declared in > this scope > __va_copy(aq, ap); > ^ Looks like the Common.cc is using an internal GNU libc identifier (__va_cop= y). =46rom http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_02= .html > With the exception of identifiers beginning with the prefix POSIX, all > identifiers that begin with an underscore and either an uppercase > letter or another underscore are always reserved for any use by the > implementation. This means that __va_copy is an idetifer for the GNU libc implementation and can not be expected to work on any other implementation (such as musl libc). In other words: It is a bug in the application you are trying to build. > /root/RAMCloud/src/Common.cc: In function 'uint64_t > RAMCloud::_generateRandom()': > /root/RAMCloud/src/Common.cc:90:21: error: 'random_data' does not name a > type > static __thread random_data buf; > ^~~~~~~~~~~ > /root/RAMCloud/src/Common.cc:103:51: error: 'buf' was not declared in this > scope > initstate_r(seed, statebuf, STATE_BYTES, &buf); > ^~~ > /root/RAMCloud/src/Common.cc:103:54: error: 'initstate_r' was not declared > in this scope > initstate_r(seed, statebuf, STATE_BYTES, &buf); > ^ > /root/RAMCloud/src/Common.cc:110:15: error: 'buf' was not declared in this > scope > random_r(&buf, &lo); > ^~~ > /root/RAMCloud/src/Common.cc:110:23: error: 'random_r' was not declared in > this scope > random_r(&buf, &lo); > ^ The other errors may be related or there is some other bug int the app. You should report it upstream to the project you are trying to build. -nc --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---