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

Full log


View this message in rfc822 format

From: Bruno Haible <bruno <at> clisp.org>
To: 70867 <at> debbugs.gnu.org
Subject: bug#70867: 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 1 year and 36 days ago.

Previous Next


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