Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Error #109

Open
slv-306 opened this issue Sep 30, 2022 · 2 comments
Open

Installation Error #109

slv-306 opened this issue Sep 30, 2022 · 2 comments

Comments

@slv-306
Copy link

slv-306 commented Sep 30, 2022

Hi Team
I'm installing redis-cluster-proxy from unstable branch and facing the below issue

/usr/bin/ld: logger.o:/home/lahari.velagapudi/redis-cluster-proxy/src/sds.h:37: multiple definition of `SDS_NOINIT'; config.o:/home/lahari.velagapudi/redis-cluster-proxy/src/sds.h:37: first defined here
/usr/bin/ld: reply_order.o:/home/lahari.velagapudi/redis-cluster-proxy/src/sds.h:37: multiple definition of `SDS_NOINIT'; config.o:/home/lahari.velagapudi/redis-cluster-proxy/src/sds.h:37: first defined here
/usr/bin/ld: sds.o:/home/lahari.velagapudi/redis-cluster-proxy/src/sds.h:37: multiple definition of `SDS_NOINIT'; config.o:/home/lahari.velagapudi/redis-cluster-proxy/src/sds.h:37: first defined here
/usr/bin/ld: util.o:/home/lahari.velagapudi/redis-cluster-proxy/src/sds.h:37: multiple definition of `SDS_NOINIT'; config.o:/home/lahari.velagapudi/redis-cluster-proxy/src/sds.h:37: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:179: redis-cluster-proxy] Error 1
make[1]: Leaving directory '/home/lahari.velagapudi/redis-cluster-proxy/src'
make: *** [Makefile:7: install] Error 2

OS- Details
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

GCC Version
gcc (Debian 10.2.1-6) 10.2.1 20210110 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@Dup4
Copy link

Dup4 commented Oct 10, 2022

diff --git a/src/sds.h b/src/sds.h
index 1bdb60d..adcc12c 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -34,7 +34,7 @@
 #define __SDS_H

 #define SDS_MAX_PREALLOC (1024*1024)
-const char *SDS_NOINIT;
+extern const char *SDS_NOINIT;

 #include <sys/types.h>
 #include <stdarg.h>

Maybe apply this patch will be ok.

@rbarbadillo
Copy link

I run into the same problem while trying to start up redis 5.0.5 and the patch worked! Ran the tests and it all seemed ok. Thanks @Dup4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants