GNU bug report logs - #76706
[PATCH] build: fix compile errors on platforms without getopt.h

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: sed; Reported by: Collin Funk <collin.funk1@HIDDEN>; Keywords: patch; dated Mon, 3 Mar 2025 06:34:01 UTC; Maintainer for sed is bug-sed@HIDDEN.

Message received at 76706 <at> debbugs.gnu.org:


Received: (at 76706) by debbugs.gnu.org; 3 Mar 2025 19:53:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 03 14:53:09 2025
Received: from localhost ([127.0.0.1]:52211 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tpBqf-0007XO-7t
	for submit <at> debbugs.gnu.org; Mon, 03 Mar 2025 14:53:09 -0500
Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:57634)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <collin.funk1@HIDDEN>)
 id 1tpBqU-0007WL-Ng
 for 76706 <at> debbugs.gnu.org; Mon, 03 Mar 2025 14:52:59 -0500
Received: by mail-pl1-x631.google.com with SMTP id
 d9443c01a7336-22398e09e39so33279125ad.3
 for <76706 <at> debbugs.gnu.org>; Mon, 03 Mar 2025 11:52:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1741031571; x=1741636371; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=DtzuCCzk+fDQRfzXSBJpwZQD8zfi6b+Fmp05pgCqHVY=;
 b=CpIAR7DeKZRdeZ61ZyZpr4aVX/ExC2yDk3pA9v1lcUDB9I/WiK3WKQqRgFXZiy+B0T
 5WMfVn3sk2JGkX9g3U5fbKRAD0q1EW1hF9oTK2JymR3OIC6a72Z2jd6WxBX/6y5WRooF
 qdW+WIEgO+cno24wWaUKA6Agouc79vxDNDVcgSPn1wXaWsQu7KbzIR/5oRAJjAtOvVzr
 W4afY/GHm5ACixiVH497YSR9H1CO37BkgixJSVn62wJRItz7I/o0F/3njWDRLFgf1g9o
 Q6NzY4MXSAOatlMsOsxWuMks2p0C+1Dh5WH/cyepfelB+PRdWNtrX9Zck5XlxZLz5QvL
 02SQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1741031571; x=1741636371;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=DtzuCCzk+fDQRfzXSBJpwZQD8zfi6b+Fmp05pgCqHVY=;
 b=m0VlP70uGsdesY+ArhaFAAtO2vy6skvFW5ERrprB3V1TEcDiGBALgfsXVsAX/wKzWN
 zSEkMwlZlvxeEXj+kYKY8h1tPxhXo94ZoU4xhxbyHB1/NYi6gM8fQSBFBJFgyD5zPHh3
 w2BjTDa4DDG+AekEcLylYza/n5Y3vIr9NH8oSVq30rcFbR1mslJmfsPg42SIq6PKTASt
 DQefhcCYNyhOGfpjQhHXhMBLn/7SnPpBtQ5IHVC2sUuxHY3j5fPjgv00MbKaRxImoyBz
 xBumjzAhlCxXSDMziBxxEYc1Xmguw8S7CD9V52IUNuv6yuBfc5Gy6XY2t+ko2cS2Jjx4
 CcDQ==
X-Gm-Message-State: AOJu0Ywwc7qhgWUfMlK33sERaOSDva7p8M+HQGYBBwfRdv+iKN+JAMX4
 PK3aHLlo5zsMw2fxmgaoxf0Im6rcshoVNGTF2+zEjuAQF8OvQAcoe1lt4QfN
