Thread: problem compiling on suse 10
hi! i am having problems compiling pgadmin on suse linux 10. i have downloaded and compiled wxGTK 2.6.2 without problems (the contrib directory also), using the following configure command: ./configure --with-gtk --enable-gtk2 --enable-unicode --enable-mimetype=yes --enable-debug after installing wx i then attempted to configure and build pgadmin. my pgadmin configure line was: LDFLAGS="-L/usr/lib -lkrb5" ./configure --prefix=/usr/local/pgadmin-svn --enable-debug configure finishes ok (results in attached pgadmin_configure.txt file) but when issuing make, i get an error, included in the attached file pgadmin_make.txt. i have trying omitting the "--enable-debug" option when building wx and pgadmin. in this case the build completes but when i attempt to run pgadmin3, i get issued the message "Segmentation fault.". i have tried wx versions 2.6.0 and 2.6.2, with the same results. since pgadmin builds and works ok on my suse 9.3 system, is it possible that different gcc versions might have anything to do with it? on suse 9.3 i have gcc 3 while on suse 10 i have gcc 4: mcajvar@atair:~> gcc --version gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) please help? :) thanks in advance, Miha checking build system type... i686-suse-linux checking host system type... i686-suse-linux checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking how to create a ustar tar archive... gnutar checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for stdlib.h... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking for working strtod... yes checking for gethostbyname... yes checking for inet_ntoa... yes checking for memmove... yes checking for memset... yes checking for strchr... yes checking for PQexec in -lpq... yes checking for SSL_connect in -lpq... yes checking libpq-fe.h usability... yes checking libpq-fe.h presence... yes checking for libpq-fe.h... yes checking PostgreSQL in /usr... ok checking wxWidgets in /usr/local... ok configure: creating ./config.status config.status: creating Makefile config.status: creating i18n/Makefile config.status: creating src/Makefile config.status: creating pkg/Makefile config.status: creating pkg/debian/Makefile config.status: creating pkg/fc1/Makefile config.status: creating pkg/mac/Makefile config.status: creating pkg/mandrake/Makefile config.status: creating pkg/redhat/Makefile config.status: creating pkg/slackware/Makefile config.status: creating pkg/src/Makefile config.status: creating pkg/suse/Makefile config.status: creating pkg/win32/Makefile config.status: creating xtra/Makefile config.status: creating xtra/pgagent/Makefile config.status: creating xtra/pgagent/pgaevent/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands PostgreSQL directory: /usr PostgreSQL pg_config binary: /usr/bin/pg_config PostgreSQL version: PostgreSQL 8.0.3 wxWidgets directory: /usr/local wxWidgets wx-config binary: /usr/local/bin/wx-config wxWidgets version: wxWidgets 2.6.0 Building a debug version of pgAdmin: Yes Statically linking pgAdmin: No Building a Mac OS X appbundle: No pgAdmin configuration is now complete. You can now compile and install pgAdmin using 'make; make install'. g++ -DDATA_DIR=\"/usr/local/pgadmin-svn/share/pgadmin3/\" -Wall -Wno-non-virtual-dtor -I../src/include -I../src/agent/include-I../src/slony/include -L/usr/lib -lkrb5 -L/usr/lib -L/usr/local/lib -o pgadmin3 pgAdmin3.o base.oappbase.o sysLogger.o pgConnBase.o pgSetBase.o factory.o dlgClasses.o events.o pgConn.o pgSet.o keywords.o pgAggregate.opgCast.o pgCheck.o pgCollection.o pgColumn.o pgConstraints.o pgConversion.o pgDatabase.o pgDomain.o pgForeignKey.opgFunction.o pgGroup.o pgIndex.o pgIndexConstraint.o pgLanguage.o pgObject.o pgOperator.o pgOperatorClass.opgRole.o pgRule.o pgSchema.o pgSequence.o pgServer.o pgTable.o pgTablespace.o pgTrigger.o pgType.o pgUser.opgView.o pgDatatype.o pgaJob.o pgaStep.o pgaSchedule.o dlgJob.o dlgSchedule.o dlgStep.o xh_sqlbox.o xh_calb.o xh_timespin.oxh_ctlcombo.o ctlSecurityPanel.o ctlComboBox.o ctlTree.o calbox.o timespin.o ctlListView.o ctlSQLBox.o ctlSQLResult.oexplainCanvas.o explainShape.o dlgEditGridOptions.o dlgConnect.o dlgHbaConfig.o dlgMainConfig.o dlgSelectConnection.ofrmExport.o frmAbout.o frmIndexcheck.o frmMain.o frmOptions.o frmPassword.o frmQuery.o frmHelp.o frmSplash.ofrmMaintenance.o frmBackup.o frmRestore.o frmGrantWizard.o frmEditGrid.o frmStatus.o frmUpdate.o frmConfig.o frmHbaConfig.ofrmMainConfig.o frmHint.o dlgProperty.o dlgUser.o dlgServer.o dlgGroup.o dlgDatabase.o dlgLanguage.o dlgSchema.odlgDomain.o dlgTable.o dlgTablespace.o dlgColumn.o dlgIndex.o dlgFunction.o dlgView.o dlgRule.o dlgRole.o dlgOperator.odlgAggregate.o dlgCast.o dlgConversion.o dlgIndexConstraint.o dlgForeignKey.o dlgSequence.o dlgTrigger.o dlgType.odlgCheck.o sysSettings.o sysProcess.o misc.o utffile.o pgconfig.o update.o slCluster.o slNode.o slPath.o slListen.oslSet.o slSequence.o slTable.o slSubscription.o dlgRepCluster.o dlgRepNode.o dlgRepListen.o dlgRepPath.o dlgRepSet.odlgRepSequence.o dlgRepTable.o dlgRepSubscription.o xrcDialogs.o -L/usr/lib -lssl -lcrypto -lpq -L/usr/local/lib-pthread -L/usr/X11R6/lib -lwx_gtk2ud_xrc-2.6 -lwx_gtk2ud_qa-2.6 -lwx_gtk2ud_html-2.6 -lwx_gtk2ud_adv-2.6-lwx_gtk2ud_core-2.6 -lwx_baseud_xml-2.6 -lwx_baseud_net-2.6 -lwx_baseud-2.6 -L/usr/local/lib -pthread -L/usr/X11R6/lib -lwx_gtk2ud_stc-2.6 -lwx_gtk2ud_ogl-2.6 -lwx_baseud-2.6 pgAdmin3.o:(.gnu.linkonce.r._ZTV8pgAdmin3[vtable for pgAdmin3]+0xc0): undefined reference to `wxApp::OnAssert(wchar_t const*,int, wchar_t const*, wchar_t const*)' pgAdmin3.o: In function `wxStringBase': /usr/local/include/wx-2.6/wx/string.h:307: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_tconst*)' base.o: In function `wxStringBase::at(unsigned int)': /usr/local/include/wx-2.6/wx/string.h:387: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_tconst*)' appbase.o: In function `pgAppBase::InitXml()': ./base/appbase.cpp:161: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)' appbase.o:(.gnu.linkonce.r._ZTV9pgAppBase[vtable for pgAppBase]+0xc0): undefined reference to `wxApp::OnAssert(wchar_t const*,int, wchar_t const*, wchar_t const*)' sysLogger.o: In function `wxString::operator<<(wxString const&)': /usr/local/include/wx-2.6/wx/string.h:884: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_tconst*)' pgSetBase.o: In function `wxString::Empty()': /usr/local/include/wx-2.6/wx/string.h:700: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_tconst*)' factory.o: In function `wxBaseArrayPtrVoid::Item(unsigned int) const': /usr/local/include/wx-2.6/wx/dynarray.h:809: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_tconst*)' events.o: In function `frmMain::enableSubmenu(int)': ./main/events.cpp:376: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)' events.o: In function `wxCloseEvent::Veto(bool)': /usr/local/include/wx-2.6/wx/event.h:1397: undefined reference to `wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_tconst*)' pgConstraints.o:./schema/pgConstraints.cpp:57: more undefined references to `wxAssert(int, wchar_t const*, int, wchar_t const*,wchar_t const*)' follow collect2: ld returned 1 exit status make[2]: *** [pgadmin3] Error 1 make[2]: Leaving directory `/net/programs/pgadmin-svn/pgadmin3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/net/programs/pgadmin-svn/pgadmin3' make: *** [all] Error 2
> -----Original Message----- > From: pgadmin-support-owner@postgresql.org > [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of Miha Radej > Sent: 08 January 2006 19:38 > To: 'pgadmin-support@postgresql.org' > Subject: [pgadmin-support] problem compiling on suse 10 > > hi! > > i am having problems compiling pgadmin on suse linux 10. i have > downloaded and compiled wxGTK 2.6.2 without problems (the contrib > directory also), using the following configure command: > > ./configure --with-gtk --enable-gtk2 --enable-unicode > --enable-mimetype=yes --enable-debug > > after installing wx i then attempted to configure and build > pgadmin. my > pgadmin configure line was: > > LDFLAGS="-L/usr/lib -lkrb5" ./configure > --prefix=/usr/local/pgadmin-svn > --enable-debug > > configure finishes ok (results in attached > pgadmin_configure.txt file) > but when issuing make, i get an error, included in the attached file > pgadmin_make.txt. > > i have trying omitting the "--enable-debug" option when > building wx and > pgadmin. in this case the build completes but when i attempt to run > pgadmin3, i get issued the message "Segmentation fault.". i > have tried > wx versions 2.6.0 and 2.6.2, with the same results. > > since pgadmin builds and works ok on my suse 9.3 system, is > it possible > that different gcc versions might have anything to do with > it? on suse > 9.3 i have gcc 3 while on suse 10 i have gcc 4: > > mcajvar@atair:~> gcc --version > gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) > > please help? :) It kinda looks like you have some other wx libs on there with a different config that are being picked up instead of the ones in /usr/local/lib. Could that be the case? Maybe Suse ships with some now. Regards, Dave.
> > >> -----Original Message----- >> From: pgadmin-support-owner@postgresql.org >> [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of Miha Radej >> Sent: 08 January 2006 19:38 >> To: 'pgadmin-support@postgresql.org' >> Subject: [pgadmin-support] problem compiling on suse 10 >> >> hi! >> >> i am having problems compiling pgadmin on suse linux 10. i have >> downloaded and compiled wxGTK 2.6.2 without problems (the contrib >> directory also), using the following configure command: >> >> ./configure --with-gtk --enable-gtk2 --enable-unicode >> --enable-mimetype=yes --enable-debug >> >> after installing wx i then attempted to configure and build >> pgadmin. my >> pgadmin configure line was: >> >> LDFLAGS="-L/usr/lib -lkrb5" ./configure >> --prefix=/usr/local/pgadmin-svn >> --enable-debug >> >> configure finishes ok (results in attached >> pgadmin_configure.txt file) >> but when issuing make, i get an error, included in the attached file >> pgadmin_make.txt. >> >> i have trying omitting the "--enable-debug" option when >> building wx and >> pgadmin. in this case the build completes but when i attempt to run >> pgadmin3, i get issued the message "Segmentation fault.". i >> have tried >> wx versions 2.6.0 and 2.6.2, with the same results. >> >> since pgadmin builds and works ok on my suse 9.3 system, is >> it possible >> that different gcc versions might have anything to do with >> it? on suse >> 9.3 i have gcc 3 while on suse 10 i have gcc 4: >> >> mcajvar@atair:~> gcc --version >> gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) >> >> please help? :) > > It kinda looks like you have some other wx libs on there with a > different config that are being picked up instead of the ones in > /usr/local/lib. Could that be the case? Maybe Suse ships with some now. > > Regards, Dave. > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > After removing wxWidgets 2.6.2, downloading and compiling wxWidgets development snapshot (2.7 dev) and compiling pgadmin3 configured with --with-wx-version=2.7, now pgadmin3 runs Ok. Both wxWidgets and pgadmin were configure with --enable-debug. Linux is Fedora Core 4. Regards, Diego.
hi! diego@adminsa.com wrote: > After removing wxWidgets 2.6.2, downloading and compiling wxWidgets > development snapshot (2.7 dev) and compiling pgadmin3 configured with > --with-wx-version=2.7, now pgadmin3 runs Ok. > > Both wxWidgets and pgadmin were configure with --enable-debug. > > Linux is Fedora Core 4. thanks for the information! as soon as i have the time i will try the same. >It kinda looks like you have some other wx libs on there with a>different config that are being picked up instead of theones in>/usr/local/lib. Could that be the case? Maybe Suse ships with some now. i've removed any prior wx* packages from yast. even so i should hope that would not be a problem because suse10 comes with wx 2.6.1 iirc. i'll give diego's recipe a go and report back. thanks again, Miha
> -----Original Message----- > From: Miha Radej [mailto:miha.radej@siix.com] > Sent: 09 January 2006 13:48 > To: diego@adminsa.com > Cc: Dave Page; pgadmin-support@postgresql.org > Subject: Re: [pgadmin-support] problem compiling on suse 10 > > hi! > > diego@adminsa.com wrote: > > After removing wxWidgets 2.6.2, downloading and compiling wxWidgets > > development snapshot (2.7 dev) and compiling pgadmin3 > configured with > > --with-wx-version=2.7, now pgadmin3 runs Ok. > > > > Both wxWidgets and pgadmin were configure with --enable-debug. > > > > Linux is Fedora Core 4. > > thanks for the information! as soon as i have the time i will > try the same. > > >It kinda looks like you have some other wx libs on there with a > >different config that are being picked up instead of the ones in > >/usr/local/lib. Could that be the case? Maybe Suse ships > with some now. > > i've removed any prior wx* packages from yast. even so i should hope > that would not be a problem because suse10 comes with wx 2.6.1 iirc. > > i'll give diego's recipe a go and report back. Did you try this Miha? I should point out that we don't support 2.7 at the moment, and in fact don't intend to if we can help it - 2.6 has all the features we currently need so we don't want to expend effert tracking wx's development releases. 2.6 should definitely work though - I tried a fresh install on Slackware 10 yesterday and it went perfectly. Regards, Dave.
> > >> -----Original Message----- >> From: Miha Radej [mailto:miha.radej@siix.com] >> Sent: 09 January 2006 13:48 >> To: diego@adminsa.com >> Cc: Dave Page; pgadmin-support@postgresql.org >> Subject: Re: [pgadmin-support] problem compiling on suse 10 >> >> hi! >> >> diego@adminsa.com wrote: >> > After removing wxWidgets 2.6.2, downloading and compiling wxWidgets >> > development snapshot (2.7 dev) and compiling pgadmin3 >> configured with >> > --with-wx-version=2.7, now pgadmin3 runs Ok. >> > >> > Both wxWidgets and pgadmin were configure with --enable-debug. >> > >> > Linux is Fedora Core 4. >> >> thanks for the information! as soon as i have the time i will >> try the same. >> >> >It kinda looks like you have some other wx libs on there with a >> >different config that are being picked up instead of the ones in >> >/usr/local/lib. Could that be the case? Maybe Suse ships >> with some now. >> >> i've removed any prior wx* packages from yast. even so i should hope >> that would not be a problem because suse10 comes with wx 2.6.1 iirc. >> >> i'll give diego's recipe a go and report back. > > Did you try this Miha? I should point out that we don't support 2.7 at > the moment, and in fact don't intend to if we can help it - 2.6 has all > the features we currently need so we don't want to expend effert > tracking wx's development releases. > > 2.6 should definitely work though - I tried a fresh install on Slackware > 10 yesterday and it went perfectly. > > Regards, Dave. > > ---------------------------(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 > I agree. I could not install pgadmin3 with wx 2.6.2 in a fresh Fedora Core 4 so I tried with wx 2.7 and worked, but I suspect that the solution was something in the process of removing 2.6.2 version and installing 2.7 and not the 2.6.2 version itself. After that, at home, I did a svn checkout and compiled without any problem with installed wxWidgets 2.6.2 in my Fedora Core 4 notebook. By the way, it seems to work Ok with wxWidgets 2.7 until now. Regards, Diego.
> -----Original Message----- > From: diego@adminsa.com [mailto:diego@adminsa.com] > Sent: 11 January 2006 12:28 > To: Dave Page > Cc: Miha Radej; diego@adminsa.com; pgadmin-support@postgresql.org > Subject: Re: [pgadmin-support] problem compiling on suse 10 > > I agree. I could not install pgadmin3 with wx 2.6.2 in a > fresh Fedora Core > 4 so I tried with wx 2.7 and worked, but I suspect that the > solution was > something in the process of removing 2.6.2 version and > installing 2.7 and > not the 2.6.2 version itself. Yes - I would think it was a debug/non-debug problem given that it was complaining about wxAssert (iirc). > After that, at home, I did a svn checkout and compiled > without any problem > with installed wxWidgets 2.6.2 in my Fedora Core 4 notebook. Ahh, good. > By the way, it seems to work Ok with wxWidgets 2.7 until now. Also good :-) Regards, Dave.
hi! Dave Page wrote: > Did you try this Miha? I should point out that we don't support 2.7 at > the moment, and in fact don't intend to if we can help it - 2.6 has all > the features we currently need so we don't want to expend effert > tracking wx's development releases. > > 2.6 should definitely work though - I tried a fresh install on Slackware > 10 yesterday and it went perfectly. no, sorry, not yet. i haven't been anywhere near a computer in the past few days. i will try to give it a few stabs during the weekend though, when i get fed up with studying, taking into account diego's and your advice. i also find it weird that wx doesn't want to "make uninstall", just says "nothing to be done". i'll go rm -rf some stuff :) cheers, M -- "... the small primitive tribes joined up and became huge, powerful primitive tribes with more sophisticated weapons." -- Terry Pratchett, Small Gods
hi! yes... well... status report... i removed any wx related stuff i've installed from source from my system. i then decided to give yast a try and i installed wxgtk and wxdevel from there; yast is offering version 2.6.1. pgadmin compiled and is running nicely, with the exception of not being able to produce a debug build (configure fails if i use --enable-debug). for now i'll stick to what i have and try to figure out what went wrong some other time :) thanks again for all your help! regards, Miha -- "... the small primitive tribes joined up and became huge, powerful primitive tribes with more sophisticated weapons." -- Terry Pratchett, Small Gods Dave Page wrote: > > >> -----Original Message----- >> From: diego@adminsa.com [mailto:diego@adminsa.com] >> Sent: 11 January 2006 12:28 >> To: Dave Page >> Cc: Miha Radej; diego@adminsa.com; pgadmin-support@postgresql.org >> Subject: Re: [pgadmin-support] problem compiling on suse 10 >> >> I agree. I could not install pgadmin3 with wx 2.6.2 in a >> fresh Fedora Core >> 4 so I tried with wx 2.7 and worked, but I suspect that the >> solution was >> something in the process of removing 2.6.2 version and >> installing 2.7 and >> not the 2.6.2 version itself. > > Yes - I would think it was a debug/non-debug problem given that it was > complaining about wxAssert (iirc). > >> After that, at home, I did a svn checkout and compiled >> without any problem >> with installed wxWidgets 2.6.2 in my Fedora Core 4 notebook. > > Ahh, good. > >> By the way, it seems to work Ok with wxWidgets 2.7 until now. > > Also good :-) > > Regards, Dave. > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster >