Thread: Compilation error

Compilation error

From
"Giovanni P. Tirloni"
Date:
Hi,
I'm trying to compile pgadmin3-src-20040816.tar.gz with
wxWidgets-pgAdmin3-20040711-1.tar.bz2 on a Fedora Core 3 (test1) system
and I get the following error:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. 
-DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
-I../src/include -I../src/agent/include -I/usr/include -DSSL
-I/usr/local/wxwidgets-2.5/lib/wx/include/gtk-2.5
-I/usr/local/wxwidgets-2.5/include -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA
-I/usr/local/wxwidgets-2.5/include
-DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
-I../src/include -I../src/agent/include -g -O2 -MT frmBackup.o -MD -MP
-MF ".deps/frmBackup.Tpo" \ -c -o frmBackup.o `test -f 'ui/frmBackup.cpp' || echo
'./'`ui/frmBackup.cpp; \
then mv -f ".deps/frmBackup.Tpo" ".deps/frmBackup.Po"; \
else rm -f ".deps/frmBackup.Tpo"; exit 1; \
fi
../src/include/dlgClasses.h:116: error: `void
ExternProcessDialog::OnClose(wxCloseEvent&)' is protected
ui/frmBackup.cpp:53: error: within this context
make[2]: ** [frmBackup.o] Erro 1

wxWidgets install finished successfuly. So did stc and xrc.

-- 
Giovanni P. Tirloni



Re: Compilation error

From
Raphaël Enrici
Date:
Giovanni P. Tirloni wrote:
> Hi,
> 
>  I'm trying to compile pgadmin3-src-20040816.tar.gz with
> wxWidgets-pgAdmin3-20040711-1.tar.bz2 on a Fedora Core 3 (test1) system
> and I get the following error:

can you confirm you are using a gcc 3.4.X series ?

If yes, we are currently patching padmin III to be compliant with it.

Andreas submitted a patch recently but there are still some files to 
patch. I'm currently working on this.

Regards,
Raphaël

> 
>  if g++ -DHAVE_CONFIG_H -I. -I. -I.. 
> -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
> -I../src/include -I../src/agent/include -I/usr/include -DSSL
> -I/usr/local/wxwidgets-2.5/lib/wx/include/gtk-2.5
> -I/usr/local/wxwidgets-2.5/include -DGTK_NO_CHECK_CASTS -D__WXGTK__
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA
> -I/usr/local/wxwidgets-2.5/include
> -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
> -I../src/include -I../src/agent/include -g -O2 -MT frmBackup.o -MD -MP
> -MF ".deps/frmBackup.Tpo" \
>   -c -o frmBackup.o `test -f 'ui/frmBackup.cpp' || echo
> './'`ui/frmBackup.cpp; \
> then mv -f ".deps/frmBackup.Tpo" ".deps/frmBackup.Po"; \
> else rm -f ".deps/frmBackup.Tpo"; exit 1; \
> fi
> .../src/include/dlgClasses.h:116: error: `void
> ExternProcessDialog::OnClose(wxCloseEvent&)' is protected
> ui/frmBackup.cpp:53: error: within this context
> make[2]: ** [frmBackup.o] Erro 1
> 
> 
>  wxWidgets install finished successfuly. So did stc and xrc.
> 



Re: Compilation error

From
Raphaël Enrici
Date:
Giovanni P. Tirloni wrote:
> Raphaël Enrici disse:
> 
>>Giovanni P. Tirloni wrote:
>>
>>>Hi,
>>>
>>> I'm trying to compile pgadmin3-src-20040816.tar.gz with
>>>wxWidgets-pgAdmin3-20040711-1.tar.bz2 on a Fedora Core 3 (test1) system
>>>and I get the following error:
>>
>>can you confirm you are using a gcc 3.4.X series ?
>>
>>If yes, we are currently patching padmin III to be compliant with it.
>>
>>Andreas submitted a patch recently but there are still some files to
>>patch. I'm currently working on this.
> 
> 
>  Yep, 3.4.1.

Ok, so wait a day or two ;)