X-Gm-Gg: ASbGncvCoezjcqHG1ygNHgzF7QMrRgIOd9X4AOzRauYtk4pKV2UnFR7rLmiCnipDy1n
 wqLmBmYlD0hNAD+LPD1MbYzPCQURcyaNB87EWtn5iY3np5bO43j7YCBaLVQiaJMkt7L91qX1W/X
 Q/UDnmRLgfR8RLF8cvQ7QAUMYtup/QGvIP2Qf3pfTtyZEI/JcEidQwv+SIB1xxZAhCq4kFpkyre
 LQ3cN4K4Uo4LXpByvQzE3hUcbx3fx+owQ1wxPOMRbdUWPmbk5lLtlGJn4+EKJ70rgpnPdzmZ93E
 UDUv0r8bgDVUt9oDWFkqzCorqmQoFq4P3UTOTfKgFHFASZN76W7HRxcQHTop6eCscO5w7vvQkQ=
 =
X-Google-Smtp-Source: AGHT+IFfjNypmV42sKnnEVscB4PMnKIt7CNZDUd6UGkutG8GLAzLMShSKAgqfDjAbmtbeQFn24/eoA==
X-Received: by 2002:a17:902:f68f:b0:21f:89e5:272d with SMTP id
 d9443c01a7336-22368fa541amr239047995ad.10.1741031571461; 
 Mon, 03 Mar 2025 11:52:51 -0800 (PST)
Received: from fedora (c-73-93-224-2.hsd1.ca.comcast.net. [73.93.224.2])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-223504db7b1sm81686045ad.165.2025.03.03.11.52.50
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 03 Mar 2025 11:52:50 -0800 (PST)
From: Collin Funk <collin.funk1@HIDDEN>
To: Jim Meyering <jim@HIDDEN>
Subject: Re: bug#76706: [PATCH] build: fix compile errors on platforms
 without getopt.h
In-Reply-To: <CA+8g5KF5=Vz7ZsT+CqWPP7WiFjS-Oj9=fbnxf=NgZ7p2kcqVow@HIDDEN>
References: <87h64aipyn.fsf@HIDDEN>
 <CA+8g5KF5=Vz7ZsT+CqWPP7WiFjS-Oj9=fbnxf=NgZ7p2kcqVow@HIDDEN>
Date: Mon, 03 Mar 2025 11:52:49 -0800
Message-ID: <87bjuhnb72.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 76706
Cc: 76706 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hi Jim,

Jim Meyering <jim@HIDDEN> writes:

> Thank you. Applied and pushed.

Thanks! But I think you forgot to push.

Collin




Information forwarded to bug-sed@HIDDEN:
bug#76706; Package sed. Full text available.

Message received at 76706 <at> debbugs.gnu.org:


Received: (at 76706) by debbugs.gnu.org; 3 Mar 2025 17:37:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 03 12:37:55 2025
Received: from localhost ([127.0.0.1]:51219 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tp9jm-0006KU-VL
	for submit <at> debbugs.gnu.org; Mon, 03 Mar 2025 12:37:55 -0500
Received: from mail-pj1-f48.google.com ([209.85.216.48]:43206)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <meyering@HIDDEN>)
 id 1tp9jk-0006Jm-6p
 for 76706 <at> debbugs.gnu.org; Mon, 03 Mar 2025 12:37:52 -0500
Received: by mail-pj1-f48.google.com with SMTP id
 98e67ed59e1d1-2fe96dd93b4so8641526a91.0
 for <76706 <at> debbugs.gnu.org>; Mon, 03 Mar 2025 09:37:52 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1741023465; x=1741628265;
 h=content-transfer-encoding:cc: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=fKRz5fiMuqw7PfI/wH9Az9srsyr6+zU1O4YOP3eL3KY=;
 b=coLZAvVLLyvdyIacThL4yyielRHma7P+ofa23iZNKfGqzEvgs+1b9L9J4sqDy9VY9x
 OcMJO2OM5KUXuqmjP70//uQAMHZVeWr2RNtfZx5so0bhqlHDoQ50jQ1yDLSP/HsWW03X
 J3cveTzdEpdENUjMOzhIsNrlGcLn+sMc5CG47z1/MuSrdenkF/DLy3lcgj8e+U7eviBf
 r5CnSJKfcUXBh9AxqX22x/5u2nqTKgpy+Dsqq/F0IhK5Jfk4LenRwcOVplmvqZX/ZRPF
 RsESw9Wy+HC/F8kLjxGUQ2GWwaCEvOW23EONpEdIz4ulEAhSwKyaSnXIme4nan2uWXv6
 Om3Q==
