Unix Technical Forum

Compilation errors

This is a discussion on Compilation errors within the pgsql Hackers forums, part of the PostgreSQL category; --> Does anyone happen to know what it is about my build environment that causes these errors? I get a ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 07:26 AM
Gregory Stark
 
Posts: n/a
Default Compilation errors


Does anyone happen to know what it is about my build environment that causes
these errors? I get a similar slew of errors from each flex lexer we built
including the plpgsql lexer, the ecpg lexer, etc. Do I have the wrong version
of flex installed? Something else? It's quite annoying, especially as the beta
version of Emacs I'm using seems to not be able to parse these lines.

In file included from gram.y:9493:
scan.c:7050: warning: no previous prototype for 'base_yyget_lineno'
scan.c:7059: warning: no previous prototype for 'base_yyget_in'
scan.c:7067: warning: no previous prototype for 'base_yyget_out'
scan.c:7075: warning: no previous prototype for 'base_yyget_leng'
scan.c:7084: warning: no previous prototype for 'base_yyget_text'
scan.c:7093: warning: no previous prototype for 'base_yyset_lineno'
scan.c:7105: warning: no previous prototype for 'base_yyset_in'
scan.c:7110: warning: no previous prototype for 'base_yyset_out'
scan.c:7115: warning: no previous prototype for 'base_yyget_debug'
scan.c:7120: warning: no previous prototype for 'base_yyset_debug'
scan.c:7154: warning: no previous prototype for 'base_yylex_destroy'


--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 07:26 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Compilation errors

Gregory Stark wrote:
> Does anyone happen to know what it is about my build environment that causes
> these errors? I get a similar slew of errors from each flex lexer we built
> including the plpgsql lexer, the ecpg lexer, etc. Do I have the wrong version
> of flex installed? Something else? It's quite annoying, especially as the beta
> version of Emacs I'm using seems to not be able to parse these lines.
>
> In file included from gram.y:9493:
> scan.c:7050: warning: no previous prototype for 'base_yyget_lineno'
>
>

[snip]

What versions of flex and bison are you using? It's a bit hard to
diagnose without knowing that ;-)

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-12-2008, 07:26 AM
Peter Eisentraut
 
Posts: n/a
Default Re: Compilation errors

Am Mittwoch, 28. Februar 2007 16:23 schrieb Gregory Stark:
> Does anyone happen to know what it is about my build environment that
> causes these errors?


Nothing. Everybody gets them.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-12-2008, 07:26 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Compilation errors

Peter Eisentraut wrote:
> Am Mittwoch, 28. Februar 2007 16:23 schrieb Gregory Stark:
>
>> Does anyone happen to know what it is about my build environment that
>> causes these errors?
>>

>
> Nothing. Everybody gets them.
>
>


That's not what the buildfarm shows.

example:
http://www.pgbuildfarm.org/cgi-bin/s...13002&stg=make

cheers

andrew


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-12-2008, 07:26 AM
Tom Lane
 
Posts: n/a
Default Re: Compilation errors

Peter Eisentraut <peter_e@gmx.net> writes:
> Am Mittwoch, 28. Februar 2007 16:23 schrieb Gregory Stark:
>> Does anyone happen to know what it is about my build environment that
>> causes these errors?


> Nothing. Everybody gets them.


I don't. What version of flex are you guys using?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-12-2008, 07:27 AM
Gregory Stark
 
Posts: n/a
Default Re: Compilation errors

"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> Peter Eisentraut <peter_e@gmx.net> writes:
>> Am Mittwoch, 28. Februar 2007 16:23 schrieb Gregory Stark:
>>> Does anyone happen to know what it is about my build environment that
>>> causes these errors?

>
>> Nothing. Everybody gets them.

>
> I don't. What version of flex are you guys using?


flex 2.5.33

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-12-2008, 07:27 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Compilation errors

Gregory Stark wrote:
> "Tom Lane" <tgl@sss.pgh.pa.us> writes:
>
>
>> Peter Eisentraut <peter_e@gmx.net> writes:
>>
>>> Am Mittwoch, 28. Februar 2007 16:23 schrieb Gregory Stark:
>>>
>>>> Does anyone happen to know what it is about my build environment that
>>>> causes these errors?
>>>>
>>> Nothing. Everybody gets them.
>>>

>> I don't. What version of flex are you guys using?
>>

>
> flex 2.5.33
>
>


Aha! Known to be broken, iirc. Use flex 2.5.4a

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-12-2008, 07:27 AM
Tom Lane
 
Posts: n/a
Default Re: Compilation errors

Andrew Dunstan <andrew@dunslane.net> writes:
> Gregory Stark wrote:
>> flex 2.5.33


> Aha! Known to be broken, iirc. Use flex 2.5.4a


No, the known breakages with flex were years ago; 2.5.33 has only been
out a year. I think 2.5.31 might have been the one we saw big problems
with (there's a note warning against using it on the flex sourceforge
page).

I think most of us do still use 2.5.4a, but it'd probably be a good idea
to check out 2.5.33 and see if it can be made to not generate warnings.
I'm certainly tired of seeing the warnings 2.5.4a creates ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-12-2008, 07:27 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Compilation errors

Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>
>> Gregory Stark wrote:
>>
>>> flex 2.5.33
>>>

>
>
>> Aha! Known to be broken, iirc. Use flex 2.5.4a
>>

>
> No, the known breakages with flex were years ago; 2.5.33 has only been
> out a year. I think 2.5.31 might have been the one we saw big problems
> with (there's a note warning against using it on the flex sourceforge
> page).
>
> I think most of us do still use 2.5.4a, but it'd probably be a good idea
> to check out 2.5.33 and see if it can be made to not generate warnings.
> I'm certainly tired of seeing the warnings 2.5.4a creates ...
>




It gives me the same warnings that Greg reported.

I guess we could conditionally add prototypes for those functions to all
the .l files if you really want to move to 2.5.33. Kinda yucky, though.

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-12-2008, 07:27 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Compilation errors

I wrote:
>
>
> I guess we could conditionally add prototypes for those functions to
> all the .l files if you really want to move to 2.5.33. Kinda yucky,
> though.
>
>


Actually, we couldn't.The definition section from the .l file gets
included after these functions. So we'd need to include something in
gram.y before including scan.c.

cheers

andrew


---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:23 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com