Thread: Link problem with pgAdmin3 1.4.2 on Linux

Link problem with pgAdmin3 1.4.2 on Linux

From
Blake McBride
Date:
Greetings,

I am trying to build pgAdmin3 1.4.2 on Suse Linux 9.2
What a task it has been.  I had to build & install:

fontconfig 2.3.95
freetype 2.1.10
cairo 1.0.4
pango 1.10.4
atk 1.10.3
pkg-config 0.20
tifflib
gettext 0.14.5
glib 2.8.6
gtk+ 2.8.17
wxGtk 2.6.3
etc...

And, it all had to build in the right order.  I have spent three days now
and I still haven't gotten it working.  I got past numerous problems but
I'm having a final link problem as follows.  I don't know what to do and
would greatly appreciate some help.

...
Making all in src
make[2]: Entering directory `/home/gg/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/local/pgsql/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.o dlgSchema.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  -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.6
pgAdmin3.o(.text+0x7e8): In function `frmDlgTest::frmDlgTest[in-charge]()':
: undefined reference to `wxStringBase::InitWith(wchar_t const*, 
unsigned, unsigned)'
pgAdmin3.o(.text+0x80b): In function `frmDlgTest::frmDlgTest[in-charge]()':
: undefined reference to `wxStringBase::InitWith(wchar_t const*, 
unsigned, unsigned)'
pgAdmin3.o(.text+0x8ac): In function `frmDlgTest::frmDlgTest[in-charge]()':
: undefined reference to `wxStringBase::InitWith(wchar_t const*, 
unsigned, unsigned)'
pgAdmin3.o(.text+0x96e): In function `frmDlgTest::frmDlgTest[in-charge]()':
: undefined reference to `wxStringBase::InitWith(wchar_t const*, 
unsigned, unsigned)'
pgAdmin3.o(.text+0xa5f): In function `frmDlgTest::frmDlgTest[in-charge]()':
: undefined reference to `wxStringBase::InitWith(wchar_t const*, 
unsigned, unsigned)'
pgAdmin3.o(.text+0xe5b): In function `pgAdmin3::OnInit()':
: undefined reference to `wxStringBase::ConcatSelf(unsigned, wchar_t 
const*, unsigned)'
......



Blake McBride




Re: Link problem with pgAdmin3 1.4.2 on Linux

From
Andreas Pflug
Date:
Blake McBride wrote:
> 
> Greetings,
> 
> I am trying to build pgAdmin3 1.4.2 on Suse Linux 9.2
> What a task it has been.  I had to build & install:
> 
> fontconfig 2.3.95
> freetype 2.1.10
> cairo 1.0.4
> pango 1.10.4
> atk 1.10.3
> pkg-config 0.20
> tifflib
> gettext 0.14.5
> glib 2.8.6
> gtk+ 2.8.17
> wxGtk 2.6.3
> etc...
> 
> And, it all had to build in the right order.  I have spent three days now
> and I still haven't gotten it working.  I got past numerous problems but
> I'm having a final link problem as follows.  I don't know what to do and
> would greatly appreciate some help.
> 
> ...
> Making all in src
> make[2]: Entering directory `/home/gg/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/local/pgsql/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.o dlgSchema.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  
> -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.6
> pgAdmin3.o(.text+0x7e8): In function `frmDlgTest::frmDlgTest[in-charge]()':
> : undefined reference to `wxStringBase::InitWith(wchar_t const*, 
> unsigned, unsigned)'
> pgAdmin3.o(.text+0x80b): In function `frmDlgTest::frmDlgTest[in-charge]()':
> : undefined reference to `wxStringBase::InitWith(wchar_t const*, 
> unsigned, unsigned)'
> pgAdmin3.o(.text+0x8ac): In function `frmDlgTest::frmDlgTest[in-charge]()':
> : undefined reference to `wxStringBase::InitWith(wchar_t const*, 
> unsigned, unsigned)'
> pgAdmin3.o(.text+0x96e): In function `frmDlgTest::frmDlgTest[in-charge]()':
> : undefined reference to `wxStringBase::InitWith(wchar_t const*, 
> unsigned, unsigned)'
> pgAdmin3.o(.text+0xa5f): In function `frmDlgTest::frmDlgTest[in-charge]()':
> : undefined reference to `wxStringBase::InitWith(wchar_t const*, 
> unsigned, unsigned)'
> pgAdmin3.o(.text+0xe5b): In function `pgAdmin3::OnInit()':
> : undefined reference to `wxStringBase::ConcatSelf(unsigned, wchar_t 
> const*, unsigned)'


Hm, these should come from wx (probably libwx_baseu-2.6). Do wx samples 
build correctly?

Regards,
Andreas