X-Gm-Message-State: AOJu0YzpkXXioKe2YOQrBkv17wH/ZfcNpYLTgaFK1SG1o/3uWrPAEgvW
 5Eyk8E8/ruZcgWbF4ZbIhYO9XCYMDKcx4YC4Dk3eCkft6CC8N3eeb29XlK/N5XPwtIpTdCeWPDT
 NYcF78H7GGIMN1OhMk5QMi+uufYg=
X-Gm-Gg: ASbGncuh1Syd8iiorNXehyQ+li6pTjhW40JaqD10WWhnAR8VhsaKGuXfZoLiusojYrV
 EkLTmQxRL83cutG1rCfMv/xAmQmdCoY8h7dCJei5NUdXTVY3shDrgV3MKgi1Bwj+LSOEbDrqpl9
 W48ZAqu545J4bJ1wwyxM5jYgJfVcwg
X-Google-Smtp-Source: AGHT+IHidZHF2SvFvXDh75f6mqjywpzDrn9Qs8ltHoiKMO7AYUu3AO1DpFRbkvpEn8JLdjZ1245x3fwsXyDUH2O20QI=
X-Received: by 2002:a17:90b:5487:b0:2ef:ad48:7175 with SMTP id
 98e67ed59e1d1-2ff33c22445mr114485a91.15.1741023464036; Mon, 03 Mar 2025
 09:37:44 -0800 (PST)
MIME-Version: 1.0
References: <87h64aipyn.fsf@HIDDEN>
In-Reply-To: <87h64aipyn.fsf@HIDDEN>
From: Jim Meyering <jim@HIDDEN>
Date: Mon, 3 Mar 2025 09:37:29 -0800
X-Gm-Features: AQ5f1JqwGj7hGqrpLqF3Im3Ir2vMMNptlUfvy6-NPtBCK9aFkDUXX-Bvcr7jhGg
Message-ID: <CA+8g5KF5=Vz7ZsT+CqWPP7WiFjS-Oj9=fbnxf=NgZ7p2kcqVow@HIDDEN>
Subject: Re: bug#76706: [PATCH] build: fix compile errors on platforms without
 getopt.h
To: Collin Funk <collin.funk1@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 76706
Cc: 76706 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sun, Mar 2, 2025 at 10:34=E2=80=AFPM Collin Funk <collin.funk1@HIDDEN=
> wrote:
> I found that GNU sed does not compile on platforms with <getopt.h> or
> getopt_long. For example on AIX:
>
>     make[2]: Entering directory '/home/collinfunk/sed-4.9.51-0f74-modifie=
d'
>       CC       sed/sed-sed.o
>     sed/sed.c:20:10: fatal error: getopt.h: No such file or directory
>        20 | #include <getopt.h>
>           |          ^~~~~~~~~~
...
> I have attached a patch that fixes this. I added a note in NEWS since
> the 4.9 was released after that commit so the tarball won't build on
> platforms like AIX.

Hi Colin,
Thank you. Applied and pushed.




Information forwarded to bug-sed@HIDDEN:
bug#76706; Package sed. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Mar 2025 06:33:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 03 01:33:07 2025
Received: from localhost ([127.0.0.1]:43559 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tozMQ-0002J6-UV
	for submit <at> debbugs.gnu.org; Mon, 03 Mar 2025 01:33:07 -0500
Received: from lists.gnu.org ([2001:470:142::17]:32884)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <collin.funk1@HIDDEN>)
 id 1tozMO-0002IM-M3
 for submit <at> debbugs.gnu.org; Mon, 03 Mar 2025 01:33:05 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <collin.funk1@HIDDEN>)
 id 1tozMG-0007as-9G
 for bug-sed@HIDDEN; Mon, 03 Mar 2025 01:32:56 -0500
Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <collin.funk1@HIDDEN>)
 id 1tozME-0003ll-0z
 for bug-sed@HIDDEN; Mon, 03 Mar 2025 01:32:55 -0500
