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 2021/10/04 13:58:05 UTC

[GitHub] [incubator-pagespeed-mod] nemihome opened a new issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

nemihome opened a new issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083


   sudo nginx -t
   nginx: [emerg] dlopen() "/usr/lib/nginx/modules/ngx_pagespeed.so" failed (/usr/lib/nginx/modules/ngx_pagespeed.so: **undefined symbol: pthread_mutex_consistent_np**) in /etc/nginx/modules-enabled/50-mod-pagespeed.conf:1
   nginx: configuration file /etc/nginx/nginx.conf test failed
   
   Content of /etc/nginx/modules-enabled/50-mod-pagespeed.conf
   load_module modules/ngx_pagespeed.so;
   
   Nginx Error log:
   2021/10/04 15:52:07 [emerg] 68172#0: dlopen() "/usr/lib/nginx/modules/ngx_pagespeed.so" failed (/usr/lib/nginx/modules/ngx_pagespeed.so: undefined symbol: pthread_mutex_consistent_np) in /etc/nginx/modules-enabled/50-mod-pagespeed.conf:1


-- 
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



[GitHub] [incubator-pagespeed-mod] Lofesa edited a comment on issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

Posted by GitBox <gi...@apache.org>.
Lofesa edited a comment on issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083#issuecomment-933741461


   Hi
   Pagespeed uses #includes <pthread.h> and maybe (I don´t know) uses this function, if in new version is deprecated.... maybe @oschaaf must take a look
   
   P.D. Have you tried to compile in an older Ubuntu version?
   
   P.D 1: Seems is deprecated in GNU C Library version 2.34  released 1/08/2021


-- 
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



[GitHub] [incubator-pagespeed-mod] eilandert commented on issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

Posted by GitBox <gi...@apache.org>.
eilandert commented on issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083#issuecomment-942316190


   And then I get the same error about pthread_yield ;-)


-- 
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



[GitHub] [incubator-pagespeed-mod] nemihome commented on issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

Posted by GitBox <gi...@apache.org>.
nemihome commented on issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083#issuecomment-933729910


   Hi, ok, the error message sounds like it is included in pagespeed.so. So what's the problem? Is pagespeed.so using something which is depreciated or is this a bug in the new pthread.h version?
   
   Ubuntu 21.10 (relevant part):
   ```
   extern int pthread_mutex_consistent (pthread_mutex_t *__mutex)
        __THROW __nonnull ((1));
   # ifdef __USE_GNU
   #  ifdef __REDIRECT_NTH
   extern int __REDIRECT_NTH (pthread_mutex_consistent_np, (pthread_mutex_t *),
   			   pthread_mutex_consistent) __nonnull ((1))
     __attribute_deprecated_msg__ ("\
   pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent");
   #  else
   #   define pthread_mutex_consistent_np pthread_mutex_consistent
   #  endif
   # endif
   #endif
   ```
   
   Ubuntu 20.04:
   ```
   /* Declare the state protected by MUTEX as consistent.  */
   extern int pthread_mutex_consistent (pthread_mutex_t *__mutex)
        __THROW __nonnull ((1));
   # ifdef __USE_GNU
   extern int pthread_mutex_consistent_np (pthread_mutex_t *__mutex)
        __THROW __nonnull ((1));
   # endif
   #endif
   ```


-- 
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



[GitHub] [incubator-pagespeed-mod] Lofesa edited a comment on issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

Posted by GitBox <gi...@apache.org>.
Lofesa edited a comment on issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083#issuecomment-933741461


   Hi
   Pagespeed uses #includes <pthread.h> and maybe (I don´t know) uses this function, if in new version is deprecated.... maybe @oschaaf must take a look
   
   P.D. Have you tried to compile in an older Ubuntu version?


-- 
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



[GitHub] [incubator-pagespeed-mod] Lofesa commented on issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

Posted by GitBox <gi...@apache.org>.
Lofesa commented on issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083#issuecomment-933741461


   Hi
   Pagespeed uses #includes <pthread.h> and maybe (I don´t know) uses this function, if in new version is deprecated.... maybe @oschaaf must take a look


-- 
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



[GitHub] [incubator-pagespeed-mod] eilandert commented on issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

Posted by GitBox <gi...@apache.org>.
eilandert commented on issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083#issuecomment-942347917


   Ok, on modern libc you can execute the following when building PSOL:
   sed -i -r 's/sys_siglist\[signum\]/strsignal(signum)/g' third_party/apr/src/threadproc/unix/signals.c
   sed -i s/"pthread_mutex_consistent_np"/"pthread_mutex_consistent"/g third_party/apr/src/locks/unix/proc_mutex.c
   sed -i s/"define HAVE_PTHREAD_YIELD 1"/"define HAVE_PTHREAD_YIELD 0"/g third_party/apr/gen/arch/linux/x64/include/apr_private.h
   
   Got a running Impish NGINX with pagespeed now.
   


-- 
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



[GitHub] [incubator-pagespeed-mod] Lofesa edited a comment on issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

Posted by GitBox <gi...@apache.org>.
Lofesa edited a comment on issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083#issuecomment-933741461


   Hi
   Pagespeed uses #includes <pthread.h> and maybe (I don´t know) uses this function, if in new version is deprecated.... maybe @oschaaf must take a look
   
   P.D. Have you tried to compile in an older Ubuntu version?
   
   P.D 1: Seems is deprecated in GNU C Libray version 2.34  released 1/08/2021


-- 
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



[GitHub] [incubator-pagespeed-mod] eilandert commented on issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

Posted by GitBox <gi...@apache.org>.
eilandert commented on issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083#issuecomment-942309082






-- 
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



[GitHub] [incubator-pagespeed-mod] eilandert commented on issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

Posted by GitBox <gi...@apache.org>.
eilandert commented on issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083#issuecomment-942309082


   If the function is just renamed from pthread_mutex_consistent_np to pthread_mutex_consistent you should be able to do
   sed -i s/"pthread_mutex_consistent_np"/"pthread_mutex_consistent"/g third_party/apr/src/locks/unix/proc_mutex.c
   
   It seems I have the same problem, I can't compile PSOL on Impish, so I am going to try this ;-)
   


-- 
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



[GitHub] [incubator-pagespeed-mod] Lofesa commented on issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

Posted by GitBox <gi...@apache.org>.
Lofesa commented on issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083#issuecomment-943017145


   @oschaaf Maybe apr must be updated?


-- 
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



[GitHub] [incubator-pagespeed-mod] Lofesa commented on issue #2083: Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish

Posted by GitBox <gi...@apache.org>.
Lofesa commented on issue #2083:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2083#issuecomment-933717590


   Hi
   As far as I can see, pthread_mutex_consistent_np is defined in pthread.h file, provided by OS.
   In a Centos 7 distro the path is /usr/include/pthread.h


-- 
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