You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2022/09/04 19:28:19 UTC

[GitHub] [incubator-pagespeed-ngx] eilandert commented on issue #1717: Could not complete the build

eilandert commented on issue #1717:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1717#issuecomment-1236400998

   > Compiling a slightly older version (1.13.35.2) on Ubuntu 22.04.1 LTS (jammy) with:
   > 
   > * GNU ld (GNU Binutils for Ubuntu) 2.38
   > * gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
   > * linux-libc-dev 5.15.0-47.51 (amd64)
   > * 5.15.0-47-generic `#51`-Ubuntu SMP
   > * System library 2.35.0
   > * GNU Make 4.3
   > * cmake version 3.22.1
   > * pkg-config 0.29.2
   > 
   > gives:
   > 
   > ```shell
   > /usr/bin/ld: /usr/local/src/nginx/modules/incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.signals.o.o): in function `pagespeed_ol_apr_signal_description_get':
   > signals.c:(.text.apr_signal_description_get+0xe): undefined reference to `sys_siglist'
   > /usr/bin/ld: /usr/local/src/nginx/modules/incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.proc_mutex.o.o): in function `proc_mutex_pthread_tryacquire':
   > proc_mutex.c:(.text.proc_mutex_pthread_tryacquire+0x3c): undefined reference to `pthread_mutex_consistent_np'
   > /usr/bin/ld: /usr/local/src/nginx/modules/incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.proc_mutex.o.o): in function `proc_mutex_pthread_acquire':
   > proc_mutex.c:(.text.proc_mutex_pthread_acquire+0x2c): undefined reference to `pthread_mutex_consistent_np'
   > /usr/bin/ld: /usr/local/src/nginx/modules/incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.proc_mutex.o.o): in function `proc_mutex_pthread_create':
   > proc_mutex.c:(.text.proc_mutex_pthread_create+0xac): undefined reference to `pthread_mutexattr_setrobust_np'
   > /usr/bin/ld: /usr/local/src/nginx/modules/incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.thread.o.o): infunction `pagespeed_ol_apr_thread_yield':
   > thread.c:(.text.apr_thread_yield+0x1): undefined reference to `pthread_yield'
   > collect2: error: ld returned 1 exit status
   > make[1]: *** [objs/Makefile:352: objs/nginx] Error 1
   > make[1]: Leaving directory '/usr/local/src/nginx/nginx-1.22.0'
   > make: *** [Makefile:13: install] Error 2
   > ```
   > 
   > I'm going to try [v1.14.33.1-RC1](https://github.com/apache/incubator-pagespeed-ngx/releases/tag/v1.14.33.1-RC1) to see if that helps. It's two years old, but...
   
   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
   
   I uploaded precompiled psol binaries here: http://www.tiredofit.nl/psol-jammy.tar.xz
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pagespeed.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org