-
Notifications
You must be signed in to change notification settings - Fork 361
Failing to build as dynamic module #1740
Comments
First thing that comes to mind is that [[ is a bash command, are you running in sh or another shell? |
The PSOL folder must be a sub-folder where you have pagespeed. Or maybe you need these steps: https://groups.google.com/g/ngx-pagespeed-discuss/c/PSrbZrjKpKI/m/TtE59WSfAwAJ |
I have same issue with nginx 1.20 with fedora server 34 ngx_pagespeed-release-1.13.35.2. The question why you need ask interactive question in middle of config file ?
No need it code
|
But under lib there are others folders (/lib/Release/linux/x64/pagespeed_automatic.a) |
But why need download if full library folder exist ?
|
I´m asking because in the script install the psol is downloaded from a google site and some times this download fail, since the module don´t be a google proyect. So maybe the folders are in place, but not the file.. |
I think we might need to update https://www.modpagespeed.com/doc/build_ngx_pagespeed_from_source to point to a download page under Apache rather than https://dl.google.com/dl/page-speed/psol/${NPS_RELEASE_NUMBER}.tar.gz -- Otto what was your thinking about this? |
@jmarantz that makes sense, I'll look into that. |
With some fiddling this produces an nginx binary for me:
Notes:
|
- update optional ngx_pagespeed module from 1.13.35.2 stable to 1.14.33.1-RC1 ngx version while PSOL/mod-pagespeed binary is 1.14.36.1 as older version isn't compatible with 123.09beta01 updated GCC 10 compiler version and will fail to properly compile Nginx when NGXDYNAMIC_NGXPAGESPEED='y' and NGINX_PAGESPEED='y' are set in persistent config file /etc/centminmod/custom_config.inc prior to initial Centmin Mod install or Nginx upgrades https://community.centminmod.com/threads/nginx-failed-after-cmm-installation.22414/#post-91848. The ngx_pagespeed 1.14.33.1-RC1 has been in preview release since August 2020 https://github.com/apache/incubator-pagespeed-ngx/releases - using different versions for NGXPGSPEED_VER='1.14.33.1-RC1' and NGINX_PAGESPEEDPSOL_VER='1.14.36.1' for ngx_pagespeed and PSOL/mod-pagespeed binary as the developers haven't updated ngx_pagespeed yet due to needing compliance/ ASF standards checks according to apache/incubator-pagespeed-ngx#1740 (comment). As such response headers will report the PSOL/mod-pagespeed binary version 1.14.36.1 when checked i.e. HTTP/1.1 200 OK Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding Server: nginx centminmod X-Powered-By: centminmod Date: Mon, 31 Jan 2022 02:26:22 GMT X-Page-Speed: 1.14.36.1-0 Cache-Control: max-age=0, no-cache
According to this, I still fail to build on Alpine 3.15 (alpine:3.15). I already install [libuuid] and [util-linux-dev] (contains uuid/uuid.h and libuuid.so) and other depends. The compilation parameters use the parameters of the nginx official alpine container.
The lib already exists. # find /usr/src/ -name pagespeed_automatic.a
/usr/src/incubator-pagespeed-ngx-1.14.33.1-RC1/psol/lib/Release/linux/x64/pagespeed_automatic.a Error log
Please help me check it. What's wrong with it? |
the build error in your case is caused by the undefined references, which in turn are caused by an outdated build environment. I had the very same error with default gcc-Version 4.8.5 on centos 7 and solved it by updating to version 7+ using slc: yum -y install centos-release-scl |
I get a PSOL error....
And when i download the package with a PSOL folder i still get a PSOL error.... I don't get what is wrong.....
The text was updated successfully, but these errors were encountered: