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

.libs/libshadowsocks_libev_la-tls.o:(.data.rel.ro.local+0x10): multiple definition of `tls_protocol' #61

Open
xmujack opened this issue Apr 5, 2023 · 1 comment

Comments

@xmujack
Copy link

xmujack commented Apr 5, 2023

Please answer these questions before submitting your issue. Thanks!

What version of shadowsocks-libev are you using?

shadowsocksr-libev-master

What operating system are you using?

ubuntu

What did you do?

sudo apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev
gawk debhelper dh-systemd init-system-helpers pkg-config asciidoc xmlto apg libpcre3-dev zlib1g-dev -y
dpkg-buildpackage -b -us -uc -i

What did you expect to see?

no compile error

What did you see instead?

.libs/libshadowsocks_libev_la-tls.o:(.data.rel.ro.local+0x10): multiple definition of `tls_protocol'
.libs/libshadowsocks_libev_la-local.o:(.bss+0x20): first defined here
collect2: error: ld returned 1 exit status
Makefile:573: recipe for target 'libshadowsocks-libev.la' failed
make[3]: *** [libshadowsocks-libev.la] Error 1

What is your config in detail (with all sensitive info masked)?

@xmujack
Copy link
Author

xmujack commented Apr 5, 2023

src/http.h
-const protocol_t *const http_protocol;
+extern const protocol_t *const http_protocol;

src/tls.h
-const protocol_t *const tls_protocol;
+extern const protocol_t *const tls_protoc

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