Re: [Pgbuildfarm-members] Snow Leopard bison/flex build problem - Mailing list pgsql-hackers

From Robert Creager
Subject Re: [Pgbuildfarm-members] Snow Leopard bison/flex build problem
Date
Msg-id 4C1DEE54-4416-4B82-BB53-27E6E79DF000@logicalchaos.org
Whole thread Raw
In response to Re: [Pgbuildfarm-members] Snow Leopard bison/flex build problem  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [Pgbuildfarm-members] Snow Leopard bison/flex build problem
List pgsql-hackers
On Sep 7, 2009, at 11:29 AM, Andrew Dunstan wrote:

>
>
> Robert Creager wrote:
>>
>> Upgraded to Snow Leopard Saturday, and am having problems building  
>> now.
>>
>> The build logs are here
>> http://buildfarm.postgresql.org/cgi-bin/show_status.pl?member=polecat
>>
>> And the failing part is here:
>> make -C preproc all
>> make -C ../../../../src/port all
>> make[5]: Nothing to be done for `all'.
>> "/usr/bin/perl" ./parse.pl . < ../../../backend/parser/gram.y >  
>> preproc.y
>> /usr/bin/bison -d  -o preproc.c preproc.y
>> /usr/bin/flex  -o'pgc.c' pgc.l
>> /opt/local/bin/ccache gcc -no-cpp-precomp -I/opt/local/include - 
>> Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after- 
>> statement -Wendif-labels -fno-strict-aliasing -fwrapv -g  - 
>> DECPG_COMPILE -I../include -I../../../../src/interfaces/ecpg/ 
>> include -I. -I. -DMAJOR_VERSION=4 -DMINOR_VERSION=6 -DPATCHLEVEL=0 - 
>> I../../../../src/include -I/usr/include/libxml2   -c -o preproc.o  
>> preproc.c
>> In file included from preproc.y:12065:
>> pgc.c:161: error: conflicting types for 'yyleng'
>> extern.h:43: error: previous declaration of 'yyleng' was here
>> pgc.c:288: error: conflicting types for 'yyleng'
>> extern.h:43: error: previous declaration of 'yyleng' was here
>> make[4]: *** [preproc.o] Error 1
>> make[3]: *** [all] Error 2
>> make[2]: *** [all] Error 2
>> make[1]: *** [all] Error 2
>> make: *** [all] Error 2
>>
>
> Please try building by hand and examine the files to find out what  
> the conflict is between these declarations.
>
> This is really a -hackers question.

pgc.c - 161:

extern yy_size_t yyleng;

extern.h - 43 :

extern int      yylineno,                        yyleng;

Thanks,
Rob



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Patch: update Bonjour support to the newer non-deprecated API
Next
From: Tom Lane
Date:
Subject: Re: [Pgbuildfarm-members] Snow Leopard bison/flex build problem