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

undefined reference to `pthread_atfork' #379

Closed
Crafter76 opened this issue Apr 17, 2019 · 5 comments
Closed

undefined reference to `pthread_atfork' #379

Crafter76 opened this issue Apr 17, 2019 · 5 comments

Comments

@Crafter76
Copy link

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

@headius
Copy link

headius commented Apr 17, 2019

Also happening on Ubuntu 16.04.

@headius
Copy link

headius commented Apr 17, 2019

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

@DavisFrench
Copy link

I get this as well when trying to install wrk in a dockerfile using the latest Ubuntu image, which is 18.04 I believe.

@naftulikay
Copy link

Also affected on Ubuntu 18.04.

@wg
Copy link
Owner

wg commented Apr 18, 2019

Thank you all for the reports! Looks like library link order matters with the latest OpenSSL, so I've updated that.

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

5 participants