Обсуждение: Builds errors with 1.6.3 and wxWidgets 2.8.1 on Ubuntu
Similarly to what was reported here with v1.6.2: http://www.pgadmin.org/archives/pgadmin-support/2007-01/msg00065.php I am trying to compile v1.6.3 from sources on Ubuntu Feisty Fawn (the current beta). This comes with wxWidgets 2.8.1.1, which I have installed: ii wx2.8-doc 2.8.1.1-0ubuntu4 wxWidgets Cross-platform C++ GUI toolkit (documentation) ii wx2.8-examples 2.8.1.1-0ubuntu4 wxWidgets Cross-platform C++ GUI toolkit (examples) ii wx2.8-headers 2.8.1.1-0ubuntu4 wxWidgets Cross-platform C++ GUI toolkit (header files) ii wx2.8-i18n 2.8.1.1-0ubuntu4 wxWidgets Cross-platform C++ GUI toolkit (i18n support) The configure works just fine, but towards the end I get the following compilation error on a very clean build: g++ -DDATA_DIR=\"/opt/pgadmin-1.6/share/pgadmin3/\" -Wall -Wno-non-virtual-dtor -I./include -L/opt/postgres-8.1.4//lib -L/usr/lib -o pgagent connection.o job.o misc.o pgAgent.o unix.o -pthread -lwx_baseu-2.8 -L/opt/postgres-8.1.4/lib -lcrypto -lpq connection.o: In function `wxTransform2D::Transform(wxRect2DInt*) const': connection.cpp:(.text._ZNK13wxTransform2D9TransformEP11wxRect2DInt[wxTransform2D::Transform(wxRect2DInt*) const]+0x96): undefined reference to `wxRect2DInt::operator=(wxRect2DInt const&)' connection.o: In function `wxTransform2D::InverseTransform(wxRect2DInt*) const': connection.cpp:(.text._ZNK13wxTransform2D16InverseTransformEP11wxRect2DInt[wxTransform2D::InverseTransform(wxRect2DInt*) const]+0x96): undefined reference to `wxRect2DInt::operator=(wxRect2DInt const&)' collect2: ld returned 1 exit status Is this indeed the same issue as reported previously, still existing in v1.6.3? Thanks, Jason
Hi,
I had the same problem. And I have a patch that solve it.
The pgagent need to be linked with wx core library too.
To apply the patch go into the pgadmin source folder and run
patch -p0 < acinclude.m4.diff
After that the bootstrap script need to be reexecuted
sh bootstrap
and the configure too
./configure
You are done, now pgadmin will build without problem.
Massimo
-----Messaggio originale-----
Da: pgadmin-support-owner@postgresql.org per conto di Jason L. Buberel
Inviato: mer 04/04/2007 6.48
A: pgadmin-support@postgresql.org
Oggetto: [pgadmin-support] Builds errors with 1.6.3 and wxWidgets 2.8.1 on Ubuntu
Similarly to what was reported here with v1.6.2:
http://www.pgadmin.org/archives/pgadmin-support/2007-01/msg00065.php
I am trying to compile v1.6.3 from sources on Ubuntu Feisty Fawn (the
current beta). This comes with wxWidgets 2.8.1.1, which I have installed:
ii wx2.8-doc 2.8.1.1-0ubuntu4 wxWidgets
Cross-platform C++ GUI toolkit (documentation)
ii wx2.8-examples 2.8.1.1-0ubuntu4 wxWidgets
Cross-platform C++ GUI toolkit (examples)
ii wx2.8-headers 2.8.1.1-0ubuntu4 wxWidgets
Cross-platform C++ GUI toolkit (header files)
ii wx2.8-i18n 2.8.1.1-0ubuntu4 wxWidgets
Cross-platform C++ GUI toolkit (i18n support)
The configure works just fine, but towards the end I get the following
compilation error on a very clean build:
g++ -DDATA_DIR=\"/opt/pgadmin-1.6/share/pgadmin3/\" -Wall
-Wno-non-virtual-dtor -I./include -L/opt/postgres-8.1.4//lib
-L/usr/lib -o pgagent connection.o job.o misc.o pgAgent.o unix.o
-pthread -lwx_baseu-2.8 -L/opt/postgres-8.1.4/lib -lcrypto -lpq
connection.o: In function `wxTransform2D::Transform(wxRect2DInt*) const':
connection.cpp:(.text._ZNK13wxTransform2D9TransformEP11wxRect2DInt[wxTransform2D::Transform(wxRect2DInt*)
const]+0x96): undefined reference to `wxRect2DInt::operator=(wxRect2DInt
const&)'
connection.o: In function `wxTransform2D::InverseTransform(wxRect2DInt*)
const':
connection.cpp:(.text._ZNK13wxTransform2D16InverseTransformEP11wxRect2DInt[wxTransform2D::InverseTransform(wxRect2DInt*)
const]+0x96): undefined reference to `wxRect2DInt::operator=(wxRect2DInt
const&)'
collect2: ld returned 1 exit status
Is this indeed the same issue as reported previously, still existing in
v1.6.3?
Thanks,
Jason
---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at
http://www.postgresql.org/about/donate
Вложения
massimo_fidanza@alice.it wrote: > Hi, > > I had the same problem. And I have a patch that solve it. > The pgagent need to be linked with wx core library too. > To apply the patch go into the pgadmin source folder and run > > patch -p0 < acinclude.m4.diff > > After that the bootstrap script need to be reexecuted > > sh bootstrap > > and the configure too > > ./configure > > You are done, now pgadmin will build without problem. Yes, but pgAgent will be linked with half the GUI libraries on your system :-(. To avoid that (which may or may not be important to you), see the correct fix here: http://svn.pgadmin.org/cgi-bin/viewcvs.cgi?rev=6129&view=rev The changes in acinclude.m4 reverse the same fix that Massimo suggested, which we did use for a short while. Regards, Dave
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Dave Can you apply these changes in 1.6.3 (tags) ? Thanks in advance. Regards, Christophe. Dave Page Wrote : > Yes, but pgAgent will be linked with half the GUI libraries on your > system :-(. To avoid that (which may or may not be important to you), > see the correct fix here: > > http://svn.pgadmin.org/cgi-bin/viewcvs.cgi?rev=6129&view=rev > > The changes in acinclude.m4 reverse the same fix that Massimo suggested, > which we did use for a short while. > > Regards, Dave > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) iD8DBQFGQxlaMl/S4ZhUIzERAtk+AJ481LlFtuEchvGRBVReRpMYBDBysACg078r STrwqWsqBPDnwaopc1VPanY= =m2lo -----END PGP SIGNATURE-----
Christophe Chauvet wrote: > Hi Dave > > Can you apply these changes in 1.6.3 (tags) ? There's not going to be a 1.6.4, so there's no point. Regards, Dave
Dave, Thanks for pointing out the update/fix. I'm fine with a slightly outdated pgadmin for now and will wait for these changes in the next bug-fix release. Cheers, jason Dave Page writes: > massimo_fidanza@alice.it wrote: >> Hi, >> >> I had the same problem. And I have a patch that solve it. >> The pgagent need to be linked with wx core library too. >> To apply the patch go into the pgadmin source folder and run >> >> patch -p0 < acinclude.m4.diff >> >> After that the bootstrap script need to be reexecuted >> >> sh bootstrap >> >> and the configure too >> >> ./configure >> >> You are done, now pgadmin will build without problem. > > Yes, but pgAgent will be linked with half the GUI libraries on your > system :-(. To avoid that (which may or may not be important to you), > see the correct fix here: > > http://svn.pgadmin.org/cgi-bin/viewcvs.cgi?rev=6129&view=rev > > The changes in acinclude.m4 reverse the same fix that Massimo suggested, > which we did use for a short while. > > Regards, Dave