hotaery opened a new issue #1576: I compile nginx with pagespeed module, but encounter some problems with undefined reference. URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1576 this is my system enviroment: ``` #uname -a Linux localhost.localdomain 2.6.18-308.24.1.el5 #1 SMP Tue Dec 4 17:43:34 EST 2012 x86_64 x86_64 x86_64 GNU/Linux #cat /etc/issue CentOS release 5.8 (Final) Kernel \r on an \m # gcc --version gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15) Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ``` nginx version is 1.14.0 PageeSpeed version is v1.13.35.2-stable Compilation of nginx commands is `./configure --add-module=../incubator-pagespeed-ngx-1.13.35.2-stable` The following error occurred when executing make ``` ../incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(94.png_optimizer.o.o): In function `(anonymous namespace)::PngErrorFn(png_struct_def*, char const*)': png_optimizer.cc:(.text._ZN12_GLOBAL__N_110PngErrorFnEP14png_struct_defPKc+0xa): undefined reference to `__longjmp_chk' ../incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(94.png_optimizer.o.o): In function `(anonymous namespace)::ReadPngFromStream(png_struct_def*, unsigned char*, unsigned long)': png_optimizer.cc:(.text._ZN12_GLOBAL__N_117ReadPngFromStreamEP14png_struct_defPhm+0x52): undefined reference to `__longjmp_chk' ../incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(94.jpeg_optimizer.o.o): In function `(anonymous namespace)::ErrorExit(jpeg_common_struct*)': jpeg_optimizer.cc:(.text._ZN12_GLOBAL__N_19ErrorExitEP18jpeg_common_struct+0x1b): undefined reference to `__longjmp_chk' ../incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(94.jpeg_reader.o.o): In function `(anonymous namespace)::ErrorExit(jpeg_common_struct*)': jpeg_reader.cc:(.text._ZN12_GLOBAL__N_19ErrorExitEP18jpeg_common_struct+0x1b): undefined reference to `__longjmp_chk' ../incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(105.pthread_thread_system.o.o): In function `net_instaweb::PthreadThreadImpl::InvokeRun(void*)': pthread_thread_system.cc:(.text._ZN12net_instaweb17PthreadThreadImpl9InvokeRunEPv[_ZN12net_instaweb17PthreadThreadImpl9InvokeRunEPv]+0x74): undefined reference to `pthread_setname_np' ../incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(129.pngerror.o.o): In function `pagespeed_ol_png_error': pngerror.c:(.text.png_error+0x8d): undefined reference to `__longjmp_chk' ../incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(120.log_linux.o.o): In function `pagespeed_ol_gpr_log': log_linux.c:(.text.gpr_log+0x98): undefined reference to `__vasprintf_chk' ../incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(121.parse_address.o.o): In function `pagespeed_ol_grpc_parse_ipv4_hostport': parse_address.c:(.text.grpc_parse_ipv4_hostport+0xc3): undefined reference to `__isoc99_sscanf' ../incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(121.parse_address.o.o): In function `pagespeed_ol_grpc_parse_ipv6_hostport': parse_address.c:(.text.grpc_parse_ipv6_hostport+0x187): undefined reference to `__isoc99_sscanf' ../incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(133.cpu-intel.o.o): In function `handle_cpu_env': cpu-intel.c:(.text.handle_cpu_env+0x26): undefined reference to `__isoc99_sscanf' ../incubator-pagespeed-ngx-1.13.35.2-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a(133.v3_utl.o.o): In function `ipv4_from_asc': v3_utl.c:(.text.ipv4_from_asc+0x27): undefined reference to `__isoc99_sscanf' collect2: error: ld returned 1 exit status make[1]: *** [objs/nginx] Error 1 make[1]: Leaving directory `/root/install-dir/nginx-1.14.0' make: *** [build] Error 2 ``` please help me, i will be very grateful.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
