delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/21/03:38:32

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=GdYEZ9Hhk51+cj4hTMQNHKw2POwCBBaAk8jFqjoZDzl7qUfa/tCFh
yFEiZSnrSSj9j4o9mSslIR/2uQBbxuvkBHIiGnGxp50KjfRtlJcBoMwLndJuHbg1
8bWEhE17eRMreMz6bOKsx+zbMSk2PIBSbz3RTH1InalObZrJ3vCwfI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=GKg6+2OOKifM2XGfhimuopPMjAs=; b=SB7tcD0NDuQ2HIsclIOiU5EZlRXa
NmSCLkSruT/hSfQw57l7J8xdOIddRawKJE2ztODI9T1e6Kk7xwTlwagH6HRDyH30
O7NrkMPk9GZ8GX9t5d+7xo/KvaZFe7zilZk1ZzXoHRrRcDhS+2FlFlvk+IQ1kGkD
ahGMoRj2SKLqnMY=
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
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
Date: Tue, 21 Apr 2015 09:38:03 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: basename conflicting definitions
Message-ID: <20150421073803.GV3657@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5535E0BA DOT 3030800 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <5535E0BA.3030800@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--aE2Tjr+Wh4rS13mJ
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

-----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--

- Raw text -


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