git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] build: centos/RHEL 7 ships with an older gcc and zlib

From
David Aguilar <davvid@gmail.com>
Date
Jan 16, 2022, 02:05 UTC
Message-ID
<20220116020520.26895-1-davvid@gmail.com>

GCC 4.8.5 is the default system compiler on centos7/RHEL7. This version requires -std=c99 to enable c99 support.

zlib 1.2.7 on centos7/rhel7 lacks uncompress2().
Signed-off-by: David Aguilar <davvid@gmail.com>
---
 config.mak.uname | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/config.mak.uname b/config.mak.uname
index 9b3e9bff5f..c48db45106 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -63,6 +63,11 @@ ifeq ($(uname_S),Linux)
 	PROCFS_EXECUTABLE_PATH = /proc/self/exe
 	HAVE_PLATFORM_PROCINFO = YesPlease
 	COMPAT_OBJS += compat/linux/procinfo.o
+	# centos7/rhel7 provides gcc 4.8.5 and zlib 1.2.7.
+	ifneq ($(findstring .el7.,$(uname_R)),)
+		BASIC_CFLAGS += -std=c99
+		NO_UNCOMPRESS2 = YesPlease
+	endif
 endif
 ifeq ($(uname_S),GNU/kFreeBSD)
 	HAVE_ALLOCA_H = YesPlease
-- 
2.30.1 (Apple Git-130)
Message 1 of 1 in “build: centos/RHEL 7 ships with an older gcc and zlib”
  1. build: centos/RHEL 7 ships with an older gcc and zlibDavid Aguilar, Jan 16, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.