-
Notifications
You must be signed in to change notification settings - Fork 361
Could not complete the build #1717
Comments
Maybe is a library incompatibility. Signals comes from the stardad c libraries ans seems that is used by apr_memcached. |
fedora/gcc10 just isn't a platform that we test building on. There probably aren't any fundamental blockers, but it may take some trial and error to get this to work. |
But there is no problem in fedora 32 gcc:10.2.1.... |
Got the same error on Ubuntu 20.10 (groovy), GCC 10.2.0:
|
Same on Gentoo Linux 5.4.97; GCC 9.3.0
Any solutions available for this? |
Same on Ubuntu 21.04 gcc 10.2.0 /usr/bin/ld: /usr/src/incubator-pagespeed-mod/pagespeed/automatic/pagespeed_automatic.a(107.signals.o.o): in function |
Not solved? Same on Gentoo Linux 5.10.27; gcc 10.3.0 /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/src/mod_pagespeed/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.signals.o.o): in function |
Ubuntu 20.04 /usr/bin/ld: /root/incubator-pagespeed-ngx-latest-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(107.signals.o.o): in function |
Maybe gcc version related? |
it's glibc related I believe, every distribution released since +/- 1 year won't be able to compile, see #1735. I can compile it on ubuntu focal but not later. |
I don´t know if in Ubuntu can be set a dual gcc installation or downgrade the gcc. |
Personally, I have no problems to build on focal or whatever distribution, as I build in Docker. But I do think this a problem what should be solved in the long-term future. Unfortunately I have too little knowledge on the problem to help fix this :-( |
Just ran into this issue on NixOS unstable. |
also in NixOS stable.
|
Compiling a slightly older version (1.13.35.2) on Ubuntu 22.04.1 LTS (jammy) with:
gives: /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 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. I uploaded precompiled psol binaries here: http://www.tiredofit.nl/psol-jammy.tar.xz |
@eilandert you're absolutely correct! I read your comments on issue #1743 — it took me a while to fix the toolchain, but, eventually, with your precompiled binaries, I managed to succeed. I'm sure that others will, too. On the other hand, to @bymoye and other maintainers/moderators of this package: it would be nice to fix the autoconf files, so that it properly checks for the glibc version used by PSOL, and recompile it — if needed — using a more recent version, with the patches provided under issue #1743... |
I cooked some build instructions in #1760 |
/usr/local/bin/ld: ../incubator-pagespeed-ngx-1.14.33.1-RC1/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' collect2: error :ld return 1 make[1]: *** [objs/Makefile:457:objs/nginx] error 1
Fedora 33
Gcc:10
Help, I don't know how to solve this. I also tried the stable version with the same error.
The text was updated successfully, but these errors were encountered: