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

Previous Next

Package: sed;

Reported by: Collin Funk <collin.funk1 <at> gmail.com>

Date: Mon, 3 Mar 2025 06:34:01 UTC

Severity: normal

Tags: patch

Full log


Message #8 received at 76706 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Collin Funk <collin.funk1 <at> gmail.com>
Cc: 76706 <at> debbugs.gnu.org
Subject: Re: bug#76706: [PATCH] build: fix compile errors on platforms without
 getopt.h
Date: Mon, 3 Mar 2025 09:37:29 -0800
On Sun, Mar 2, 2025 at 10:34 PM Collin Funk <collin.funk1 <at> gmail.com> 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-modified'
>       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.




This bug report was last modified 107 days ago.

Previous Next


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