GNU bug report logs - #70867
sed fails to compile on AIX and MSVC

Previous Next

Package: sed;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Fri, 10 May 2024 21:08:01 UTC

Severity: normal

To reply to this bug, email your comments to 70867 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-sed <at> gnu.org:
bug#70867; Package sed. (Fri, 10 May 2024 21:08:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bruno Haible <bruno <at> clisp.org>:
New bug report received and forwarded. Copy sent to bug-sed <at> gnu.org. (Fri, 10 May 2024 21:08:01 GMT) Full text and rfc822 format available.

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

From: Bruno Haible <bruno <at> clisp.org>
To: bug-sed <at> gnu.org
Subject: sed fails to compile on AIX and MSVC
Date: Fri, 10 May 2024 23:06:58 +0200
[Message part 1 (text/plain, inline)]
Hi,

On AIX 7.3.1, GNU sed fails to compile:

  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: 1254-004 The error code from the last command is 1.

Likewise on native Windows, with the MSVC compiler:

sed\sed.c(20): fatal error C1083: Cannot open include file: 'getopt.h': No such file or directory
make[2]: *** [Makefile:6034: sed/sed-sed.obj] Error 2

This patch fixes it, by using the Gnulib module 'getopt-gnu', as documented in
https://www.gnu.org/software/gnulib/manual/html_node/getopt_002eh.html

[0001-build-Fix-FTBFS-on-AIX-and-MSVC.patch (text/x-patch, attachment)]

This bug report was last modified 179 days ago.

Previous Next


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