Subject: | Need ccdlflags='-Wl,-E' |
Date: | Wed, 2 Oct 2013 13:46:30 -0400 |
To: | bug-Nginx-Perl [...] rt.cpan.org |
From: | "Ben B." <bennymack [...] gmail.com> |
I found that if the perl binary I build nginx-perl with lacks the -Wl,-E in
ccdlflags it will error out with undefined symbols in Nginx.so.
nginx-perl-1.2.6.6]$ objs/nginx-perl -p eg/helloworld
Can't load 'eg/helloworld/../../objs/src/http/modules/perl/blib/arch/auto/Nginx/Nginx.so'
for module Nginx:
eg/helloworld/../../objs/src/http/modules/perl/blib/arch/auto/Nginx/Nginx.so:
undefined symbol: ngx_http_core_module at
/usr/lib64/perl5/5.12.4/x86_64-linux-thread-multi/DynaLoader.pm line
200.
at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.
nginx: [alert] perl_parse() failed: 255
I can make it work by adding the flag to CORE_LINK in "auto/lib/perl/conf"
but I just wanted to see if that would be a helpful thing to have
unconditionally or any other thoughts on the matter. Thanks!