delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/04/09/16:34:09

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 539KY9Hu2904795
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 539KY9Hu2904795
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=UNISJnt8
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 91DF8386EC73
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1744230847;
bh=7GrcIDh1gAmt8+HnsI7k84sGs+e92CQhBqeVnZFgvhI=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=UNISJnt8aUEeuzLzpenGMWzCnx+CMK7ma2KGMKTrTerZe/fR4kKHdOiyxGkfSvqwt
zR/jcETKpPoTLFL2v1p/lEcb6TV7ij6Qxq5jqPpCZgFAaDa52/+n0W2iybj4nRlwjp
vAzuHQ9IEYnrYaWMqsz4XZ4PtDLZG+jiGON3zpb0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A44F43845871
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A44F43845871
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744230787; cv=none;
b=Mc9dJUNvZEou0fHewJkn/kPgaODe3nZXLagSNfqNP2j7aU6RbLAWhDI1WGVAhXHTf3Fz8CNETnpJj7wvcy1JmmplJ2iCN3ZoOEttdvqUXt5n/xFnDmRvWdILDxrxAfJHD470DddvG/iVEKNYk4vpyRFzoq/LgW1wj0ppnFQcKng=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1744230787; c=relaxed/simple;
bh=yDYOg/RZ5hqI2NojBYFR0OfT9Qan8QAZF3lPjHggsbQ=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=ivTkTuKnLNI8CJHjwn4pPg7SHBChahCbrLF7gWHp5kfExJki91WobFiNa2Io/TO7TeObUfutGql6V82ys/lNF+iv3lmsXS8GFIk0x1gJHbGtJ+Ali8rQkn0L5CdUbnojgnHo5KfBnDpiJBQAWXgNiCzc3sUu/AhrOIiJ1R3pPEs=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A44F43845871
Message-ID: <933ee03d-d786-4edc-b0de-6d56cf995268@SystematicSW.ab.ca>
Date: Wed, 9 Apr 2025 14:33:04 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Latest c-ares build compile failure from sys/unistd.h
To: cygwin AT cygwin DOT com
References: <f34666fe-f8da-4364-a5e7-b2328b2f1c80 AT SystematicSW DOT ab DOT ca>
Organization: Systematic Software
In-Reply-To: <f34666fe-f8da-4364-a5e7-b2328b2f1c80@SystematicSW.ab.ca>
X-Rspamd-Server: rspamout02
X-Rspamd-Queue-Id: E55F520024
X-Stat-Signature: yw486bms51csuesikx5abwjbeoi35e7n
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX18i71SQr8SSf8Fnreijt21OJFvEvDd4gsM=
X-HE-Tag: 1744230785-119234
X-HE-Meta: U2FsdGVkX1+ze1KVQQueikemEMIDgDX6Tp7SeTgokij7q/h3NqFqdQIt0ATezA66ddYCE3AK31z1PNxrE49JlRT6EgHn2OpZnVVaQ4fdTaGcPhUmNPjZrNRB8FWIopgLJdJRcAzglGsinWh2Ek0QPrp7+oRNukvSKTXFZYe4HhAXKLHRJ2Z9G9pkaryJ8mpsZn3couDri/UraSRQ5xkZ4zfHemDAedoDiFq86/whbmL+cmRBS2mTnLk+qBgKOhWLL4iuEaT4yRL/xSgTXZDI2y6rEXg5XFPfzung4XUULK4xyM/j7m4gmZW15iFpgWyTDfA1fpf4BYOhVpeDxmdo0AyqQY+keKvw
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 539KY9Hu2904795

On 2025-04-09 13:49, Brian Inglis via Cygwin wrote:
> Hi folks,
> 
> Latest c-ares build failing with gcc 12.4 and Cygwin 3.6.0 header:
> 
> $ uname -srvmo
> CYGWIN_NT-10.0-19045 3.6.0-1.x86_64 2025-03-18 17:01 UTC x86_64 Cygwin
> $ gcc --version
> gcc (GCC) 12.4.0
> Copyright (C) 2022 Free Software Foundation, Inc.
> ...
> 
> /usr/include/sys/unistd.h:218:14: error: expected ';' before 'void'
>    218 | static inline void setproctitle_init (int _c, char *_a[], char *_e[]) {}
>        |              ^~~~~
>        |              ;
> 
> $ ll -gG /usr/include/sys/unistd.h
> -rw-r--r-- 1 23K Mar 18 11:09 /usr/include/sys/unistd.h
> ...
> 215     #if defined(__CYGWIN__) && __BSD_VISIBLE
> 216     /* Stub for Linux libbsd compatibility. */
> 217     #define initsetproctitle(c, a, e) setproctitle_init((c), (a), (e))
> 218     static inline void setproctitle_init (int _c, char *_a[], char *_e[]) {}
> 219
> 220     void setproctitle (const char *, ...)
> 221                        _ATTRIBUTE ((__format__ (__printf__, 1, 2)));
> 222     #endif
> ...
> 
> includes latest fix to definition; also tried with original definition.
> 
> Not seeing any obvious issues with storage class and type specifiers mentioned.
> 
> For now, build working with !defined(__CYGWIN__) hack.
> 
> No problem with other builds! Ideas welcome ;^>

Doing some more `make`-ing in that directory with permutations of specifiers, 
complaint comes after `inline`; seems like it does not like `inline` anywhere in 
that line, although `__inline__` works just fine!

Perhaps a patch is warranted, possibly conditional on GCC <= 12?

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

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