delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/23/13:22:43

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4DDA97CC.1090404@redhat.com>
Date: Mon, 23 May 2011 11:22:20 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Error building run2 from source package in win7
References: <20110523171750 DOT GB16755 AT jethro DOT local DOT lan>
In-Reply-To: <20110523171750.GB16755@jethro.local.lan>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enig57C0C207AB482549132EDC37
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 05/23/2011 11:17 AM, David Sastre wrote:
> Hello,
>=20
> This error shows up when trying to build run2-0.4.0-1-src on
>=20
> CYGWIN_NT-6.1 win7 1.7.10s(0.244/5/3) 20110510 19:08:34 i686 Cygwin
>=20
> cc1: warnings being treated as errors
> /usr/src/run2-0.4.0-1-src/run2-0.4.0-1/src/run2-0.4.0/lib/util.c: In func=
tion 'run2_strtol':
> /usr/src/run2-0.4.0-1-src/run2-0.4.0-1/src/run2-0.4.0/lib/util.c:423:3: e=
rror: passing argument 3 of '__assert_func' discards qualifiers from pointe=
r target type
> /usr/include/assert.h:41:6: note: expected 'char *' but argument is of ty=
pe 'const char *'

The signature in assert.h uses 'const char *'; I would have to suspect
that somewhere in your build process you have a stray:

#define const

getting in the way, and that this is thus a bug in the run2 sources and
not in cygwin headers.

--=20
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig57C0C207AB482549132EDC37
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJN2pfMAAoJEKeha0olJ0Nq3tsH/2BW4oxUfjqOnXirGPsWnS7H
1vtHV4KOpSFDm97+mx8iPZ+zeshGWypPc7LdP8L4NbsIa9PHo0426HOz695yBXcu
wLj88i4jhPox6o/FCixuTh3NDzvMPW9BBIESzkcN5Yiu3hN7X3s/xQzGcLK1P/+a
rOk+3J2ADkaMJGZn2ZnXuNmfQFwWf/2tuK6dvKi+aErMn+Hio7DbOH1LpjwSiX+d
0SOqwjuAx86/RSs1JhaGQpOYLO/COZB1HlH+8uLrjOgINSahsulZiOq7bnJgEgZN
6bKJgJkNEdcJBrhAP+ztKK+OrQF0HIADGA9UinnyrBcFET7cmqf20/TgA1/S/qI=
=md5W
-----END PGP SIGNATURE-----

--------------enig57C0C207AB482549132EDC37--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019