From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42418 invoked by alias); 21 Apr 2015 07:38:08 -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 42409 invoked by uid 89); 21 Apr 2015 07:38:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Apr 2015 07:38:06 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id EDAE5A80969; Tue, 21 Apr 2015 09:38:03 +0200 (CEST) Date: Tue, 21 Apr 2015 07:38:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: basename conflicting definitions Message-ID: <20150421073803.GV3657@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <5535E0BA.3030800@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aE2Tjr+Wh4rS13mJ" Content-Disposition: inline In-Reply-To: <5535E0BA.3030800@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-04/txt/msg00508.txt.bz2 --aE2Tjr+Wh4rS13mJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1569 Hi Marco, On Apr 21 07:31, Marco Atzeri wrote: > Hi Corinna, > building open-mpi on >=20 > $ uname -svrm > CYGWIN_NT-6.1 2.0.0(0.287/5/3) 2015-04-17 12:08 x86_64 >=20 > I see a conflict from 2 header of >=20 > $ cygcheck -f /usr/include/libgen.h /usr/include/string.h > cygwin-devel-2.0.0-0.7 > cygwin-devel-2.0.0-0.7 >=20 >=20 > configure:59845: gcc -std=3Dgnu99 -c -DNDEBUG -ggdb -O2 -pipe > -Wimplicit-function-declaration -fdebug-prefix-map=3D/pub/devel/openmpi/o= penmpi-1.8.5pre2-1.x86_64/build=3D/usr/src/debug/openmpi-1.8.5pre2-1 -fdebu= g-prefix-map=3D/pub/devel/openmpi/openmpi-1.8.5pre2-1.x86_64/src/openmpi-1.= 8.5pre2=3D/usr/src/debug/openmpi-1.8.5pre2-1 > -finline-functions -fno-strict-aliasing -fexceptions conftest.c >&5 > In file included from conftest.c:429:0: > /usr/include/libgen.h:18:14: error: conflicting types for 'basename' > extern char *basename (char *path); > ^ > In file included from /usr/include/stdio.h:29:0, > from conftest.c:396: > /usr/include/string.h:172:7: note: previous declaration of 'basename' was > here > char *_EXFUN(basename,(const char *)) > ^ That's Yaakov's patch to introduce GNU basename with the different behaviour depending whether you include via libgen.h or via #define _GNU_SOURCE, string,h. Which one is it here? The conflict shouldn't occur, one of them should have been filtered out based on the order. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --aE2Tjr+Wh4rS13mJ Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVNf5bAAoJEPU2Bp2uRE+gelQQAKapMxWGjVHACkjMntlzsk5Z 7DTJXHjMF7MrtG8+xIRrlljk3KDSTpaNdCqZHPg0NhBZgJUVhx3tfgJQKeHs5/2P bz27ciWVEI1nwDGdAJIOpZuyXuNWx2SJlLfcRJ5rvQQ51hMx0m9SFEi3eawaW5/C qTVHTwjjIpmYH7ST4SAEhGpQH7adcVV8GUM0urVnGuH8XenxISFYO2RSzheAcn6C Ic/rDqxDi/r7GVMmSUNfd/W1HXjpd5HMllATuxxhCoMS+g9kCEN5RivftNHUbQHe 3tUzeNpy9IN6cxUnXlhWG//rbMEr42iGLcl3+OXLb7gJFRFQ+T9KvQJFK+BRkdIx FaDFaFTrgis2VQ78fO2RFqS6/dj+Tel6R3KEfsthQ2SFYPUdMORDCxjRlwsv6d0A JAnP8967ps7oWaMsnIlVq0xA83TxZWdhiQtJOA2c1k0YoTotcUaY7ePwAHNmA0T/ qJBJmSYNbVw3dXPl3kDilI2U5KF/EEz6DTsawCLb8yeicFAzfLwe2M1EGd7+U1Pr xbhmXIBe90ywYpGCgqurcInA0F56cEVmP6fMX55r3OG/EW2pENSKvbYkwKiCrYey CdLNPVznVC9pvhfHgWvF4+7JXr3W64TvKjGGsce7FwUSG2oiD476JMe8ahZRVCI1 FxrgmIS5rUaMd/K5QZJS =n9aD -----END PGP SIGNATURE----- --aE2Tjr+Wh4rS13mJ--