Received: by mail-pl1-x635.google.com with SMTP id
 d9443c01a7336-223a3c035c9so11097135ad.1
 for <bug-sed@HIDDEN>; Sun, 02 Mar 2025 22:32:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1740983571; x=1741588371; darn=gnu.org;
 h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc
 :subject:date:message-id:reply-to;
 bh=iAZ4pJ5hxjT8BcAwZZPH4DY5Y3sKCovtMcZ4F8EZzSs=;
 b=I4uP+ZAxskhhAMIGxXS2To3LeXDTOr2UAU1ujUqwfPbSyNrVGsCexPOfg1ss65JyB1
 /8M3gVWWzLxMtSNnCtcYFE0F+/OQNl1/VxP8JrT9WUD2YsH+6mB5EosTo8R3SZNBYbwa
 KsSpMUYv9c0Jzu35DStm7iFOttcvXSNuj7w9oLZrYuCzpQ288b6gxJr1gc18TykQ1qBX
 PY5S4noKomreV5GSUQfaH4vaZI+pFvzzrhAwdx0wiU8vLEj3wmXA2BbSVt7no5zhUSwx
 GDogJgPMSr4hUq+TiTCI6B7ysefidFq0uOsLRohbwlFHfGDu3+2JmjQdE0Lix72XblqV
 aDvA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740983571; x=1741588371;
 h=mime-version:user-agent:message-id:date:subject:to:from
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=iAZ4pJ5hxjT8BcAwZZPH4DY5Y3sKCovtMcZ4F8EZzSs=;
 b=NgR6whI6dxpQPtX9m1QKEO0+ece4zKvJo3fTv1B9gkEPZBqMNPgF6brpYOfjvxj/y2
 65UQS7B7xTv+h3ehF4tgepHS3aiVpxVrMjBArSJ03w1wp8TQZXzbioKZpyJigFIwOtaC
 RA2aeW/N27CjK+4xBP+3cZHmR0g2Z7KMr6bqUtKuxlvquwT7UCJcSPd2cKIqRFvdc7fv
 uFU+akksZEgVzKwxbL+IveYvq3FsrpN4l39GyYKYpP5Uwit6FKCwcSyIzLbNc1OfQGrp
 qfH6gdfjZfX3oCnt6qqyxnzxihBKUpYMuriq0FSIUO4TT8suUlMsZLxf966m3X0ISVSR
 dNyQ==
X-Gm-Message-State: AOJu0YyF7NS5ZF2CN5BwS5qt1IO5f9b+yYj08+gFagaIqQVL0tTBNvCR
 VF6oReGIxNZhP6J9nO6VxvBK8UJlg9wFOd/OzxmljZotGFws9aw6ftCxJdU0
X-Gm-Gg: ASbGncv8X/cB12DiPt9lWqMQ2/n11F1JKuIEt4FcNaahbruex9XyKOVygsCNXRgS+3t
 jVtOovtb199i89d5HCg+sNqoIUGvelNnwKQdJSiV/uCzzYiNlmXLwCki2aDIf4EK3vXLD0/KpFE
 nR+o8A/fnW/8Rl0P1tqXNFyvc3wLAUM204mbJFQgPgUkoU7Lq7ME7Jxq63HP3GInYetF+lH1Q6+
 a2bKZC479mxfzg94rW3tBs5Q3j7Sx92rZ5gXwd8vej9Cd+Tx7aF5Uk1u/lOdEpSSDcj6HBI+Sp2
 PRzDUYNyuWF7TD7UvXECPz2zMbT7N8WR2pkI34qsUpwLATZLqMXBH5raIOtR3c7zD45fJf5hzA=
 =