>  Thank you for the fast answer.

You're welcome. I was on top of the screen :)

Cheers,
Raphaël


Re: Compilation error

From
Raphaël Enrici
Date:
Raphaël Enrici wrote:
> Giovanni P. Tirloni wrote:
> 
>> Raphaël Enrici disse:
>>
>>> Giovanni P. Tirloni wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm trying to compile pgadmin3-src-20040816.tar.gz with
>>>> wxWidgets-pgAdmin3-20040711-1.tar.bz2 on a Fedora Core 3 (test1) system
>>>> and I get the following error:
>>>
>>> can you confirm you are using a gcc 3.4.X series ?
>>> If yes, we are currently patching padmin III to be compliant with it.
>>> Andreas submitted a patch recently but there are still some files to
>>> patch. I'm currently working on this.
>>
>>
>>
>>  Yep, 3.4.1.
> 
> Ok, so wait a day or two ;)


The last patch has just been commited. So, try to checkout now or wait 
for the next tarball snapshot (tomorrow morning).

For reference, the entire thread is available here:
http://www.mail-archive.com/pgadmin-hackers@postgresql.org/msg04031.html

It would be nice if you could send a success report when you are ok with 
the build.

Have a nice day and have fun!

Cheers,
Raphaël


Re: Compilation error

From
"Giovanni P. Tirloni"
Date:
Raphaël Enrici disse:
> The last patch has just been commited. So, try to checkout now or wait
> for the next tarball snapshot (tomorrow morning).
>
> For reference, the entire thread is available here:
> http://www.mail-archive.com/pgadmin-hackers@postgresql.org/msg04031.html
>
> It would be nice if you could send a success report when you are ok with
> the build.
>
> Have a nice day and have fun!
>
> Cheers,
> Raphaël
>


Hi Raphaël,
This is what I get from the code I checked out from CVS now:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. 
-DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
-I../src/include -I../src/agent/include -I/usr/include -DSSL
-I/usr/local/wxwidgets-2.5/lib/wx/include/gtk-2.5
-I/usr/local/wxwidgets-2.5/include -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA
-I/usr/local/wxwidgets-2.5//include
-DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
-I../src/include -I../src/agent/include -Wall -g -O0 -MT utffile.o -MD
-MP -MF ".deps/utffile.Tpo" -c -o utffile.o `test -f 'utils/utffile.cpp'
|| echo './'`utils/utffile.cpp; \
then mv -f ".deps/utffile.Tpo" ".deps/utffile.Po"; else rm -f
".deps/utffile.Tpo"; exit 1; fi
utils/utffile.cpp: In member function `off_t wxUtfFile::Read(wxString&,
off_t)':
utils/utffile.cpp:86: error: no matching function for call to
`wxMBConv::MB2WC(wxStringBuffer, char*&, unsigned int)'
/usr/local/wxwidgets-2.5/include/wx/strconv.h:46: note: candidates are:
virtual size_t wxMBConv::MB2WC(wchar_t*, const char*, size_t) const
make[2]: ** [utffile.o] Erro 1

I kept the same wxWidgets install that I had and just upgraded pgadmin3.
Good luck,

-- 
Giovanni P. Tirloni



Re: Compilation error

From
Raphaël Enrici
Date:
Giovanni P. Tirloni wrote:

