You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2002/03/01 18:31:28 UTC

make source_scan doesn't work

Doug, make source_scan doesn't seem to work with the latest httpd cvs:

Expecting parenth after identifier in `apr_opt_fn_t *pfn'
after `apr_opt_fn_t ' at 
/home/stas/perl/ithread/lib/site_perl/5.7.2/C/Scan.pm line 851.
	C::Scan::do_declaration1('apr_opt_fn_t 
*pfn','HASH(0x86d8100)','HASH(0x86c142c)',1) called at 
/home/stas/perl/ithread/lib/site_perl/5.7.2/C/Scan.pm line 808
	C::Scan::do_declaration('void apr_register_optional_fn(const char 
*szName,\x{a}           ...','HASH(0x86d8100)','HASH(0x86c142c)') called 
at /home/stas/perl/ithread/lib/site_perl/5.7.2/C/Scan.pm line 738
...

I think I've traced it to include/apr_optional.h
but the affected file didn't seem to change recently,

I can be wrong

any ideas?

Thanks.
_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: make source_scan doesn't work

Posted by Doug MacEachern <do...@covalent.net>.
On Mon, 4 Mar 2002, Stas Bekman wrote:

> I've simply patched C::Scan not do die on the parsing problem. Also 
> added local() fix. This is against http://www.apache.org/~dougm/Scan.pm

nice work.  i've updated ~dougm/Scan.pm with your patch.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: make source_scan doesn't work

Posted by Stas Bekman <st...@stason.org>.
Doug MacEachern wrote:
> On Sat, 2 Mar 2002, Stas Bekman wrote:
> 
> 
>>Thanks Doug, it still fails though, with a new problem:
>>
> 
> can't really help here.  you'll have to dig around and try to figure out 
> which .h file is causing this.  

I cannot figure that out, since it seems like an expansion of some macro ;(

> do you need the tables updated to sync 
> with httpd-2.0 or to add a new function?  if the latter, probably easier 
> just to add it by hand for now.

I need to do both, sync with httpd-2.0 and add a bunch of new functions.

I've simply patched C::Scan not do die on the parsing problem. Also 
added local() fix. This is against http://www.apache.org/~dougm/Scan.pm

--- /home/stas/Scan.pm	Mon Mar  4 14:29:31 2002
+++ /home/stas/perl/ithread/lib/site_perl/5.7.2/C/Scan.pm	Mon Mar  4 14:32:07 2002
@@ -433,7 +433,7 @@
      } else {
        $vars = parse_vars($chunk);
      }
-    push @$struct, @$vars;
+    push @$struct, @{$vars||[]};
    }
    $structs->{$structname} = $struct;
    $structname;
@@ -914,7 +914,7 @@
    }
    my $stream = $class->new(@_);
    my $oh = select $stream;
-  $/ = undef;
+  local $/;
    select $oh;
    <$stream>;
  }


-- 


_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: make source_scan doesn't work

Posted by Doug MacEachern <do...@covalent.net>.
On Sat, 2 Mar 2002, Stas Bekman wrote:

> Thanks Doug, it still fails though, with a new problem:

can't really help here.  you'll have to dig around and try to figure out 
which .h file is causing this.  do you need the tables updated to sync 
with httpd-2.0 or to add a new function?  if the latter, probably easier 
just to add it by hand for now.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: make source_scan doesn't work

Posted by Stas Bekman <st...@stason.org>.
Doug MacEachern wrote:
> C::Scan never could parse apr_optional.h, either ap_config.h or 
> mod_log_config.h recently started including it.  neither are required for 
> our source tables, so they are skipped now.

Thanks Doug, it still fails though, with a new problem:

make source_scan
/home/stas/perl/ithread/bin/perl5.7.2 build/source_scan.pl
panic: can't parse function pointer declaration in '
     unsigned short int __attribute__ ((__section__ (".text.init")));'
Can't use an undefined value as an ARRAY reference at 
/home/stas/perl/ithread/lib/site_perl/5.7.2/C/Scan.pm line 436.
	C::Scan::parse_struct('struct             \x{a}  {\x{a}    unsigned short 
int __x[3];\x{a}    un...','HASH(0x86f3138)') called at 
/home/stas/perl/ithread/lib/site_perl/5.7.2/C/Scan.pm line 399
	C::Scan::typedef_structs('HASH(0x86cc1ac)','ARRAY(0x87f4be4)') called at 
/home/stas/perl/ithread/lib/site_perl/5.7.2/Data/Flow.pm line 69
	Data::Flow::request('Apache::ParseSource::Scan=ARRAY(0x86eec08)','typedef_structs') called at /home/stas/perl/ithread/lib/site_perl/5.7.2/Data/Flow.pm line 39
	Data::Flow::get('Apache::ParseSource::Scan=ARRAY(0x86eec08)','typedef_structs') called at lib/Apache/ParseSource.pm line 49
	Apache::ParseSource::Scan::get('Apache::ParseSource::Scan=ARRAY(0x86eec08)','typedef_structs') called at lib/Apache/ParseSource.pm line 362
	Apache::ParseSource::get_structs('Apache::ParseSource=HASH(0x86d03d4)') 
called at lib/Apache/ParseSource.pm line 412
	Apache::ParseSource::write_structs_pm('Apache::ParseSource=HASH(0x86d03d4)') called at build/source_scan.pl line 20
make: *** [source_scan] Error 255


_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: make source_scan doesn't work

Posted by Doug MacEachern <do...@covalent.net>.
C::Scan never could parse apr_optional.h, either ap_config.h or 
mod_log_config.h recently started including it.  neither are required for 
our source tables, so they are skipped now.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org