X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47A893858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1676908927; bh=1yHteoHgyXvmj2hbLb23Ww6GHBROFCDXIUoMmpKRtrU=; h=Date:To:Cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=ABavBjjihh1LHYC3TcxgWbEdmQMj61Z3g4Ix8WpmwGz74F8Pylyvk9qtyKN7i1MgT qJ3yhM4f59dm4CcAMkK1PddZueIoYP7LSkSI3v9N/QEpzXPpawGg4JXU5fXXHxPOEj CC09HhyR46S14yGqrBD+j9tKFMuiGfazar7NGDPE= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1E79F3858D20 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 31KG1FiI028888 X-Nifty-SrcIP: [220.150.135.41] Date: Tue, 21 Feb 2023 01:01:15 +0900 To: Cc: "Carlo B." Subject: Re: Bug in CYGWIN's UUID library: GUID_NULL not found. Message-Id: <20230221010115.fd534a355dfcb53bd95c0a57@nifty.ne.jp> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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 > #include > #include > #include > > 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 -- 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