delorie.com/archives/browse.cgi | search |
DMARC-Filter: | OpenDMARC Filter v1.4.2 delorie.com 5172TUVC2602377 |
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 5172TUVC2602377 |
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=PPq4MOto | |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 4C3ED385843F |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1738895368; | |
bh=qcl8JfAF4rKTavajUDZQJVWEXXui1IYdjFEs0qMOyGY=; | |
h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: | |
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: | |
From:Reply-To:From; | |
b=PPq4MOtoF58ymWyUMewtGsbcf/6tY6v99U85C87rIOu4+Elll+Xsy66OZK9RQGDbE | |
JO1hknc803ZOejENEii7ChPnQdKCX03CdEzgC3e2fMZG0D41otSvQzIGc4edVsL+77 | |
3atz6+FS+koktcbmGXYr5f+8c2sxoeAYY+pbz9iA= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.2 sourceware.org 955953858CD1 |
ARC-Filter: | OpenARC Filter v1.0.0 sourceware.org 955953858CD1 |
ARC-Seal: | i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738895279; cv=none; |
b=rWJIGEgjmtLpMWf9U1XKjJkQ4e7W6o4yt2xI9NN2olG6NhzsusB2946pPTWCDridWq7yylNzC7KUC9peryHtA6v6FFgppr0pcQXGA2ceNtA0D9uyU6bqcyM2at1b6227N9ch7TE0HfH40xHDMLMhDA+AM8zUfMg5YNV5M0Te+UA= | |
ARC-Message-Signature: | i=1; a=rsa-sha256; d=sourceware.org; s=key; |
t=1738895279; c=relaxed/simple; | |
bh=+0iyBxCrxmChEjrwoZkLnXhoT+3lQGuycBdtTEp7UOI=; | |
h=Message-ID:Date:MIME-Version:Subject:To:From; | |
b=eQF+wZ43TgG4BplnRMbuSPvTO8jEm50MkdK5KEyTXDjp7P0CH4ZE3jtxoI1Mq1cSwnTxroUvWdlmo1/MxpAg+IT2prmpfCYb/yJALuH92cm5ASp7sqSRU6RBu9IXZ7C9g7u7td9HFCxjo5n7iVEzWuaOn6BneoLqSTMgNOyKz5s= | |
ARC-Authentication-Results: | i=1; server2.sourceware.org |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 955953858CD1 |
Message-ID: | <e817d642-da7d-471d-83b3-0a5294fb4f4c@maxrnd.com> |
Date: | Thu, 6 Feb 2025 18:28:04 -0800 |
MIME-Version: | 1.0 |
User-Agent: | Mozilla Thunderbird |
Subject: | Re: building util-linux-2.40.2 |
To: | Jeremy Drake <cygwin AT jdrake DOT com> |
Cc: | cygwin AT cygwin DOT com |
References: | <CANnL4pNH+fE6RKVhORWw=sE=-x4Lx5SNRhb9GYW--eR41AKNLw AT mail DOT gmail DOT com> |
<acbd239a-a274-40c5-891f-df196a087b29 AT maxrnd DOT com> | |
<8d694036-b5d8-425e-85b3-cbe43a93f0ba AT maxrnd DOT com> | |
<723129f0-93d7-bad1-d845-2cfc04379672 AT jdrake DOT com> | |
In-Reply-To: | <723129f0-93d7-bad1-d845-2cfc04379672@jdrake.com> |
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: | Mark Geisert via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | Mark Geisert <mark AT maxrnd DOT com> |
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> |
Hi Jeremy, On 2/6/2025 1:22 PM, Jeremy Drake via Cygwin wrote: > We were attempting to build util-linux 2.40.2 for MSYS2, based on the > source package of util-linux-2.40.2-2 from Cygwin [1]. We were scratching > our heads as to why it wasn't building tasksel for us, when it did in your > package. I evenutally saw in the cygport that it tests for sys/syscall.h > and warns if it is not present. I could not find a package that provides > this header. Can you explain where it comes from, so that we can also > build util-linux? (For now, I added a couple extra patches to > configure.ac to make it look for functions instead of syscall numbers [2]) > > 1: https://github.com/msys2/MSYS2-packages/pull/5194 > 2: > https://github.com/msys2/MSYS2-packages/compare/bbc219480a47d1f0ab87b99302627815390f4ee1..e00b44ad67481a8ad1c490d2b5475d3500dac436 Apologies for the inconvenience. It's an unsettled matter if/whether Cygwin should supply a sys/syscall.h. I cobbled together something to allow the util-linux, and something else maybe FUSE-related, to complete build without angst. The following script creates on stdout something that works. Direct stdout to /usr/include/sys/syscall.h if you dare ;-). HTH, ..mark --------------------------- #!/bin/sh # # gen-syscall-h.sh # Generates #defines for a plausible Cygwin <sys/syscall.h> on stdout # 2023/12/30 Original version by Mark A. Geisert <mark AT maxrnd DOT com> # # This currently works by creating a list of all symbols exported # by libcygwin.a and subtracting out the symbols also exported # by libm.a. After that, a symbol is kept only if it starts with # a lowercase letter and does not start with "cygwin_" or "main". # TMPF=/tmp/.$$. trap 'rm -f $TMPF' EXIT nm /usr/lib/libm.a | awk '/ T [a-z]/ {print $3}' | sort > $TMPF nm /usr/lib/libcygwin.a | awk '/ T [a-z]/ {print $3}' | \ grep -vE '^cygwin_|^main' | sort | \ diff --suppress-common-lines -y - $TMPF | \ awk '/^[a-z]/ {printf "#define SYS_%s %d\n", $1, ++RECNO}' exit $? -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |