I could not get CGI::Speedy to install due to a compile error:
===============================================================
I am running Linux with gcc. v. 4.3.2. I answered the default "no" to
the question: "Compile mod_speedycgi (default no)?".
I ended up "fixing" (working around) by changing line 41 in
src/speedy_backend_main.h from:
#define speedy_new(s,n,t) New(123,s,t)
to:
#define speedy_new(s,n,t) \
do { (s) = (t*)malloc((n)*sizeof(t)); } while (0)
For some reason "New" is not defined. I'm not sure this is the ideal
fix, since one of the tests (involving memory leaks!) fails, but it
successfully builds and installs, and seems to work so far:
t/be_memleak..........ok 1/2 mem usage went from 5896K to 8572K in 1000
runs
t/be_memleak..........FAILED test 2
Failed 1/2 tests, 50.00% okay
...
Failed 1/33 test scripts. 1/73 subtests failed.
Files=33, Tests=73, 133 wallclock secs ( 1.53 cusr + 2.33 csys = 3.86 CPU)
Failed 1/33 test programs. 1/73 subtests failed.
make[1]: *** [test_dynamic] Error 255
make[1]: Leaving directory `/var/tmp/CGI-SpeedyCGI-2.22/speedy'
make: *** [subdirs-test] Error 2
roadrunner:/tmp/CGI-SpeedyCGI-2.22>gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-cld
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
I have not had compile issues with CGI::SpeedyCGI before and I have been
using it for many years.
Thanks,
Jim Turner