X-Google-Smtp-Source: AGHT+IGC/ufIvUP/lNVp4NS8dWsTyxBeerGfOwbkJvMVNXWUm1F6ur0Pp+xkuwGRQR9dM388z/o26g==
X-Received: by 2002:a17:902:d508:b0:215:58be:3349 with SMTP id
 d9443c01a7336-22367455866mr195081325ad.14.1740983570642; 
 Sun, 02 Mar 2025 22:32:50 -0800 (PST)
Received: from fedora (c-73-93-224-2.hsd1.ca.comcast.net. [73.93.224.2])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-223504c5bf3sm70694335ad.110.2025.03.02.22.32.49
 for <bug-sed@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 02 Mar 2025 22:32:49 -0800 (PST)
From: Collin Funk <collin.funk1@HIDDEN>
To: bug-sed@HIDDEN
Subject: [PATCH] build: fix compile errors on platforms without getopt.h
Date: Sun, 02 Mar 2025 22:32:48 -0800
Message-ID: <87h64aipyn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2607:f8b0:4864:20::635;
 envelope-from=collin.funk1@HIDDEN; helo=mail-pl1-x635.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Hi, I found that GNU sed does not compile on platforms with
 <getopt.h> or getopt_long. For example on AIX: make[2]: Entering directory
 '/home/collinfunk/sed-4.9.51-0f74-modified' CC sed/sed-sed.o sed/sed.c:20:10:
 fatal error: getopt.h: No such file or directory 20 | #include <getopt.h>
 | ^~~~~~~~~~ compil [...] 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (collin.funk1[at]gmail.com)
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (collin.funk1[at]gmail.com)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

--=-=-=
Content-Type: text/plain

Hi,

I found that GNU sed does not compile on platforms with <getopt.h> or
getopt_long. For example on AIX:

    make[2]: Entering directory '/home/collinfunk/sed-4.9.51-0f74-modified'
      CC       sed/sed-sed.o
    sed/sed.c:20:10: fatal error: getopt.h: No such file or directory
       20 | #include <getopt.h>
          |          ^~~~~~~~~~
    compilation terminated.
    make[2]: *** [Makefile:6188: sed/sed-sed.o] Error 1
    make[2]: Leaving directory '/home/collinfunk/sed-4.9.51-0f74-modified'
    make[1]: *** [Makefile:6425: all-recursive] Error 1
    make[1]: Leaving directory '/home/collinfunk/sed-4.9.51-0f74-modified'
    make: *** [Makefile:3595: all] Error 2

This is because the following commit:

    commit 71de42fd346688b131e7364d7ea7be4e973fb0c3
    Author:     Assaf Gordon <assafgordon@HIDDEN>
    AuthorDate: Sat Jan 2 23:41:51 2021 -0700
    Commit:     Assaf Gordon <assafgordon@HIDDEN>
    CommitDate: Tue Jan 5 17:02:10 2021 -0700
    
        maint: update all copyright year number ranges
        
        Run "make update-copyright" and then...
        [...]
        * bootstrap.conf (gnulib_modules): Remove getopt module, depracated in
        https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=0abc38bd2a1398f0
        [...]

The deprecation of getopt was because it split into getopt-posix and
getopt-gnu. GNU sed uses <getopt.h> and getopt_long, so we need
getopt-gnu.

I have attached a patch that fixes this. I added a note in NEWS since
the 4.9 was released after that commit so the tarball won't build on
platforms like AIX.

Collin


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-build-fix-compile-errors-on-platforms-without-getopt.patch

From a5a8de867f4619be2b0613ea1dc9dff92edee74e Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.funk1@HIDDEN>
Date: Sun, 2 Mar 2025 22:09:47 -0800
Subject: [PATCH] build: fix compile errors on platforms without getopt.h

* bootstrap.conf (gnulib_modules): Add getopt-gnu.
* lib/.gitignore: Update from gnulib-tool --import.
* m4/.gitignore: Likewise.
* NEWS: Mention the fix.
---
 NEWS           |  5 +++++
 bootstrap.conf |  1 +
 lib/.gitignore | 37 +++++++++++++++++++++++++++++++++++++
 m4/.gitignore  | 38 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 81 insertions(+)

