From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 1FBA5385781D for ; Sat, 15 May 2021 06:02:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1FBA5385781D Received: by mail-ej1-x631.google.com with SMTP id n2so1649881ejy.7 for ; Fri, 14 May 2021 23:02:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sPbfCshmww7HJdWYMyXZsICEPdtKwyFdbGq4jESWFjQ=; b=d1NRtmFuvjEAaVOTc/Ja2ldujVc8ZO4eAYuTobVmYQNxHcFTwY7eRTevG8qUAhj0NA +zB4cE1PnET8cr173q6EmtZqtlnmuXejU+OssbMpX873pLQyNHT+e7abpRKenlQHRwc9 g6c2sLKemXP/fGQ0FHLEPRDr/GML8FjWt9BOYhXMdsdzoMCdKL0qNkgkjn6EQLrqD7MO lWA8J6kolo8R+iiKfDkDbMx1+seOFltBOQHfNYOwUTWmqcpAXh9Lmv6ujZxASGvI5AV7 +63P8NYPOn5isEsS0T7maONOByN6zCftdYFH2DzKInqK//OKYWT7GBYyt/D++VBeBKCb arig== X-Gm-Message-State: AOAM5307ngv6V1AW5FK5CwFwm3sao3z0IPVcqMSoKqEUlJN2cZyo7Efv 8kHVnFM94ITcoSB5FT7Kr8AaxF6rTofULA== X-Google-Smtp-Source: ABdhPJzdK4h9BzfznCLbGKBj7kqK5udnEclJOc1dPEJVsq0B2nRexlvKjV3YHgypqLRGpd3k2oFyHA== X-Received: by 2002:a17:906:c0c6:: with SMTP id bn6mr50590539ejb.436.1621058519244; Fri, 14 May 2021 23:01:59 -0700 (PDT) Received: from ?IPv6:2003:cc:9f04:e3af:1dc5:91d8:64ae:fcee? (p200300cc9f04e3af1dc591d864aefcee.dip0.t-ipconnect.de. [2003:cc:9f04:e3af:1dc5:91d8:64ae:fcee]) by smtp.gmail.com with ESMTPSA id k20sm3188663eja.10.2021.05.14.23.01.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 May 2021 23:01:58 -0700 (PDT) Subject: Re: cygport i686/x86 library build undefined type in sys/stat.h To: cygwin@cygwin.com References: <08857c84-dbfe-8bf4-f7f8-40f64a3edda0@SystematicSw.ab.ca> From: Marco Atzeri Message-ID: <3b055003-0f63-42d4-b196-fd59a0b682ae@gmail.com> Date: Sat, 15 May 2021 08:01:59 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <08857c84-dbfe-8bf4-f7f8-40f64a3edda0@SystematicSw.ab.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.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: , X-List-Received-Date: Sat, 15 May 2021 06:02:01 -0000 On 15.05.2021 06:16, Brian Inglis wrote: > Trying to build latest libssh2 1.9.0 using cygport, works under x86_64, > but under i686/x86 fails with: > > In file included from */usr/i686-pc-cygwin/include/sys/stat.h*:22, >                  from ...: > /usr/include/cygwin/stat.h:27:3: error: unknown type name ‘timestruc_t’ >    27 |   timestruc_t   st_atim; >       |   ^~~~~~~~~~~ > > The equivalent include path to */usr/i686-pc-cygwin/include/sys/stat.h* > does not exist under 64 bit as /usr/x86_64-pc-cygwin/include, > and cygcheck -f does not come up with a hit. > It is defined under: /usr/include/machine/types.h #ifndef __timestruc_t_defined #define __timestruc_t_defined typedef struct timespec timestruc_t; #endif /*__timestruc_t_defined*/ check that the is included $ cat prova.c #include int main(){ timestruc_t abstime; } $ gcc -c prova.c $ ls -l prova.o -rw-r--r-- 1 Marco Kein 656 May 15 07:59 prova.o