Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

undefined reference to `pthread_yield' #1759

Closed
skhaz opened this issue Aug 26, 2022 · 2 comments
Closed

undefined reference to `pthread_yield' #1759

skhaz opened this issue Aug 26, 2022 · 2 comments

Comments

@skhaz
Copy link

skhaz commented Aug 26, 2022

Compiling PageSpeed with Nginx 1.22

bash <(curl -f -L -k -sS https://ngxpagespeed.com/install) \
	--nginx-version 1.22.0 -y \
         --with-threads

Results on error

#9 372.2 /usr/bin/ld: /root/incubator-pagespeed-ngx-latest-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.signals.o.o): in function `pagespeed_ol_apr_signal_description_get':
#9 372.2 signals.c:(.text.apr_signal_description_get+0xe): undefined reference to `sys_siglist'
#9 372.2 /usr/bin/ld: /root/incubator-pagespeed-ngx-latest-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.proc_mutex.o.o): in function `proc_mutex_pthread_tryacquire':
#9 372.2 proc_mutex.c:(.text.proc_mutex_pthread_tryacquire+0x3c): undefined reference to `pthread_mutex_consistent_np'
#9 372.2 /usr/bin/ld: /root/incubator-pagespeed-ngx-latest-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.proc_mutex.o.o): in function `proc_mutex_pthread_acquire':
#9 372.2 proc_mutex.c:(.text.proc_mutex_pthread_acquire+0x2c): undefined reference to `pthread_mutex_consistent_np'
#9 372.2 /usr/bin/ld: /root/incubator-pagespeed-ngx-latest-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.proc_mutex.o.o): in function `proc_mutex_pthread_create':
#9 372.2 proc_mutex.c:(.text.proc_mutex_pthread_create+0xac): undefined reference to `pthread_mutexattr_setrobust_np'
#9 372.2 /usr/bin/ld: /root/incubator-pagespeed-ngx-latest-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.thread.o.o): in function `pagespeed_ol_apr_thread_yield':
#9 372.2 thread.c:(.text.apr_thread_yield+0x1): undefined reference to `pthread_yield'
@eilandert
Copy link

eilandert commented Aug 28, 2022

this error means you are trying to use a psol library built on an older glibc.
(for example, the psol library is built on ubuntu focal or bionic, you are using ubuntu jammy).
On newer glibc they removed pthread_mutex_consistent_np and sys_siglist functions

#1743

@eilandert
Copy link

I cooked some build instructions in #1760

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants