From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98728 invoked by alias); 8 Nov 2016 15:17:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 98639 invoked by uid 89); 8 Nov 2016 15:17:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.5 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=DOT, Ken, convincing, portable X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Nov 2016 15:17:06 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 995BB71E3F91C for ; Tue, 8 Nov 2016 16:17:02 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id E99E65E01E6 for ; Tue, 8 Nov 2016 16:17:01 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id D898FA8041D; Tue, 8 Nov 2016 16:17:01 +0100 (CET) Date: Tue, 08 Nov 2016 15:17:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: sys/cdefs.h or maybe gcc build issue Message-ID: <20161108151701.GB31855@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <57cbf5e2-f37b-ae50-f65c-dd6782481962@gmail.com> <6ecdfff0-9f53-9cd6-9934-6237c153ea7b@cornell.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rwEMma7ioTxnRzrJ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2016-11/txt/msg00069.txt.bz2 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1651 On Nov 1 22:29, cyg Simple wrote: > On 11/1/2016 3:42 PM, Ken Brown wrote: > > On 10/30/2016 2:23 PM, cyg Simple wrote: > >> The below sample code will give a warning that visibility isn't > >> supported in this configuration. Either the GCC build is incorrect or > >> the sys/cdefs.h needs to be modified to define __hidden to empty. > >> > >> /********************************************/ > >> #include > >> #include > >> > >> __hidden void hello (char * str) { > >> printf("%s %s\n", "Hello", str); > >> } > >> > >> int main (int argc, char ** argv) { > >> hello("cruel world!"); > >> } > >> /********************************************/ > >=20 > > If you're trying to write portable code, why would you assume that > > __hidden is defined? It's not defined in glibc, for example, and your > > sample program doesn't compile on Linux: > >=20 > > $ gcc test.c > > test.c:4: error: expected =E2=80=98=3D=E2=80=99, =E2=80=98,=E2=80=99, = =E2=80=98;=E2=80=99, =E2=80=98asm=E2=80=99 or =E2=80=98__attribute__=E2=80= =99 before > > =E2=80=98void=E2=80=99 > >=20 > > Do you have a real use case where this issue came up? The sample isn't > > very convincing as it stands. >=20 > I don't in the real case sense but in Cygwin __hidden is defined. And > obviously it is incorrectly defined in _YOUR_ Linux. If the visibility > attribute isn't supported by the GCC compiler these helper macros > shouldn't be defined as if they were. Fixed in the repo. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYIextAAoJEPU2Bp2uRE+gJE4QAJeIZZw3o3bkTa7e+Htxlf4v jNAg454Ny3kvh8za3lc3VZAiy5HPDCWzTkjAGFLSNBaAhKcP+W2vMK13gitZBBDu itM9MvW8k3GbVkthJPEfLLaqabx25mO0vmckhdKXh9+GlZ4olSGsIdTLiYscDrXW QZw8HtO3gnFvqDHhE107AeTzw51Mtu80g4PTZPaxq7pDwTTrIccbX4pU5Bsk+1vV mfJcw3m9XAQqAdvhQYLrVx1hwwELHvKx3J7yFNkVJPWiq3vOIZx1SQ8huHOccW5s agag6KNS3Rj0bky16txFZSk7JEF0rY5QSUn42JBmuW+zqx0TZGIVqzifdUKhkNth 5isWapv3SfS/n9dxATDTvUlqep7iCTs8WPNOI6QdgVhJhmMBVZBt8ts9jpTrGM75 odhB1+DKPyVSEX1wgjaJ2DIq3320JEgHXaOYW1IzblMac4afNUixn8OD8tf9xEcw zHBRk54x8IyrJbRSfTYQ6OPhEvSrocohyT9n6k9WVv15EPOfTjq9O7NB2VbtJHTO ngq0V0X6b8H5g2jOH01WDfGDyjgfogsogMRS6Wfz5ct5RboP3/nNR1OvPNjL+jtO 9rKgFUi5ey78Oc3SdB9q+enayEyZgDbJfWEZbWIIbGGUc24AIyFyEymlSrgCGDS6 BE8T/XD3sA6tq/pA3BHv =B/AN -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ--