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

Re: gcc-3.4.1

From: Thomas Trepl <ttrepl(at)yahoo(dot)de>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: gcc-3.4.1
Date: 2004-07-19 18:51:24
Message-ID: 40FC182C.8060306@yahoo.de (view raw or flat)
Thread:
Lists: pgadmin-hackers
Hi Andreas,

--- Andreas Pflug <pgadmin(at)pse-consulting(dot)de> schrieb: > Thomas Trepl 
wrote:
 > > Hi,
 > >
 > > I'm on a beLFS installation (kernel 2.6.7, glibc-2.3.4-cvs, gcc-3.4.1)
 > > and i have found an issue related to gcc-3.4.1.  I have to add that 
I'm
 > > really no C++ programmer, so i don't know whether the following patch
 > > produces nice/correct/complete code, but it helps to get pgAdmin3
 > > compilable with gcc-3.4.1.  The patch relies on a cvs checkout of the
 > > 18, July 2004.
 >
 > Can you provide the error message you received from gcc?
 > I don't quite see why we should make those methods public, they're
 > protected intentionally.

oh yes, of course - I should have added the error message to my first 
mail. Well, here it is:

<hardcopy>
if g++ -DHAVE_CONFIG_H -I. -I. -I..  
-DDATA_DIR=\"/opt/postgresql/share/pgadmin3/\" -Wall -g -I../src/include 
-I../src/agent/include -I/opt/postgresql/include -DSSL 
-I/usr/lib/wx/include/gtk2ud-2.5 -D__WXDEBUG__ -D__WXGTK__ 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA 
-I/usr/include -DDATA_DIR=\"/opt/postgresql/share/pgadmin3/\" -Wall -g 
-I../src/include -I../src/agent/include -Wall -g -O0 -MT frmHelp.o -MD 
-MP -MF ".deps/frmHelp.Tpo" -c -o frmHelp.o `test -f 'ui/frmHelp.cpp' || 
echo './'`ui/frmHelp.cpp; \
then mv -f ".deps/frmHelp.Tpo" ".deps/frmHelp.Po"; else rm -f 
".deps/frmHelp.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  
-DDATA_DIR=\"/opt/postgresql/share/pgadmin3/\" -Wall -g -I../src/include 
-I../src/agent/include -I/opt/postgresql/include -DSSL 
-I/usr/lib/wx/include/gtk2ud-2.5 -D__WXDEBUG__ -D__WXGTK__ 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA 
-I/usr/include -DDATA_DIR=\"/opt/postgresql/share/pgadmin3/\" -Wall -g 
-I../src/include -I../src/agent/include -Wall -g -O0 -MT frmQBJoin.o -MD 
-MP -MF ".deps/frmQBJoin.Tpo" -c -o frmQBJoin.o `test -f 
'ui/frmQBJoin.cpp' || echo './'`ui/frmQBJoin.cpp; \
then mv -f ".deps/frmQBJoin.Tpo" ".deps/frmQBJoin.Po"; else rm -f 
".deps/frmQBJoin.Tpo"; exit 1; fi
../src/include/dlgClasses.h:35: Fehler: `void 
pgDialog::OnCancel(wxCommandEvent&)' is protected
ui/frmQBJoin.cpp:28: Fehler: within this context
make[2]: *** [frmQBJoin.o] Fehler 1
make[2]: Leaving directory `/tmp/pgadmin3-20040718/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/tmp/pgadmin3-20040718'
make: *** [all] Fehler 2
</hardcopy>

Such issues from time to time occurs when using gcc-3.4.x. On many 
packages there are little patches required to get them compilable with 
the new compiler versions.

Greetings,

Thomas
R

Responses

pgadmin-hackers by date

Next:From: cvsDate: 2004-07-20 21:36:41
Subject: CVS Commit by andreas: catch SIGPIPE
Previous:From: cvsDate: 2004-07-19 16:40:26
Subject: CVS Commit by andreas: fix dependency display for tablespaces and users

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