[pgadmin-support] Linking issues building pgAdmin3 v1.4.2 on Suse 10.0
Hi all, I'm having a really hard time getting pgAdmin3 to build on Suse. I've managed to get wxWidgets 2.6.3 built, and built and installed the ogl and stc widgets from the contrib directory. Pgadmin's build seems to work fine, right up until the linking stage, when it somehow loses all its libraries. From perusing this list's archives, this problem is not entirely uncommon. For wx-widgets, I ran configure as such:./configure --with-gtk --enable-gtk2 --enable-mimetype=yes --disable-debug --enable-unicodeFor pgAdmin3, I ran plain old configure, and then alternately tried --enable-static (which failed, evidently because wxWidgets was not compiled with --enabled-static) Below is the output of make all. What's odd is that the linker seems to be getting the flags that correspond to the output of wx-config. Does anyone have any ideas for how to get ld recognize the wx libraries? Many thanks for any help or ideas,Ericmake all-recursivemake[1]: Entering directory `/usr/local/install/pgadmin3-1.4.2'Making all in i18nmake[2]: Entering directory `/usr/local/install/pgadmin3- 1.4.2/i18n'make[2]: Nothing to be done for `all'.make[2]: Leaving directory `/usr/local/install/pgadmin3-1.4.2/i18n'Making all in srcmake[2]: Entering directory `/usr/local/install/pgadmin3-1.4.2/src'g++ -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -Wno-non-virtual-dtor -I../src/include -I../src/agent/include -I../src/slony/include -L/usr/lib -L/usr/local/lib -o pgadmin3 pgAdmin3.o base.o appbase.o sysLogger.o pgConnBase.o pgSetBase.o factory.o dlgClasses.o events.o pgConn.o pgSet.o keywords.o pgAggregate.o pgCast.o pgCheck.o pgCollection.o pgColumn.o pgConstraints.o pgConversion.o pgDatabase.o pgDomain.o pgForeignKey.o pgFunction.o pgGroup.o pgIndex.o pgIndexConstraint.o pgLanguage.o pgObject.o pgOperator.o pgOperatorClass.o pgRole.o pgRule.o pgSchema.o pgSequence.o pgServer.o pgTable.o pgTablespace.o pgTrigger.o pgType.o pgUser.o pgView.o pgDatatype.o pgaJob.o pgaStep.o pgaSchedule.o dlgJob.o dlgSchedule.o dlgStep.o xh_sqlbox.o xh_calb.o xh_timespin.o xh_ctlcombo.o ctlSecurityPanel.o ctlComboBox.o ctlTree.o calbox.o timespin.o ctlListView.o ctlSQLBox.o ctlSQLResult.o explainCanvas.o explainShape.o dlgEditGridOptions.o dlgConnect.o dlgHbaConfig.o dlgMainConfig.o dlgSelectConnection.o frmExport.o frmAbout.o frmIndexcheck.o frmMain.o frmOptions.o frmPassword.o frmQuery.o frmHelp.o frmSplash.o frmMaintenance.o frmBackup.o frmRestore.o frmGrantWizard.o frmEditGrid.o frmStatus.o frmUpdate.o frmConfig.o frmHbaConfig.o frmMainConfig.o frmHint.o dlgProperty.o dlgUser.o dlgServer.o dlgGroup.o dlgDatabase.o dlgLanguage.odlgSchema.o dlgDomain.o dlgTable.o dlgTablespace.o dlgColumn.o dlgIndex.o dlgFunction.o dlgView.o dlgRule.o dlgRole.o dlgOperator.o dlgAggregate.o dlgCast.o dlgConversion.o dlgIndexConstraint.o dlgForeignKey.o dlgSequence.o dlgTrigger.o dlgType.o dlgCheck.o sysSettings.o sysProcess.o misc.o utffile.o pgconfig.o update.o slCluster.o slNode.o slPath.o slListen.o slSet.o slSequence.o slTable.o slSubscription.o dlgRepCluster.o dlgRepNode.o dlgRepListen.o dlgRepPath.o dlgRepSet.o dlgRepSequence.o dlgRepTable.o dlgRepSubscription.o xrcDialogs.o -lssl -lcrypto -lpq -L/usr/local/lib -pthread -L/usr/X11R6/lib -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu- 2.6 -L/usr/local/lib -pthread -L/usr/X11R6/lib -lwx_gtk2u_stc-2.6 -lwx_gtk2u_ogl-2.6 -lwx_baseu-2.6pgAdmin3.o: In function `frmDlgTest::frmDlgTest()':pgAdmin3.cpp:(.text+0x8c5): undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)' pgAdmin3.cpp:(.text+0x8de): undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'pgAdmin3.cpp:(.text+0x97a): undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)' pgAdmin3.cpp:(.text+0xa3c): undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'pgAdmin3.cpp:(.text+0xbae): undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)' pgAdmin3.o:pgAdmin3.cpp:(.text+0xdd5): more undefined references to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)' followpgAdmin3.o: In function `pgAdmin3::OnInit()':pgAdmin3.cpp:(.text+0x1455): undefined reference to `wxStringBase::ConcatSelf(unsigned int, wchar_t const*, unsigned int)' pgAdmin3.cpp:(.text+0x1471): undefined reference to `wxStringBase::ConcatSelf(unsigned int, wchar_t const*, unsigned int)'pgAdmin3.cpp:(.text+0x148d): undefined reference to `wxStringBase::ConcatSelf(unsigned int, wchar_t const*, unsigned int)' pgAdmin3.cpp:(.text+0x14a9): undefined reference to `wxStringBase::ConcatSelf(unsigned int, wchar_t const*, unsigned int)'--- snip ---~10K lines of error messages--- snip ---dlgRepSubscription.cpp: (.text+0x133b): undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigne
Re: [pgadmin-support] Linking issues building pgAdmin3 v1.4.2 on Suse 10.0
On 5/30/06, Miha Radej <[EMAIL PROTECTED]> wrote: Hi!Which version of Suse is that? I've had some problems also but have sofar been able to resolve them on all versions of Suse I've used: 9.3,10.0, 10.1.Only with Suse 9.3 have I built wx from source, on 10.x I use wxavailable from Yast. With that there were no problems on 10.0, on 10.1 Iget lots of GCC warnings about breaking strict rules, otherwise it seemsto work.From memory, the general procedure I use is as follows: * add /usr/lib to /etc/ld.so.conf, then run ldconfigHi Miha, Well, adding /usr/lib to ld.so.conf and running ldconfig seems to have solved the problem. Not sure what that works, but it does. Many thanks! Cheers, Eric * install all needed packages in order to build pgadmin (10.1 comes with libxml2 2.6.23 and libxslt 1.1.15 which both cause errors, I had to usethe latest versions to get it to work)* build pgadminThat is basically it. I can try to help if you have any other questions. Regards,MihaEric E pravi:> Hi all,> I'm having a really hard time getting pgAdmin3 to build on Suse. I've> managed to get wxWidgets 2.6.3 built, and built and installed the ogl> and stc widgets from the contrib directory. Pgadmin's build seems to > work fine, right up until the linking stage, when it somehow loses all> its libraries. From perusing this list's archives, this problem is not> entirely uncommon.>> For wx-widgets, I ran configure as such: > ./configure --with-gtk --enable-gtk2 --enable-mimetype=yes> --disable-debug --enable-unicode>> For pgAdmin3, I ran plain old configure, and then alternately tried> --enable-static (which failed, evidently because wxWidgets was not > compiled with --enabled-static)>>> Below is the output of make all. What's odd is that the linker seems> to be getting the flags that correspond to the output of wx-config.> Does anyone have any ideas for how to get ld recognize the wx libraries? >> Many thanks for any help or ideas,>>> Eric>>> make all-recursive> make[1]: Entering directory `/usr/local/install/pgadmin3-1.4.2'> Making all in i18n > make[2]: Entering directory `/usr/local/install/pgadmin3- 1.4.2/i18n'> make[2]: Nothing to be done for `all'.> make[2]: Leaving directory `/usr/local/install/pgadmin3-1.4.2/i18n'> Making all in src > make[2]: Entering directory `/usr/local/install/pgadmin3-1.4.2/src'> g++ -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall> -Wno-non-virtual-dtor -I../src/include -I../src/agent/include > -I../src/slony/include -L/usr/lib -L/usr/local/lib -o pgadmin3> pgAdmin3.o base.o appbase.o sysLogger.o pgConnBase.o pgSe> tBase.o factory.o dlgClasses.o events.o pgConn.o pgSet.o keywords.o> pgAggregate.o pgCast.o pgCheck.o pgCollection.o pgColum> n.o pgConstraints.o pgConversion.o pgDatabase.o pgDomain.o> pgForeignKey.o pgFunction.o pgGroup.o pgIndex.o pgIndexConstrain> t.o pgLanguage.o pgObject.o pgOperator.o pgOperatorClass.o pgRole.o> pgRule.o pgSchema.o pgSequence.o pgServer.o pgTable.o p> gTablespace.o pgTrigger.o pgType.o pgUser.o pgView.o pgDatatype.o> pgaJob.o pgaStep.o pgaSchedule.o dlgJob.o dlgSchedule.o d> lgStep.o xh_sqlbox.o xh_calb.o xh_timespin.o xh_ctlcombo.o> ctlSecurityPanel.o ctlComboBox.o ctlTree.o calbox.o timespin.o c> tlListView.o ctlSQLBox.o ctlSQLResult.o explainCanvas.o explainShape.o> dlgEditGridOptions.o dlgConnect.o dlgHbaConfig.o dlg> MainConfig.o dlgSelectConnection.o frmExport.o frmAbout.o> frmIndexcheck.o frmMain.o frmOptions.o frmPassword.o frmQuery.o f> rmHelp.o frmSplash.o frmMaintenance.o frmBackup.o frmRestore.o> frmGrantWizard.o frmEditGrid.o frmStatus.o frmUpdate.o frmCo> nfig.o frmHbaConfig.o frmMainConfig.o frmHint.o dlgProperty.o dlgUser.o> dlgServer.o dlgGroup.o dlgDatabase.o dlgLanguage.o> dlgSchema.o dlgDomain.o dlgTable.o dlgTablespace.o dlgColumn.o> dlgIndex.o dlgFunction.o dlgView.o dlgRule.o dlgRole.o dlgOp> erator.o dlgAggregate.o dlgCast.o dlgConversion.o dlgIndexConstraint.o> dlgForeignKey.o dlgSequence.o dlgTrigger.o dlgType.o> dlgCheck.o sysSettings.o sysProcess.o misc.o utffile.o pgconfig.o> update.o slCluster.o slNode.o slPath.o slListen.o slSet.> o slSequence.o slTable.o slSubscription.o dlgRepCluster.o dlgRepNode.o> dlgRepListen.o dlgRepPath.o dlgRepSet.o dlgRepSequen> ce.o dlgRepTable.o dlgRepSubscription.o xrcDialogs.o -lssl -lcrypto > -lpq -L/usr/local/lib -pthread -L/usr/X11R6/lib -lw> x_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6> -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_> net-2.6 -lwx_baseu- 2.6 -L/usr/local/lib -pthread -L/usr/X11R6/lib> -lwx_gtk2u_stc-2.6 -lwx_gtk2u_ogl-2.6 -lwx_baseu-2.6> pgAdmin3.o: In function `frmDlgTest::frmDlgTest()':> pgAdmin3.cpp:(.text+0x8c5): undefined reference to > `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'> pgAdmin3.cpp:(.text+0x8de): undefined reference to> `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'> pgAdmin3.cpp:(.text+0x97a): undefined reference to> `wxStringBase::InitWith(wchar_t co
[pgadmin-support] Martina von dem Bottlenberg
http://peinture-en-perigord.com/home.php -- Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-support
[pgadmin-support] La Faubrujon
http://pantalon.us/home.php -- Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-support
[pgadmin-support] SEVERINE BAILLY
http://www.cenografia.com/home.php -- Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-support