>Raphaël Enrici disse:
>  
>
>>For reference, the entire thread is available here:
>>http://www.mail-archive.com/pgadmin-hackers@postgresql.org/msg04031.html
>>It would be nice if you could send a success report when you are ok with
>>the build.
>>    
>>
> This is what I get from the code I checked out from CVS now:
>
> if g++ -DHAVE_CONFIG_H -I. -I. -I.. 
>-DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
>-I../src/include -I../src/agent/include -I/usr/include -DSSL
>-I/usr/local/wxwidgets-2.5/lib/wx/include/gtk-2.5
>-I/usr/local/wxwidgets-2.5/include -DGTK_NO_CHECK_CASTS -D__WXGTK__
>-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA
>-I/usr/local/wxwidgets-2.5//include
>-DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
>-I../src/include -I../src/agent/include -Wall -g -O0 -MT utffile.o -MD
>-MP -MF ".deps/utffile.Tpo" -c -o utffile.o `test -f 'utils/utffile.cpp'
>|| echo './'`utils/utffile.cpp; \
>then mv -f ".deps/utffile.Tpo" ".deps/utffile.Po"; else rm -f
>".deps/utffile.Tpo"; exit 1; fi
>utils/utffile.cpp: In member function `off_t wxUtfFile::Read(wxString&,
>off_t)':
>utils/utffile.cpp:86: error: no matching function for call to
>`wxMBConv::MB2WC(wxStringBuffer, char*&, unsigned int)'
>/usr/local/wxwidgets-2.5/include/wx/strconv.h:46: note: candidates are:
>virtual size_t wxMBConv::MB2WC(wchar_t*, const char*, size_t) const
>make[2]: ** [utffile.o] Erro 1
>
>
> I kept the same wxWidgets install that I had and just upgraded pgadmin3.
>  
>
:(
Can you precise which wxWidgets version you are using ? (it should be 
http://pgadmin.postgresql.org/snapshots/wxWidgets/wxWidgets-pgAdmin3-20040711-1.tar.bz2)
Maybe it would help other hackers around to go further if you'd send 
your configure line for both the wxWid and pgAdmin III products.

@Devrim, Jean-Michel: any try on FC3 (test1) ?

Regards,
Raphaël


Re: Compilation error

From
Devrim GUNDUZ
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

On Tue, 17 Aug 2004, [ISO-8859-1] Raphaël Enrici wrote:

> @Devrim, Jean-Michel: any try on FC3 (test1) ?

No... Not yet. I just began downloading the isos with my 512K DSL, I can
give a try after the download finishes and.... on Friday, when I'll again 
return home.

Regards,
- -- 
Devrim GUNDUZ           
devrim~gunduz.org                devrim.gunduz~linux.org.tr         http://www.tdmsoft.com
http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBITxrtl86P3SPfQ4RAhFAAKDTB/XkNgHqMn8MWa0SPwlfrJ3isgCgwfpw
UGpZ7DXIRc+q/gSruhvsNCo=
=7MWg
-----END PGP SIGNATURE-----



Re: Compilation error [solved]

From
"Giovanni P. Tirloni"
Date:
Raphaël Enrici disse:

> Can you precise which wxWidgets version you are using ? (it should be
> http://pgadmin.postgresql.org/snapshots/wxWidgets/wxWidgets-pgAdmin3-20040711-1.tar.bz2)
> Maybe it would help other hackers around to go further if you'd send
> your configure line for both the wxWid and pgAdmin III products.
Great idea, I probably missed the unicode option for wxWidgets. It works
now!
Thank you very much for the attention spent.
Great work! Congratulations..
So pgadmin 20040817-cvs works for the following environment:
 Fedora Core 3 (test1) GCC 3.4.1 20040714


-- 
Giovanni P. Tirloni



Re: Compilation error [solved]

From
Raphaël Enrici
Date:
Giovanni P. Tirloni wrote:
> Raphaël Enrici disse:
> 
>>Can you precise which wxWidgets version you are using ? (it should be
>>http://pgadmin.postgresql.org/snapshots/wxWidgets/wxWidgets-pgAdmin3-20040711-1.tar.bz2)
>>Maybe it would help other hackers around to go further if you'd send
>>your configure line for both the wxWid and pgAdmin III products.
>  
>  Great idea, I probably missed the unicode option for wxWidgets. It works
> now!

Yeeepeeee! ;)

>  Thank you very much for the attention spent.
>  Great work! Congratulations..
>  So pgadmin 20040817-cvs works for the following environment:
> 
>   Fedora Core 3 (test1)
>   GCC 3.4.1 20040714

I'm glad we got it up :) Thank you for the report and the time you spent 
building the all thing. It will give a breath of fresh air to Devrim :)

Regards,
Raphaël