Skip to content

Commit

Permalink
To fix: redis-cli build broken on Debian/Bookworm (librdb use-after-f…
Browse files Browse the repository at this point in the history
…ree) (#20759)

Fix #20757

Why I did it
To Fix the issue: redis-cli build broken on Debian/Bookworm (librdb use-after-free)
#20757

How I did it
This issue is a known open issue below:
redis/librdb#55

According to Walter Doekes's solution, currently to work around it by adding -floto=auto compiler option.

	make -j$(SONIC_CONFIG_MAKE_JOBS) WARNS='-Wall -Wextra -pedantic -flto=auto'
  • Loading branch information
JunhongMao authored and mssonicbld committed Nov 13, 2024
1 parent 34493c9 commit 44652d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rdb-cli/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
rm -rf ./librdb
git clone https://github.com/redis/librdb.git
pushd ./librdb/
git checkout 2fdfc0c2bc914d643fe3f86e6715aeb843d8966e
git checkout tags/v1.0.0
git submodule update --init --recursive
make -j$(SONIC_CONFIG_MAKE_JOBS)
# Set WARNS=... to work around https://github.com/redis/librdb/issues/55
make -j$(SONIC_CONFIG_MAKE_JOBS) WARNS='-Wall -Wextra -pedantic -flto=auto'
mv bin/rdb-cli $(DEST)/

0 comments on commit 44652d4

Please sign in to comment.