Re: 1.0.16 won't compile on OS X 10.4.11

[email protected] (Michael G Schwern) Tue, 18 Dec 2007 01:29:42 -0800
Newsgroups perl.perl1.porters
Message-ID <[email protected]>
Richard Clamp wrote:
> Take those declarations away (because we're including stdlib.h now), and
> then yacc cuts loose:

I got similar results.


> perly.c: At top level:
> perly.c:26: error: conflicting types for ‘l’
> perl.y:245: error: previous implicit declaration of ‘l’ was here
> perly.c:1372: error: conflicting types for ‘mod_match’
> perl.y:332: error: previous implicit declaration of ‘mod_match’ was here
> perly.c:2149: error: conflicting types for ‘addflags’
> perl.y:336: error: previous implicit declaration of ‘addflags’ was here
> perly.c:2157: error: conflicting types for ‘hide_ary’
> perl.y:358: error: previous implicit declaration of ‘hide_ary’ was here
> perly.c:2166: error: conflicting types for ‘make_list’
> perl.y:358: error: previous implicit declaration of ‘make_list’ was here
> perly.c:2218: error: conflicting types for ‘listish’
> perl.y:242: error: previous implicit declaration of ‘listish’ was here
> perly.c:2241: error: conflicting types for ‘cval_to_arg’
> perl.y:398: error: previous implicit declaration of ‘cval_to_arg’ was here
> perly.c:2301: error: conflicting types for ‘cmd_to_arg’
> perl.y:162: error: previous implicit declaration of ‘cmd_to_arg’ was here
> make: *** [perl.o] Error 1
> 
> Does anyone see the obvious thing here?

I do note that the function declarations in perly.c look funny.

ARG *
mod_match(type,left,pat)
register ARG *left;
register ARG *pat;
{


-- 
Life is like a sewer - what you get out of it depends on what you put into it.
    - Tom Lehrer