Attempting to build redis from source using redis-stable is failing with the following error.

release.c: In function ‘redisBuildIdRaw’:
release.c:49:12: error: ‘REDIS_BUILD_ID_RAW’ undeclared (first use in this function); did you mean ‘REDIS_BUILD_ID’?
   49 |     return REDIS_BUILD_ID_RAW;
      |            ^~~~~~~~~~~~~~~~~~

To reproduce pulled down a fresh copy, failed on a simple make. Attempted to make clean, and make distclean, with no changes.

Additional information

release.h appears to be generated incorrectly, and does not contain the REDIS_BUILD_ID_RAW

define REDIS_GIT_SHA1 "00000000"

define REDIS_GIT_DIRTY "0"

define REDIS_BUILD_ID "prd-jen-ti-1-1689632937"

removing this file, and running make install from the src directory appears to generate this file correctly.

cat src/release.h

define REDIS_GIT_SHA1 "00000000"

define REDIS_GIT_DIRTY "0"

define REDIS_BUILD_ID "prd-jen-ti-1-1692285669"

include "version.h"

define REDIS_BUILD_ID_RAW REDIS_VERSION REDIS_BUILD_ID REDIS_GIT_DIRTY REDIS_GIT_SHA1

Comment From: hwware

I just pull the latest commit (commit 1407ac1f3ece8f7e4094f92e649e5d0b7c5e5bde) and build it, it is successful. The step is: 1. make distclean 2. make

my environment is:

PRETTY_NAME="Ubuntu 22.04.2 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.2 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian

Could you please try the latest version? Or provide more detail of your compile environment, Thanks