diff --git a/NEWS b/NEWS
index 40f85db..4543325 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,11 @@ GNU sed NEWS                                    -*- outline -*-
   apostrophes) instead of `like this' (with a grave accent and an
   apostrophe).  This tracks the GNU coding standards.
 
+** Build-related
+
+  builds no longer fail on platforms without the <getoph.h> header or
+  getopt_long function.
+  [bug introduced in sed 4.9]
 
 * Noteworthy changes in release 4.9 (2022-11-06) [stable]
 
diff --git a/bootstrap.conf b/bootstrap.conf
index 8f11c9a..f21fadc 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -30,6 +30,7 @@ eloop-threshold
 extensions
 fwriting
 getdelim
+getopt-gnu
 gettext-h
 git-version-gen
 gitlog-to-changelog
diff --git a/lib/.gitignore b/lib/.gitignore
index 4c92286..bc65cdf 100644
--- a/lib/.gitignore
+++ b/lib/.gitignore
@@ -209,7 +209,9 @@
 /time.h
 /time.in.h
 /uchar.h
+/unicase
 /unicase.h
+/unictype
 /unictype.h
 /uninorm.h
 /unistd.c
@@ -245,3 +247,38 @@
 /xalloc.h
 /xmalloc.c
 /stdlib.c
+/c32is-impl.h
+/c32isprint.c
+/c32isspace.c
+/c32rtomb.c
+/c32to-impl.h
+/c32tob.c
+/c32tolower.c
+/c32toupper.c
+/iswblank.c
+/iswctype-impl.h
+/iswctype.c
+/iswdigit.c
+/iswpunct.c
+/iswxdigit.c
+/mbrtoc32.c
+/mbszero.c
+/obstack.in.h
+/same-inode.c
+/setlocale_null-unlocked.c
+/uchar.in.h
+/unicase.in.h
+/unictype.in.h
+/uninorm.in.h
+/unitypes.in.h
+/wctype-impl.h
+/wctype.c
+/getopt-cdefs.in.h
+/getopt-core.h
+/getopt-ext.h
+/getopt-pfx-core.h
+/getopt-pfx-ext.h
+/getopt.c
+/getopt.in.h
+/getopt1.c
+/getopt_int.h
diff --git a/m4/.gitignore b/m4/.gitignore
index 973ec19..41a104b 100644
--- a/m4/.gitignore
+++ b/m4/.gitignore
@@ -235,3 +235,41 @@
 /semaphore.m4
 /sys_cdefs_h.m4
 /yield.m4
+/build-to-host.m4
+/c32rtomb.m4
+/exponentd.m4
+/exponentf.m4
+/exponentl.m4
+/extensions-aix.m4
+/fclose.m4
+/float_h.m4
+/fpieee.m4
+/gnulib-i18n.m4
+/init-package-version.m4
+/isnand.m4
+/isnanf.m4
+/isnanl.m4
+/iswblank.m4
+/iswctype.m4
+/iswdigit.m4
+/iswpunct.m4
+/iswxdigit.m4
+/libunistring-base.m4
+/locale-en.m4
+/math_h.m4
+/mbrtoc32.m4
+/nan-mips.m4
+/once.m4
+/signbit.m4
+/snan.m4
+/stpcpy.m4
+/time.m4
+/uchar_h.m4
+/unicase_h.m4
+/unictype_h.m4
+/uninorm_h.m4
+/wctype.m4
+/windows-rc.m4
+/xgetcwd.m4
+/getlocalename_l.m4
+/getopt.m4
-- 
2.48.1


--=-=-=--




Acknowledgement sent to Collin Funk <collin.funk1@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-sed@HIDDEN. Full text available.
Report forwarded to bug-sed@HIDDEN:
bug#76706; Package sed. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 3 Mar 2025 20:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.