Re: trouble compiling mod_perl-1.24_01
On Wed, 15 Nov 2000, Jere C. Julian, Jr. wrote: I'm on a FreeBSD 3.4-RELEASE box and I've just built and tested apache 1.3.14 from source. Then I try to build mod_perl with the following commands and get the errors below. ... Symbol.xs:106: `na' undeclared (first use this function) Symbol.xs:106: (Each undeclared identifier is reported only once Symbol.xs:106: for each function it appears in.) this is supposed to be taken care of in Symbol.xs: #include "patchlevel.h" #if ((PATCHLEVEL = 4) (SUBVERSION = 76)) || (PATCHLEVEL = 5) #define na PL_na #endif which probably means you have a bogus patchlevel.h (from an old tcl install) in /usr/local/include either delete that or move it aside. the right thing for Symbol.xs todo is not to use na at all, patch below. Index: Symbol/Symbol.xs === RCS file: /home/cvs/modperl/Symbol/Symbol.xs,v retrieving revision 1.4 diff -u -r1.4 Symbol.xs --- Symbol/Symbol.xs1998/11/24 19:10:56 1.4 +++ Symbol/Symbol.xs2000/12/22 06:01:06 @@ -2,11 +2,6 @@ #include "perl.h" #include "XSUB.h" -#include "patchlevel.h" -#if ((PATCHLEVEL = 4) (SUBVERSION = 76)) || (PATCHLEVEL = 5) -#define na PL_na -#endif - #ifdef PERL_OBJECT #define sv_name(svp) svp #define undef(ref) @@ -102,8 +97,10 @@ mg_get(sv); sym = SvPOKp(sv) ? SvPVX(sv) : Nullch; } - else - sym = SvPV(sv, na); + else { +STRLEN n_a; +sym = SvPV(sv, n_a); +} if(sym) cv = perl_get_cv(sym, TRUE); break;
Re: trouble compiling mod_perl-1.24_01
glad to help would anyone else be interested in a FreeBSD port to do this ?? At 02:23 PM 22/11/00 -0500, you wrote: Thanks! I finally did a dirty hack but this sounds like a good way to fix it right. I'll have to do that as soon as I get a chance. -Jere peter brown wrote: hi jere i am running FreeBSD 4.1.1 at work and i have worked out the best way to do a static compile of mod_perl with apache installed as a port i followed stas's mod_perl guide and changed it to work with FreeBSD steps as follows # cd /usr/ports/www/apache13 edit Makefile add thisline in CONFIGURE_ARGS section --activate-module=src/modules/perl/libperl.a # make extract # cd /mod_perl_src_directory/ # perl Makefile.PL \ APACHE_SRC=/usr/ports/www/apache13/work/apache_1.3.14/src/ \ NO_HTTPD=1 \ USE_APACI=1 \ PREP_HTTPD=1 \ EVERYTHING=1 # make # make test # make install # cd /usr/ports/www/apache13 # make # make install works like a charm :) i am thinking of writing a port to do this and submitting it happy mod_perling :) At 12:07 AM 15/11/00 -0500, you wrote: I'm on a FreeBSD 3.4-RELEASE box and I've just built and tested apache 1.3.14 from source. Then I try to build mod_perl with the following commands and get the errors below. The full text of the process can be seen at http://www.StageRigger.com/mod_perl-1.24_01.log Has anyone run into this? Suggestions? Thanks, -Jere Julian -- +---+ | Jere C Julianmailto:[EMAIL PROTECTED] | | Network Designer/Manager, Rigger, Sound Engineer | |http://www.StageRigger.com/| +---+ perl Makefile.PL APACHE_SRC=../apache_1.3.14/src DO_HTTPD=1 USE_APACI=1 make ... cp Server.pm ../blib/lib/Apache/Server.pm mkdir ../blib/arch/auto/Apache/Server mkdir ../blib/lib/auto/Apache/Server cp Symbol.pm ../blib/lib/Apache/Symbol.pm /usr/bin/perl -I/usr/local/lib/perl5/5.6.0/i386-freebsd -I/usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/5.6.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.6.0/ExtUtils/typemap Symbol.xs Symbol.xsc mv Symbol.xsc Symbol.c cc -c -I/usr/local/include -O -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -DPIC -fpic -I/usr/local/lib/perl5/5.6.0/i386-freebsd/CORE Symbol.c Symbol.xs: In function `XS_Apache__Symbol_cv_const_sv': Symbol.xs:106: `na' undeclared (first use this function) Symbol.xs:106: (Each undeclared identifier is reported only once Symbol.xs:106: for each function it appears in.) *** Error code 1 Stop. *** Error code 1 Stop. -- +---+ | Jere C Julianmailto:[EMAIL PROTECTED] | | Network Designer/Manager, Rigger, Sound Engineer | | http://www.StageRigger.com/~julianje/| +---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
trouble compiling mod_perl-1.24_01
I'm on a FreeBSD 3.4-RELEASE box and I've just built and tested apache 1.3.14 from source. Then I try to build mod_perl with the following commands and get the errors below. The full text of the process can be seen at http://www.StageRigger.com/mod_perl-1.24_01.log Has anyone run into this? Suggestions? Thanks, -Jere Julian -- +---+ | Jere C Julianmailto:[EMAIL PROTECTED] | | Network Designer/Manager, Rigger, Sound Engineer | |http://www.StageRigger.com/| +---+ perl Makefile.PL APACHE_SRC=../apache_1.3.14/src DO_HTTPD=1 USE_APACI=1 make ... cp Server.pm ../blib/lib/Apache/Server.pm mkdir ../blib/arch/auto/Apache/Server mkdir ../blib/lib/auto/Apache/Server cp Symbol.pm ../blib/lib/Apache/Symbol.pm /usr/bin/perl -I/usr/local/lib/perl5/5.6.0/i386-freebsd -I/usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/5.6.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.6.0/ExtUtils/typemap Symbol.xs Symbol.xsc mv Symbol.xsc Symbol.c cc -c -I/usr/local/include -O -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -DPIC -fpic -I/usr/local/lib/perl5/5.6.0/i386-freebsd/CORE Symbol.c Symbol.xs: In function `XS_Apache__Symbol_cv_const_sv': Symbol.xs:106: `na' undeclared (first use this function) Symbol.xs:106: (Each undeclared identifier is reported only once Symbol.xs:106: for each function it appears in.) *** Error code 1 Stop. *** Error code 1 Stop.