ports/149755: p5-FastCGI 0.71 is broken
douglas steinwand
dzs-pr at dzs.fx.org
Wed Aug 18 04:40:06 UTC 2010
>Number: 149755
>Category: ports
>Synopsis: p5-FastCGI 0.71 is broken
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Aug 18 04:40:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: douglas steinwand
>Release: 8.1-STABLE
>Organization:
>Environment:
FreeBSD paris.fx.org 8.1-STABLE FreeBSD 8.1-STABLE #5: Sun Aug 1 09:43:46 PDT 2010 root at paris.fx.org:/usr/obj/usr/src/sys/PARIS8 amd64
>Description:
The FastCGI 0.71 port www/p5-FastCGI links against the installed fcgi-devkit-2.4.0 (www/fcgi). Unfortunately, that port does not have the "FCGX_Detach" symbol so attempts to call $request->Detach() croak:
Aug 17 20:52:55 paris apache: /libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.10.1/mach/auto/FCGI/FCGI.so: Undefined symbol "FCGX_Detach"
>How-To-Repeat:
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';
use FCGI;
my $request = FCGI::Request();
while ($request->Accept() >= 0) {
$request->Detach();
# ... do something like fork(), etc ...
$request->Attach();
print "Status: 200\nContent-type: text/plain\n\nDone\n";
$request->Finish();
}
>Fix:
I hacked the p5-FastCGI port's Makefile to use its internal fastcgi library, rather than the one installed in the system:
#LIB_DEPENDS= fcgi.0:${PORTSDIR}/www/fcgi
#CONFIGURE_ARGS+= --use-installed=${LOCALBASE}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list