Skip site navigation (1) Skip section navigation (2)

Re: wxWidgets 2.9 build

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
Cc: Guillaume Lelarge <guillaume(at)lelarge(dot)info>, pgadmin-hackers(at)postgresql(dot)org, Magnus Hagander <magnus(at)hagander(dot)net>
Subject: Re: wxWidgets 2.9 build
Date: 2011-01-19 09:11:58
Message-ID: AANLkTimbONj41+xVgQ+crGHSuN_Mrq1ptqP01TN2PXGt@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
Sorry - I don't know the first thing about bison/flex. Magnus took
charge of that patch though - hopefully he knows more!

On Tue, Jan 18, 2011 at 8:29 PM, Peter Geoghegan
<peter(dot)geoghegan86(at)gmail(dot)com> wrote:
> Hmmm....I've come up against a problem.
>
> I found that when I ran the shell script parser.sh, bison and flex
> were run on the pgscript context-free grammar. My casts seem to work.
> However, a new problem has emerged. Here's part of the make output:
>
> g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/pgsql/include
> -I/usr/local/pgsql/include -DHAVE_CONNINFO_PARSE
> -I/usr/local/lib/wx/include/gtk2-unicode-2.9
> -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL
> -D__WXGTK__ -O2 -DEMBED_XRC -I/usr/include/libxml2
> -I/usr/include/libxml2
> -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall
> -Wno-non-virtual-dtor -fno-strict-aliasing -I../pgadmin/include   -MT
> lex.pgs.o -MD -MP -MF .deps/lex.pgs.Tpo -c -o lex.pgs.o `test -f
> './pgscript/lex.pgs.cc' || echo './'`./pgscript/lex.pgs.cc
> pgscript/lex.pgs.cc:315:25: error: no ‘int pgsFlexLexer::yywrap()’
> member function declared in class ‘pgsFlexLexer’
> In file included from pgscript/pgsScanner.ll:17:0:
> pgscript/pgsParser.yy:109:2: error: ‘pgsExpression’ does not name a type
> pgscript/pgsParser.yy:110:2: error: ‘pgsStmt’ does not name a type
> pgscript/pgsParser.yy:111:2: error: ‘pgsStmtList’ does not name a type
> make[2]: [lex.pgs.o] Error 1 (ignored)
> mv -f .deps/lex.pgs.Tpo .deps/lex.pgs.Po
> mv: cannot stat `.deps/lex.pgs.Tpo': No such file or directory
> make[2]: [lex.pgs.o] Error 1 (ignored)
> g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/pgsql/include
> -I/usr/local/pgsql/include -DHAVE_CONNINFO_PARSE
> -I/usr/local/lib/wx/include/gtk2-unicode-2.9
> -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL
> -D__WXGTK__ -O2 -DEMBED_XRC -I/usr/include/libxml2
> -I/usr/include/libxml2
> -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall
> -Wno-non-virtual-dtor -fno-strict-aliasing -I../pgadmin/include   -MT
> parser.tab.o -MD -MP -MF .deps/parser.tab.Tpo -c -o parser.tab.o `test
> -f './pgscript/parser.tab.cc' || echo './'`./pgscript/parser.tab.cc
> mv -f .deps/parser.tab.Tpo .deps/parser.tab.Po
> g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/pgsql/include
> -I/usr/local/pgsql/include -DHAVE_CONNINFO_PARSE
> -I/usr/local/lib/wx/include/gtk2-unicode-2.9
> -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL
> -D__WXGTK__ -O2 -DEMBED_XRC -I/usr/include/libxml2
> -I/usr/include/libxml2
> -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall
> -Wno-non-virtual-dtor -fno-strict-aliasing -I../pgadmin/include   -MT
> pgsCast.o -MD -MP -MF .deps/pgsCast.Tpo -c -o pgsCast.o `test -f
> './pgscript/expressions/pgsCast.cpp' || echo
> './'`./pgscript/expressions/pgsCast.cpp
> In file included from ./pgscript/expressions/pgsCast.cpp:17:0:
> pgscript/pgsParser.yy:110:2: error: ‘pgsStmt’ does not name a type
> pgscript/pgsParser.yy:111:2: error: ‘pgsStmtList’ does not name a type
> ./pgscript/expressions/pgsCast.cpp: In member function ‘virtual
> pgsOperand pgsCast::eval(pgsVarMap&) const’:
> ./pgscript/expressions/pgsCast.cpp:94:23: error: invalid use of
> incomplete type ‘struct pgsRecord’
> ../pgadmin/include/pgscript/objects/pgsVariable.h:19:7: error: forward
> declaration of ‘struct pgsRecord’
> ./pgscript/expressions/pgsCast.cpp:96:23: error: invalid use of
> incomplete type ‘struct pgsString’
> ../pgadmin/include/pgscript/objects/pgsVariable.h:20:7: error: forward
> declaration of ‘struct pgsString’
> make[2]: [pgsCast.o] Error 1 (ignored)
> mv -f .deps/pgsCast.Tpo .deps/pgsCast.Po
> mv: cannot stat `.deps/pgsCast.Tpo': No such file or directory
> make[2]: [pgsCast.o] Error 1 (ignored)
> g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/pgsql/include
> -I/usr/local/pgsql/include -DHAVE_CONNINFO_PARSE
> -I/usr/local/lib/wx/include/gtk2-unicode-2.9
> -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL
> -D__WXGTK__ -O2 -DEMBED_XRC -I/usr/include/libxml2
> -I/usr/include/libxml2
> -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall
> -Wno-non-virtual-dtor -fno-strict-aliasing -I../pgadmin/include   -MT
> pgsDriver.o -MD -MP -MF .deps/pgsDriver.Tpo -c -o pgsDriver.o `test -f
> './pgscript/utilities/pgsDriver.cpp' || echo
> './'`./pgscript/utilities/pgsDriver.cpp
> In file included from ../pgadmin/include/pgscript/utilities/pgsScanner.h:33:0,
>                 from ../pgadmin/include/pgscript/utilities/pgsDriver.h:15,
>                 from ./pgscript/utilities/pgsDriver.cpp:12:
> pgscript/pgsParser.yy:109:2: error: ‘pgsExpression’ does not name a type
> pgscript/pgsParser.yy:110:2: error: ‘pgsStmt’ does not name a type
> pgscript/pgsParser.yy:111:2: error: ‘pgsStmtList’ does not name a type
> ./pgscript/utilities/pgsDriver.cpp: In member function ‘bool
> pgscript::pgsDriver::parse_stream(std::istream&)’:
> ./pgscript/utilities/pgsDriver.cpp:42:9: error: ‘class
> pgscript::pgsParser’ has no member named ‘set_debug_level’
> ./pgscript/utilities/pgsDriver.cpp: In member function ‘void
> pgscript::pgsDriver::error(const pgscript::location&, const
> wxString&)’:
> ./pgscript/utilities/pgsDriver.cpp:75:9: error: invalid use of
> incomplete type ‘struct pgsContext’
> ../pgadmin/include/pgscript/utilities/pgsDriver.h:19:7: error: forward
> declaration of ‘struct pgsContext’
> make[2]: [pgsDriver.o] Error 1 (ignored)
> mv -f .deps/pgsDriver.Tpo .deps/pgsDriver.Po
> mv: cannot stat `.deps/pgsDriver.Tpo': No such file or directory
> make[2]: [pgsDriver.o] Error 1 (ignored)
> g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/pgsql/include
> -I/usr/local/pgsql/include -DHAVE_CONNINFO_PARSE
> -I/usr/local/lib/wx/include/gtk2-unicode-2.9
> -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL
> -D__WXGTK__ -O2 -DEMBED_XRC -I/usr/include/libxml2
> -I/usr/include/libxml2
> -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall
> -Wno-non-virtual-dtor -fno-strict-aliasing -I../pgadmin/include   -MT
> pgsThread.o -MD -MP -MF .deps/pgsThread.Tpo -c -o pgsThread.o `test -f
> './pgscript/utilities/pgsThread.cpp' || echo
> './'`./pgscript/utilities/pgsThread.cpp
> mv -f .deps/pgsThread.Tpo .deps/pgsThread.Po
>
> Here are the versions I've been using:
>
> [peter(at)localhost pgscript]$ flex --version
> flex 2.5.35
> [peter(at)localhost pgscript]$ bison --version
> bison (GNU Bison) 2.4.3
> Written by Robert Corbett and Richard Stallman.
>
> There is no obvious explanation for pgsExpression and the other
> statements apparently not being defined - it's difficult to imagine a
> new wx version having this effect. On the other hand, I don't know
> much about lexx and yacc. Does anyone know what the problem might be?
>
> When I'm done with this, I'll run the pgscript unit tests.
>
> --
> Regards,
> Peter Geoghegan
>



-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

pgadmin-hackers by date

Next:From: Dave PageDate: 2011-01-19 09:12:45
Subject: Re: wxWidgets 2.9 build
Previous:From: Dave PageDate: 2011-01-19 08:56:33
Subject: pgAdmin website commit: Update link to the Windows installer.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group