You are not logged in.

#1 2010-02-09 09:01:35

sgeorge
Member
Registered: 2009-10-13
Posts: 19

installing SpeedyCGI according to WiKi gives error

Hi,

Installing SpeedyCGI according to

http://wiki.archlinux.org/index.php/Smokeping

gives the following error

How do I fix it? thanks

--Siju

Compile mod_speedycgi (default no)? Compiling for Apache version 2
Checking if your kit is complete...
Looks good
Writing Makefile for src
Writing Makefile for speedy_backend
Writing Makefile for speedy
Writing Makefile for mod_speedycgi2
Writing Makefile for CGI::SpeedyCGI
cd src && make
make[1]: Entering directory `/tmp/CGI-SpeedyCGI-2.22/src'
/usr/bin/perl -w optdefs.pl /usr/bin
Writing speedy_optdefs.c
Writing speedy_optdefs.h
Writing mod_speedycgi_cmds.c
Writing mod_speedycgi2_cmds.c
Writing SpeedyCGI.pm
make[1]: Leaving directory `/tmp/CGI-SpeedyCGI-2.22/src'
cp src/SpeedyCGI.pm blib/lib/CGI/SpeedyCGI.pm
make[1]: Entering directory `/tmp/CGI-SpeedyCGI-2.22/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/CGI-SpeedyCGI-2.22/src'
make[1]: Entering directory `/tmp/CGI-SpeedyCGI-2.22/speedy_backend'
rm -f speedy_backend_main.c
cp ../src/speedy_backend_main.c speedy_backend_main.c
cc -c  -I../src -I. -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fPIC "-I/usr/lib/perl5/core_perl/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_backend_main.c
rm -f speedy_perl.c
cp ../src/speedy_perl.c speedy_perl.c
cc -c  -I../src -I. -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fPIC "-I/usr/lib/perl5/core_perl/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_perl.c
speedy_perl.c: In function 'find_scr':
speedy_perl.c:258: error: expected expression before 'SpeedyScript'
speedy_perl.c: In function 'get_string':
speedy_perl.c:449: error: expected expression before 'char'
speedy_perl.c: In function 'cwd_new':
speedy_perl.c:484: error: expected expression before 'SpeedyCwd'
speedy_perl.c: In function 'onerun':
speedy_perl.c:808: warning: comparison between pointer and integer
speedy_perl.c:809: warning: comparison between pointer and integer
speedy_perl.c:810: warning: comparison between pointer and integer
speedy_perl.c: In function 'speedy_perl_init':
speedy_perl.c:918: warning: passing argument 2 of 'perl_parse' from incompatible pointer type
/usr/lib/perl5/core_perl/CORE/proto.h:57: note: expected 'XSINIT_t' but argument is of type 'void (*)(void)'
make[1]: *** [speedy_perl.o] Error 1
make[1]: Leaving directory `/tmp/CGI-SpeedyCGI-2.22/speedy_backend'
make: *** [subdirs] Error 2
[root@archlinux CGI-SpeedyCGI-2.22]#

Offline

#2 2010-10-30 18:11:07

nickwe
Member
Registered: 2007-07-12
Posts: 9

Re: installing SpeedyCGI according to WiKi gives error

Hi,

I have to compile speedyCGI from source for Smokeping and have exactly the same error, did you figure out to resolve the issue?

Regards,


Nicolas.

Offline

#3 2010-11-01 20:11:13

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: installing SpeedyCGI according to WiKi gives error

I have rewritten that smokeping wiki page to try to be useful. It gives up on SpeedyCGI because SpeedyCGI is 7 years old and apparently dead. Instead it uses Plack a modern perl web approach. We use the CGI::Emulate::PSGI to emulate CGI and keep the script persistent. Persistence is the goal of SpeedyCGI and needed for such a heavy app.

I have set up smokeping to monitor all the archlinux mirrors. You can see it in action here:
http://juster.info/smokeping

If you are still interested in this and haven't given up, please give me feedback about the wiki page if you have problems.

Offline

Board footer

Powered by FluxBB