PacketFence - BTS - PacketFence
View Issue Details
0001627PacketFenceupstreampublic2013-02-01 13:022015-02-12 11:36
lmunro 
lmunro 
normalminoralways
closedwon't fix 
3.6.1 
 
0001627: pf::web::wispr.pm broken by upstream APR::Request on Centos 5
lib/pf/web/wispr.pm fails to compile with the following errors:

Can't load '/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/APR/Request/Request.so' for module APR::Request: /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/APR/Request/Request.so: undefined symbol: apreq_hook_disable_uploads at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230.
 at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/APR/Request/Param.pm line 27
Compilation failed in require at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/APR/Request/Param.pm line 27.

BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/APR/Request/Param.pm line 27.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/Request.pm line 2.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2/Request.pm line 2.
Compilation failed in require at lib/pf/web/wispr.pm line 20.
BEGIN failed--compilation aborted at lib/pf/web/wispr.pm line 20.


Indeed apreq_hook_disable_uploads is undefined in Request.so:

# nm /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/APR/Request/Request.so | egrep apreq_hook_disable_uploads
                 U apreq_hook_disable_uploads


apreq_hook_disable_uploads is defined in /usr/lib64/libapreq2.so.3, so the following trick will work:

LD_PRELOAD=/usr/lib64/libapreq2.so.3 perl -c -I /usr/local/pf/lib /usr/local/pf/lib/pf/web/wispr.pm
Found this when upgrading from 3.0.1 to 3.6.1 on Centos 5 on x86_64.
No tags attached.
Issue History
2013-02-01 13:02lmunroNew Issue
2013-02-01 13:53lmunroStatusnew => assigned
2013-02-01 13:53lmunroAssigned To => lmunro
2013-02-01 13:55lmunroDescription Updated
2015-02-11 11:51lmunroResolutionopen => won't fix
2015-02-12 11:36lmunroStatusassigned => closed

There are no notes attached to this issue.