Thread: compile problem
Hello I am trying to compile pgadmin3-1.0.2 on fedora core 2. I am following the install method given on the download page. I downloaded the wxWindows( wxWindows-pgAdmin3-20031010-7.tar.bz2) source from a mirror. wxwindows goes fine. stc goes fine. xrc goes fine. ./configure of pgadmin goes fine but when i do make all this is wat i get after quiet a while. It seems like i am missingsome prerequisite but wat is it??? pgAdmin3.o(.text+0x14): In function `wxCreateApp()': /usr/local/include/wx/vidmode.h:26: undefined reference to `wxAppConsole::CheckBuildOptions(char const*, char const*)' pgAdmin3.o(.text+0xa1): In function `main': /usr/local/pgadmin3-1.0.2/src/pgAdmin3.cpp:66: undefined reference to `wxEntry(int&, char**)' pgAdmin3.o(.text+0xc7): In function `pgAdmin3::OnInit()': /usr/local/pgadmin3-1.0.2/src/pgAdmin3.cpp:75: undefined reference to `wxString::wxString[in-charge](wchar_t const*)' pgAdmin3.o(.text+0xd4):/usr/local/pgadmin3-1.0.2/src/pgAdmin3.cpp:75: undefined reference to `wxPathOnly(wxString const&)' pgAdmin3.o(.text+0x170):/usr/local/pgadmin3-1.0.2/src/pgAdmin3.cpp:92: undefined reference to `wxString::wxString[in-charge](wchar_tconst*)' pgAdmin3.o(.text+0x17c):/usr/local/pgadmin3-1.0.2/src/pgAdmin3.cpp:92: undefined reference to `wxDir::Exists(wxString const&)' pgAdmin3.o(.text+0x1e0):/usr/local/pgadmin3-1.0.2/src/pgAdmin3.cpp:93: undefined reference to `wxString::operator=(wchar_tconst*)' pgAdmin3.o(.text+0x1fe):/usr/local/pgadmin3-1.0.2/src/pgAdmin3.cpp:95: undefined reference to `operator+(wxString const&,wchar_t const*)' pgAdmin3.o(.text+0x266):/usr/local/pgadmin3-1.0.2/src/pgAdmin3.cpp:97: undefined reference to `wxString::wxString[in-charge](wchar_tconst*)' pgAdmin3.o(.text+0x272):/usr/local/pgadmin3-1.0.2/src/pgAdmin3.cpp:97: undefined reference to `wxDir::Exists(wxString const&)' pgAdmin3.o(.text+0x2d6):/usr/local/pgadmin3-1.0.2/src/pgAdmin3.cpp:98: undefined reference to `wxString::operator=(wchar_tco............ regards, Babar Haq -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm
> -----Original Message----- > From: pgadmin-support-owner@postgresql.org > [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of babar haq > Sent: 26 July 2004 09:48 > To: pgadmin-support@postgresql.org > Subject: [pgadmin-support] compile problem > > Hello > I am trying to compile pgadmin3-1.0.2 on fedora core 2. I am > following the install method given on the download page. > I downloaded the wxWindows( > wxWindows-pgAdmin3-20031010-7.tar.bz2) source from a mirror. > wxwindows goes fine. > stc goes fine. > xrc goes fine. > ./configure of pgadmin goes fine but when i do make all this > is wat i get after quiet a while. It seems like i am missing > some prerequisite but wat is it??? Hello, FC2 requires a much newer snapshot - specifically: wxWidgets-pgAdmin3-20040711-1.tar.bz2 which can be found at http://pgadmin.postgresql.org/snapshots/wxWidgets/. You will also need a recent pgAdmin snapshot. Regards, Dave.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, On Mon, 26 Jul 2004, Dave Page wrote: > FC2 requires a much newer snapshot - specifically: > wxWidgets-pgAdmin3-20040711-1.tar.bz2 which can be found at > http://pgadmin.postgresql.org/snapshots/wxWidgets/. You will also need a > recent pgAdmin snapshot. Building from source is really not an attractive option for RPM-base distros. I've checked the spec files included but noone seems to work :( Anyway, I've compiled wxWidgets and downloaded pgadmin3 latest snapshot. (If anyone intends to build wxWidgets, please don't forget to build contrib/{xrc,stc} after make install, so that pgadmin3 won't complain during configure process...) I got the following errors : ============================================== 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/lib/wx/include/gtk-2.5 -I/usr/local/include - -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES - -I/usr/local/include -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" - -Wall -g -I../src/include -I../src/agent/include -g -O2 -MT pgConn.o -MD - -MP -MF ".deps/pgConn.Tpo" \ -c -o pgConn.o `test -f 'db/pgConn.cpp' || echo './'`db/pgConn.cpp; \ then mv -f ".deps/pgConn.Tpo" ".deps/pgConn.Po"; \ else rm -f ".deps/pgConn.Tpo"; exit 1; \ fi db/pgConn.cpp:19:24: pgfeatures.h: No such file or directory db/pgConn.cpp: In member function `bool pgConn::HasFeature(int)': db/pgConn.cpp:434: error: `FEATURE_INITIALIZED' undeclared (first use this function) db/pgConn.cpp:434: error: (Each undeclared identifier is reported only once for each function it appears in.) db/pgConn.cpp:438: error: `FEATURE_SIZE' undeclared (first use this function) db/pgConn.cpp:444: error: `FEATURE_FILEREAD' undeclared (first use this function) db/pgConn.cpp:454: error: `FEATURE_LAST' undeclared (first use this function) db/pgConn.cpp:457:2: warning: no newline at end of file make[2]: *** [pgConn.o] Error 1 make[2]: Leaving directory `/root/system/sources/pgadmin/pgadmin3-1.1.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/system/sources/pgadmin/pgadmin3-1.1.0' ======================================================== 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) iD8DBQFBBNGNtl86P3SPfQ4RAlruAKClK4tA+Z2ErbMIsAoIFHMtA0sWqwCgxOpK faVRBOUdx5Cz9AdvYMhTZlE= =+p11 -----END PGP SIGNATURE-----
> -----Original Message----- > From: Devrim GUNDUZ [mailto:devrim@gunduz.org] > Sent: 26 July 2004 10:40 > To: Dave Page > Cc: pgadmin-support@postgresql.org > Subject: Re: [pgadmin-support] compile problem > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Hi, > > On Mon, 26 Jul 2004, Dave Page wrote: > > > FC2 requires a much newer snapshot - specifically: > > wxWidgets-pgAdmin3-20040711-1.tar.bz2 which can be found at > > http://pgadmin.postgresql.org/snapshots/wxWidgets/. You > will also need > > a recent pgAdmin snapshot. > > Building from source is really not an attractive option for > RPM-base distros. I've checked the spec files included but > noone seems to work :( Agreed, however I don't have any appropriate RPM based distros so am unable to create the required RPMs. If anyone else can please shout!! > db/pgConn.cpp: In member function `bool pgConn::HasFeature(int)': > db/pgConn.cpp:434: error: `FEATURE_INITIALIZED' undeclared That looks like something Andreas has been working on... Regards Dave.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, On Mon, 26 Jul 2004, Dave Page wrote: > > Building from source is really not an attractive option for > > RPM-base distros. I've checked the spec files included but > > noone seems to work :( > > Agreed, however I don't have any appropriate RPM based distros so am > unable to create the required RPMs. If anyone else can please shout!! you know I could, but since the release of FC2, -always- something is broken so that I really could not compile it :( > > db/pgConn.cpp: In member function `bool pgConn::HasFeature(int)': > > db/pgConn.cpp:434: error: `FEATURE_INITIALIZED' undeclared > > That looks like something Andreas has been working on... Hımm, let me take a look at the older snapshots. 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) iD8DBQFBBNOutl86P3SPfQ4RAqdBAKCNt8L5o6YWR0y8fDdimHUx5ZUpfACffjuv tDWpLxCmOHoC29dNrVxtJPM= =Vl1R -----END PGP SIGNATURE-----
Devrim GUNDUZ wrote: > db/pgConn.cpp:19:24: pgfeatures.h: No such file or directory It's correctly in CVS, cvs update again. Regards, Andreas
Hi, On Mon, 26 Jul 2004, Andreas Pflug wrote: > > db/pgConn.cpp:19:24: pgfeatures.h: No such file or directory > > It's correctly in CVS, cvs update again. This time, I got another 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/lib/wx/include/gtk-2.5 -I/usr/local/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/local/include -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g -I../src/include -I../src/agent/include -g -O2 -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&, long long int)': utils/utffile.cpp:86: error: no matching function for call to `wxMBConv::MB2WC( wxStringBuffer, char*&, unsigned int)' /usr/local/include/wx/strconv.h:46: error: candidates are: virtual size_t wxMBConv::MB2WC(wchar_t*, const char*, unsignedint) const make[2]: *** [utffile.o] Error 1 make[2]: Leaving directory `/root/system/sources/pgadmin/CVS/pgadmin3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/system/sources/pgadmin/CVS/pgadmin3' make: *** [all] Error 2 ===================================================================== Regards, -- Devrim GUNDUZ devrim~gunduz.org devrim.gunduz~linux.org.tr http://www.tdmsoft.com http://www.gunduz.org
Devrim GUNDUZ wrote: > utils/utffile.cpp: In member function `off_t wxUtfFile::Read(wxString&, > long > long int)': > utils/utffile.cpp:86: error: no matching function for call to > `wxMBConv::MB2WC( > wxStringBuffer, char*&, unsigned int)' > /usr/local/include/wx/strconv.h:46: error: candidates are: virtual size_t > wxMBConv::MB2WC(wchar_t*, const char*, unsigned int) const This seems to be a compililer weirdness; at least, that part isn't changed for quite a while. buffer is clearly a char*, which should convert smoothly to a const char*. Please hit your compiler with a hammer (which version is that?), try a cast and tell us how it works. Regards, Andreas
> FC2 requires a much newer snapshot - specifically: > wxWidgets-pgAdmin3-20040711-1.tar.bz2 which can be found at > http://pgadmin.postgresql.org/snapshots/wxWidgets/. You will also need a > recent pgAdmin snapshot. > Ok have tried that as well. as b4 wxWidgets installation went fine. downloaded this file from http://pgadmin.postgresql.org/snapshots/pgadmin3-src.tar.gz 26-Jul-2004 21:00 seems to me the latest. make all gives me this .................... else rm -f ".deps/pgConn.Tpo"; exit 1; \ fi db/pgConn.cpp:19:24: pgfeatures.h: No such file or directory db/pgConn.cpp: In constructor `pgConn::pgConn(const wxString&, const wxString&, const wxString&, const wxString&, int, int)': db/pgConn.cpp:66: error: `FEATURE_INITIALIZED' undeclared (first use this function) db/pgConn.cpp:66: error: (Each undeclared identifier is reported only once for each function it appears in.) db/pgConn.cpp: In member function `bool pgConn::HasFeature(int)': db/pgConn.cpp:439: error: `FEATURE_SIZE' undeclared (first use this function) db/pgConn.cpp:445: error: `FEATURE_FILEREAD' undeclared (first use this function) db/pgConn.cpp:455: error: `FEATURE_LAST' undeclared (first use this function) db/pgConn.cpp:458:2: warning: no newline at end of file make[2]: *** [pgConn.o] Error 1 make[2]: Leaving directory `/usr/local/pgadmin3-1.1.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/pgadmin3-1.1.0' make: *** [all] Error 2 thanx for ur help Babar -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm
> -----Original Message----- > From: babar haq [mailto:babarhaq@email.com] > Sent: 27 July 2004 10:46 > To: Dave Page; pgadmin-support@postgresql.org > Subject: RE: [pgadmin-support] compile problem > > > > FC2 requires a much newer snapshot - specifically: > > wxWidgets-pgAdmin3-20040711-1.tar.bz2 which can be found at > > http://pgadmin.postgresql.org/snapshots/wxWidgets/. You > will also need > > a recent pgAdmin snapshot. > > > Ok have tried that as well. as b4 wxWidgets installation went > fine. downloaded this file from > http://pgadmin.postgresql.org/snapshots/pgadmin3-src.tar.gz > 26-Jul-2004 21:00 seems to me the latest. > make all gives me this > .................... I think you just got unlucky - Andreas fixed that yesterday. Can try the 27 July snapshot which is there now? I did see another post yesterday about a possible problem with the version of gcc & pga3 on fc2 so there may be more issues yet - that's the price you pay for using dev code though :-( Regards, Dave
Dave Page wrote: > I think you just got unlucky - Andreas fixed that yesterday. Can try the > 27 July snapshot which is there now? Sorry, seems I missed makefile.am, my dear old friend, again... Updated in cvs now. Until the tars are rebuilt, please checkout that file directly from CVS to src/include. Regards, Andreas
> > I think you just got unlucky - Andreas fixed that yesterday. Can try the > 27 July snapshot which is there now? well its still not visible to me on the snapshot page. i am checking out the cvs one. > > I did see another post yesterday about a possible problem with the > version of gcc & pga3 on fc2 so there may be more issues yet - that's > the price you pay for using dev code though :-( no problemo. thats the power of opensource:) Just hope that can make it run at last. cause our companys decision of usingpostgres is depending on it. Regards, Babar Haq -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm