tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

hacks for cc (GCC) 14.2.1 20240912 + glibc-2.39



(It's Fedora 40)
Trying to build the tip of 10:

strptime() needed _XOPEN_SOURCE
setenv() needed _POSIX_C_SOURCE
le32toh() needed _DEFAULT_SOURCE
bsd_signal() needs _XOPEN_SOURCE but beware of ! (_POSIX_C_SOURCE >= 200809L)
alloca() needed <alloca.h>

Index: bin/date/date.c
===================================================================
RCS file: /cvsroot/src/bin/date/date.c,v
retrieving revision 1.63.2.1
diff -u -p -r1.63.2.1 date.c
--- bin/date/date.c    3 Jun 2023 15:23:42 -0000    1.63.2.1
+++ bin/date/date.c    9 Oct 2024 16:27:31 -0000
@@ -29,6 +29,10 @@
  * SUCH DAMAGE.
  */

+#define _XOPEN_SOURCE
+#define _POSIX_C_SOURCE 200112L
+#define _DEFAULT_SOURCE
+
 #if HAVE_NBTOOL_CONFIG_H
 #include "nbtool_config.h"
 #endif
@@ -51,6 +55,7 @@ __RCSID("$NetBSD: date.c,v 1.63.2.1 2023
 #include <sys/param.h>
 #include <sys/time.h>

+#include <endian.h>
 #include <ctype.h>
 #include <err.h>
 #include <fcntl.h>
Index: usr.bin/sed/process.c
===================================================================
RCS file: /cvsroot/src/usr.bin/sed/process.c,v
retrieving revision 1.53
diff -u -p -r1.53 process.c
--- usr.bin/sed/process.c    15 May 2020 22:39:54 -0000    1.53
+++ usr.bin/sed/process.c    9 Oct 2024 16:27:43 -0000
@@ -33,6 +33,9 @@
  * SUCH DAMAGE.
  */

+#define _XOPEN_SOURCE
+#define _DEFAULT_SOURCE
+
 #if HAVE_NBTOOL_CONFIG_H
 #include "nbtool_config.h"
 #endif
[cagney@bernard src master]$ cvs diff > diffs
[cagney@bernard src master]$ cat diffs
? diffs
Index: bin/date/date.c
===================================================================
RCS file: /cvsroot/src/bin/date/date.c,v
retrieving revision 1.63.2.1
diff -u -p -r1.63.2.1 date.c
--- bin/date/date.c    3 Jun 2023 15:23:42 -0000    1.63.2.1
+++ bin/date/date.c    9 Oct 2024 16:43:07 -0000
@@ -29,6 +29,10 @@
  * SUCH DAMAGE.
  */

+#define _XOPEN_SOURCE
+#define _POSIX_C_SOURCE 200112L
+#define _DEFAULT_SOURCE
+
 #if HAVE_NBTOOL_CONFIG_H
 #include "nbtool_config.h"
 #endif
Index: external/gpl2/gmake/dist/main.c
===================================================================
RCS file: /cvsroot/src/external/gpl2/gmake/dist/main.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 main.c
--- external/gpl2/gmake/dist/main.c    18 Aug 2014 06:47:02 -0000    1.1.1.1
+++ external/gpl2/gmake/dist/main.c    9 Oct 2024 16:43:12 -0000
@@ -16,6 +16,10 @@ You should have received a copy of the G
 GNU Make; see the file COPYING.  If not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.  */

+#define _XOPEN_SOURCE 600
+#include <signal.h>
+#include <alloca.h>
+
 #include "make.h"
 #include "dep.h"
 #include "filedef.h"
Index: usr.bin/sed/process.c
===================================================================
RCS file: /cvsroot/src/usr.bin/sed/process.c,v
retrieving revision 1.53
diff -u -p -r1.53 process.c
--- usr.bin/sed/process.c    15 May 2020 22:39:54 -0000    1.53
+++ usr.bin/sed/process.c    9 Oct 2024 16:43:19 -0000
@@ -33,6 +33,9 @@
  * SUCH DAMAGE.
  */

+#define _XOPEN_SOURCE
+#define _DEFAULT_SOURCE
+
 #if HAVE_NBTOOL_CONFIG_H
 #include "nbtool_config.h"
 #endif


Home | Main Index | Thread Index | Old Index