delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/02/20/11:13:46

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A8293858D37
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1676909586;
bh=+fLJSt5CQhn8dvy5mqG2OxVPwbuW9zj54pYtKJ1pvaM=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=tXLMzLCG6s+4oY6R8TYh8aFh7+nV2wocUE2vLazYYqeiSjWkHArWyK+JfTJ+IxC9Y
1E7I/w8F2lnQ9fwTmBOooyI4n7fvRAM0CiX9/ibquwFyXEvVDxMr/D/xtwCRAXasHv
xgqgq2au8gwSbglUlQLdbJtvx1kyBtaQuhG/yy0A=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AB3FC3858D1E
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=77F4J73e4PnHMG9TinJs8X0IgaWArONyuWGP+rp3YBk=;
b=mfM1zemYJrf6q7Ma/1Y+LWH8ORcNZaCT+METJTIOH9vKlrN9Kx3/yxOJ96poh10dPn
4Ld8z2thT4Rxgm+OUZLaaMtvw46UyA7dmOuEqd6PgYDkU+SoCX1VusJICwWa8TuQp+6T
Fd2ETSDHBb0xO7vWp9YumXLVx8n7pblCU+5DtPh99WLBdW1feky+mKlcBvR8lLWFitO4
psgEBgBCokhq6xJ5XS+XYW0QMCSh9cMhHdsxsyiG5WO+z/lxsj8JqWw/TRzYhMz+xsSn
1J1jc13vad5QOCmJB35CCPsjpjFUWGKxjwpphbRkjNTCVfFPlMXDoc9+K9zbJZiVka1s
4/Cw==
X-Gm-Message-State: AO0yUKUnn/CEgy6kj3DD7bCDlEXnu4C4n72SiG/U1SOg7hN55BDNgCXR
dnPlfgRs9PilZbKNfUcoZE6CNJGVHf+PcNEHsMkUXHYH
X-Google-Smtp-Source: AK7set8Qs72PUgr1+V+6IKZIJ4ntG9G44HYlDkgzpakSmXLOIPAknoz7g1EKp58T5cobWneUnocphNZyC1jZUbA3oi4=
X-Received: by 2002:adf:e391:0:b0:2c5:9e00:163c with SMTP id
e17-20020adfe391000000b002c59e00163cmr296803wrm.326.1676909568472; Mon, 20
Feb 2023 08:12:48 -0800 (PST)
MIME-Version: 1.0
References: <CADt95757Eqp3z7rVD9s0nyjYKri52+G8LQ4R_afu7Hu7piafLg AT mail DOT gmail DOT com>
<20230221010115 DOT fd534a355dfcb53bd95c0a57 AT nifty DOT ne DOT jp>
In-Reply-To: <20230221010115.fd534a355dfcb53bd95c0a57@nifty.ne.jp>
Date: Mon, 20 Feb 2023 17:12:37 +0100
Message-ID: <CADt9575vP5qQbbviGJ8T0mqsHwJE446N9RLXHMfROECvcx+X+g@mail.gmail.com>
Subject: Re: Bug in CYGWIN's UUID library: GUID_NULL not found.
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: "Carlo B. via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Carlo B." <carlo DOT bramini AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

I see... problem solved.
Thank you very much.
Sincerely,

Carlo Bramini.

Il giorno lun 20 feb 2023 alle ore 17:01 Takashi Yano
<takashi DOT yano AT nifty DOT ne DOT jp> ha scritto:
>
> On Mon, 20 Feb 2023 16:48:50 +0100
> "Carlo B. wrote:
> > Hello,
> > I think that there is a bug into the uuid library, the one to be used
> > with the W32API for the POSIX core.
> > Please have a look to the following tiny test code:
> >
> > //====================
> > #include <windows.h>
> > #include <initguid.h>
> > #include <ks.h>
> > #include <stdio.h>
> >
> > int main()
> > {
> >     printf("GUID_NULL=\"%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X\"\n",
> >         GUID_NULL.Data1,
> >         GUID_NULL.Data2, GUID_NULL.Data3,
> >         GUID_NULL.Data4[0], GUID_NULL.Data4[1],
> >         GUID_NULL.Data4[2], GUID_NULL.Data4[3],
> >         GUID_NULL.Data4[4], GUID_NULL.Data4[5],
> >         GUID_NULL.Data4[6], GUID_NULL.Data4[7]
> >     );
> >
> >     return 0;
> > }
> > //====================
> >
> > Compiling it with x86_64-pc-cygwin or i686-pc-cygwin does not work:
> >
> > $ gcc e.c -o e.exe -luuid
> > /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld:
> > /tmp/ccyJK3d9.o:e.c:(.rdata$.refptr.GUID_NULL[.refptr.GUID_NULL]+0x0):
> > undefined reference to `GUID_NULL'
> > collect2: error: ld returned 1 exit status
>
> You linked /usr/lib/libuuid.dll.a rather than /usr/lib/w32api/libuuid.a.
> You might want: gcc e.c -o e.exe -L/usr/lib/w32api -luuid
>
> --
> Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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