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

fail to compile dynomite under ubuntu:24.04 with multiple definition of `C2G_InQ' error #826

Open
ochinchina opened this issue Sep 5, 2024 · 2 comments

Comments

@ochinchina
Copy link

compile dynomite with following commands copied from Dockerfile like below:

apt-get update && \
	export DEBIAN_FRONTEND=noninteractive && \
    apt-get install -y \
	autoconf \
	build-essential \
	dh-autoreconf \
	git \
	libssl-dev \
	libtool \
	software-properties-common \
	redis-server \
	tcl

git checkout -b compile origin/v0.8 \
    && autoreconf -fvi \
	&& ./configure --enable-debug=log \
	&& CFLAGS="-ggdb3 -O0" ./configure --enable-debug=full \
	&& make \
	&& make install

After running above command, we got error:

/usr/bin/ld: ../dyn_util.o:/dynomite/src/tools/../dyn_ring_queue.h:23: multiple definition of `C2G_InQ'; ../dyn_log.o:/dynomite/src/tools/../dyn_ring_queue.h:23: first defined here
/usr/bin/ld: ../dyn_util.o:/dynomite/src/tools/../dyn_ring_queue.h:29: multiple definition of `C2G_OutQ'; ../dyn_log.o:/dynomite/src/tools/../dyn_ring_queue.h:29: first defined here
/usr/bin/ld: ../dyn_array.o:/dynomite/src/tools/../dyn_ring_queue.h:23: multiple definition of `C2G_InQ'; ../dyn_log.o:/dynomite/src/tools/../dyn_ring_queue.h:23: first defined here
/usr/bin/ld: ../dyn_array.o:/dynomite/src/tools/../dyn_ring_queue.h:29: multiple definition of `C2G_OutQ'; ../dyn_log.o:/dynomite/src/tools/../dyn_ring_queue.h:29: first defined here
/usr/bin/ld: ../../src/hashkit/libhashkit.a(dyn_murmur.o):/dynomite/src/hashkit/../../src/dyn_ring_queue.h:23: multiple definition of `C2G_InQ'; ../dyn_log.o:/dynomite/src/tools/../dyn_ring_queue.h:23: first defined here
/usr/bin/ld: ../../src/hashkit/libhashkit.a(dyn_murmur.o):/dynomite/src/hashkit/../../src/dyn_ring_queue.h:29: multiple definition of `C2G_OutQ'; ../dyn_log.o:/dynomite/src/tools/../dyn_ring_queue.h:29: first defined here
collect2: error: ld returned 1 exit status
@deathbybandaid
Copy link

I've experienced this same thing. Hopefully there is a fix for this.

@deathbybandaid
Copy link

Looks like a solution was already found. The below PR makes it work!

https://github.com/Netflix/dynomite/pull/775/files

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

2 participants