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

Where is release.h? #103

Open
RaD opened this issue Dec 24, 2021 · 2 comments
Open

Where is release.h? #103

RaD opened this issue Dec 24, 2021 · 2 comments

Comments

@RaD
Copy link

RaD commented Dec 24, 2021

#6 6.777 release.c:18:10: fatal error: release.h: No such file or directory

@RaD
Copy link
Author

RaD commented Dec 24, 2021

Ah, ok. It is an autogenerated file. But it is impossible to build proxy in case of ZIP archive downloading :(

Workaround:

    echo "#define REDIS_CLUSTER_PROXY_GIT_SHA1 \"ZIP\"" > release.h
    echo "#define REDIS_CLUSTER_PROXY_GIT_DIRTY \"ZIP\"" >> release.h
    echo "#define REDIS_CLUSTER_PROXY_GIT_BRANCH \"ZIP\"" >> release.h
    echo "#define REDIS_CLUSTER_PROXY_BUILD_ID \"ZIP\"" >> release.h

@RaD
Copy link
Author

RaD commented Dec 24, 2021

New error while building from git repo:

#6 7.413     LINK redis-cluster-proxy
#6 7.417 /usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: logger.o:/redis-cluster-proxy/src/sds.h:37: multiple definition of `SDS_NOINIT'; config.o:/redis-cluster-proxy/src/sds.h:37: first defined here
#6 7.418 /usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: reply_order.o:/redis-cluster-proxy/src/sds.h:37: multiple definition of `SDS_NOINIT'; config.o:/redis-cluster-proxy/src/sds.h:37: first defined here
#6 7.419 /usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: sds.o:/redis-cluster-proxy/src/sds.h:37: multiple definition of `SDS_NOINIT'; config.o:/redis-cluster-proxy/src/sds.h:37: first defined here
#6 7.419 /usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: util.o:/redis-cluster-proxy/src/sds.h:37: multiple definition of `SDS_NOINIT'; config.o:/redis-cluster-proxy/src/sds.h:37: first defined here
#6 7.432 collect2: error: ld returned 1 exit status
#6 7.432 make[1]: Leaving directory '/redis-cluster-proxy/src'
#6 7.432 make[1]: *** [Makefile:179: redis-cluster-proxy] Error 1
#6 7.433 make: *** [Makefile:4: all] Error 2

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

1 participant