-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
undefined reference to `pthread_atfork' #379
Comments
Also happening on Ubuntu 16.04. |
Tag 4.1.0 builds ok on Ubuntu 16.04. I notice parts of the build use -pthread instead of -lpthread...which may line up with some suggestions here: openssl/openssl#3884 |
I get this as well when trying to install wrk in a dockerfile using the latest Ubuntu image, which is 18.04 I believe. |
Also affected on Ubuntu 18.04. |
Thank you all for the reports! Looks like library link order matters with the latest OpenSSL, so I've updated that. |
Centos 7.5
after make I get
...
LINK wrk
obj/lib/libcrypto.a(threads_pthread.o): In function
fork_once_func': threads_pthread.c:(.text+0x16): undefined reference to
pthread_atfork'collect2: ошибка: выполнение ld завершилось с кодом возврата 1
make: *** [wrk] Ошибка 1
The text was updated successfully, but these errors were encountered: