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

curl 启用nghttp2时出现 multiple definition of `nghttp2_strerror'; 函数多重定义 #38

Closed
jingjingxyk opened this issue Feb 22, 2023 · 2 comments

Comments

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Feb 22, 2023

multiple definition of `nghttp2_strerror'; 函数多重定义

与这里出现冲突 https://github.com/swoole/swoole-src/blob/master/thirdparty/nghttp2/nghttp2_helper.c

/usr/bin/ld: /usr/nghttp2/lib/libnghttp2.a(nghttp2_helper.o): in function `nghttp2_strerror':
/work/thirdparty/nghttp2/lib/nghttp2_helper.c:254: multiple definition of `nghttp2_strerror'; ext/swoole/thirdparty/nghttp2/nghttp2_helper.o:/work/ext/swoole/thirdparty/nghttp2/nghttp2_helper.c:35: first defined here
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:295: bin/swoole-cli] Error 1

image

@matyhtf
Copy link
Member

matyhtf commented Mar 3, 2023

这里需要修改swoole代码了

@matyhtf
Copy link
Member

matyhtf commented Mar 17, 2023

swoole/swoole-src@2a1c757

已解决

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