Trouble with make source_scan

2002-11-26 Thread Esteban Fernandez Stafford


Hello,

I wanted to add some functionality to mod_perl. I am following the
'mod_per 2.0 Source Code Explained' guide. Before doing any change at
all I tried to run 'make source_scan' and I got some errors.  Going
through build/source_scan.pl I was able to tell which errors where
generated from each instruction (see below), but this has not brougth
me any further. Can anybody give me a hint about what I could do?

Thanks!

mod_per: 2.0 (checked out from CVS, Nov 26 2002)
perl: 5.8.0

$p-write_structs_pm complains the following:
--
failed on 










enum {

APR_BUCKET_DATA = 0,

APR_BUCKET_METADATA = 1
} is_metadata; with type=, id=enum, post= at pos=25
--


... and $p-write_functions_pm complains the following:
--
In file included from .apache_includes:4,
 from :1:
xs/modperl_xs_sv_convert.h:149: warning: `mp_xs_sv2_APR__Table' redefined
xs/modperl_xs_util.h:10: warning: this is the location of the previous definition
xs/modperl_xs_sv_convert.h:321: warning: `mp_xs_sv2_r' redefined
xs/modperl_xs_util.h:6: warning: this is the location of the previous definition
In file included from .apache_includes:4,
 from :1:
xs/modperl_xs_sv_convert.h:149: warning: `mp_xs_sv2_APR__Table' redefined
xs/modperl_xs_util.h:10: warning: this is the location of the previous definition
xs/modperl_xs_sv_convert.h:321: warning: `mp_xs_sv2_r' redefined
xs/modperl_xs_util.h:6: warning: this is the location of the previous definition
panic: multiple types without intervening comma in
 regexp*( *regcomp_t  ) (register PerlInterpreter *my_perl,  char* exp, 
char* xend, PMOP* pm)
whited-out as
 regexp*( *regcomp_t  ) (  
 )
Expecting parenth after identifier in `regcomp_t  * Perl_Tregcompp_ptr(register 
PerlInterpreter *my_perl)'
after `regcomp_t  ' at /usr/lib/perl5/site_perl/5.8.0/C/Scan.pm line 783.
C::Scan::do_declaration('extern\x{9}regcomp_t  * 
Perl_Tregcompp_ptr(register PerlInter...','HASH(0x8782610)','HASH(0x878d788)') called 
at /usr/lib/perl5/site_perl/5.8.0/C/Scan.pm line 738

C::Scan::do_declarations('ARRAY(0x878261c)','HASH(0x8782610)','HASH(0x878d788)') 
called at /usr/lib/perl5/site_perl/5.8.0/Data/Flow.pm line 86

Data::Flow::request('Apache::ParseSource::Scan=ARRAY(0x8d3b7dc)','parsed_fdecls') 
called at /usr/lib/perl5/site_perl/5.8.0/Data/Flow.pm line 39
Data::Flow::get('Apache::ParseSource::Scan=ARRAY(0x8d3b7dc)','parsed_fdecls') 
called at lib/Apache/ParseSource.pm line 49

Apache::ParseSource::Scan::get('Apache::ParseSource::Scan=ARRAY(0x8d3b7dc)','parsed_fdecls')
 called at lib/Apache/ParseSource.pm line 311
Apache::ParseSource::get_functions('ModPerl::ParseSource=HASH(0x8ce0714)') 
called at lib/Apache/ParseSource.pm line 407

Apache::ParseSource::write_functions_pm('ModPerl::ParseSource=HASH(0x8ce0714)','FunctionTable.pm','ModPerl::FunctionTable')
 called at lib/ModPerl/ParseSource.pm line 40

ModPerl::ParseSource::write_functions_pm('ModPerl::ParseSource=HASH(0x8ce0714)') 
called at build/source_scan.pl line 34
make: *** [source_scan] Error 255
--

   E s  t  eb  a n!


:wq





Re: Trouble with make source_scan

2002-11-26 Thread Stas Bekman
Esteban Fernandez Stafford wrote:


Hello,

I wanted to add some functionality to mod_perl. I am following the
'mod_per 2.0 Source Code Explained' guide. Before doing any change at
all I tried to run 'make source_scan' and I got some errors.  Going
through build/source_scan.pl I was able to tell which errors where
generated from each instruction (see below), but this has not brougth
me any further. Can anybody give me a hint about what I could do?

Thanks!

mod_per: 2.0 (checked out from CVS, Nov 26 2002)
perl: 5.8.0


It's not working most of the time, as Apache source gets changed all the 
time. You need the patched Scan.pm from apache.org/~dougm/, but it 
doesn't seem to work for me with the latest cvs.

Hopefully Gerald Richter gets his generalized version to work asap, so 
we don't rely on C::Scan anymore.

When the scan doesn't work, you should manually add the functions to 
xs/tables/current/, which is pretty easy to do if you don't have many of 
them.

And if you have some improvements to the scarce notes in the 'mod_perl 
2.0 Source Code Explained' chapter, please send me a patch... thanks.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com