Thread: compiling problem
Hello people, After having downloaded PostgreSQL, wxWindows-pgAdmin3-20031010-7 and pgadmin3-1.0.2, I'm stuck on the following error: during make for pgadmin3-1.0.2: xrcDialogs.o: In function `wxMemoryFSHandler::wxMemoryFSHandler[in-charge]()': /home/setup/dirk/pgadmin3-1.0.2/src/ui/common/xrcDialogs.cpp:6058: undefined reference to `wxMemoryFSHandlerBase::wxMemoryFSHandlerBase[not-in-charge]()' xrcDialogs.o: In function `wxMemoryFSHandler::wxMemoryFSHandler[in-charge]()': /opt/wxwindows/include/wx/string.h:702: undefined reference to `vtable for wxMemoryFSHandler' collect2: ld returned 1 exit status make[2]: *** [pgadmin3] Error 1 make[2]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2' make: *** [all] Error 2 I installed PostgreSQL with ./configure --prefix=/opt/postgresql-7.4.1 wxWindows-pgAdmin3-20031010-7 /configure --prefix=/opt/wxwindows --with-gtk --enable-gtk2 \ --enable-unicode --disable-shared --enable-debug and pgadmin3-1.0.2 with ./configure --prefix=/opt/postgresql-7.4.1/ --enable-static --enable-debug --with-pgsql=/opt/postgresql-7.4.1/ --with-wx=/opt/wxwindows I seem to get lots of the following messages during the make stage: home/setup/dirk/pgadmin3-1.0.2/src/ui/common/xrcDialogs.cpp:6128: undefined reference to `wxString::wxString[in-charge](wchar_t const*)' /home/setup/dirk/pgadmin3-1.0.2/src/ui/common/xrcDialogs.cpp:6128: undefined reference to `wxXmlResource::Get()' They all make reference to wxString and wxXmlResource. So I suppose something went wrong in the second and third compilations of wxwindows. I have checked the makefile's in contrib/src/stc and xrc and they prefix /opt/wxindows and I used the commands as prescibed. I can't figure out what went wrong then..... my system uses: gcc 3.2.1 glibc 2.3.1 linux 2.4.20 Any pointers? Dirk
Hi Dirk, can you also precise the distribution you are building on ? If rpm or deb based isn't it possible for you to use binary packages or rebuild from source packages with some hack to suite your needs ? Regards, Raphaël Dirk Dil wrote: >Hello people, > >After having downloaded PostgreSQL, wxWindows-pgAdmin3-20031010-7 and >pgadmin3-1.0.2, I'm stuck on the following error: > >during make for pgadmin3-1.0.2: > >xrcDialogs.o: In function >`wxMemoryFSHandler::wxMemoryFSHandler[in-charge]()': >/home/setup/dirk/pgadmin3-1.0.2/src/ui/common/xrcDialogs.cpp:6058: >undefined reference to >`wxMemoryFSHandlerBase::wxMemoryFSHandlerBase[not-in-charge]()' >xrcDialogs.o: In function >`wxMemoryFSHandler::wxMemoryFSHandler[in-charge]()': >/opt/wxwindows/include/wx/string.h:702: undefined reference to `vtable >for wxMemoryFSHandler' >collect2: ld returned 1 exit status >make[2]: *** [pgadmin3] Error 1 >make[2]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2/src' >make[1]: *** [all-recursive] Error 1 >make[1]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2' >make: *** [all] Error 2 > >I installed PostgreSQL with >../configure --prefix=/opt/postgresql-7.4.1 > >wxWindows-pgAdmin3-20031010-7 >/configure --prefix=/opt/wxwindows --with-gtk --enable-gtk2 \ >--enable-unicode --disable-shared --enable-debug > >and pgadmin3-1.0.2 with >../configure --prefix=/opt/postgresql-7.4.1/ --enable-static >--enable-debug --with-pgsql=/opt/postgresql-7.4.1/ >--with-wx=/opt/wxwindows > >I seem to get lots of the following messages during the make stage: > >home/setup/dirk/pgadmin3-1.0.2/src/ui/common/xrcDialogs.cpp:6128: >undefined reference to `wxString::wxString[in-charge](wchar_t const*)' >/home/setup/dirk/pgadmin3-1.0.2/src/ui/common/xrcDialogs.cpp:6128: >undefined reference to `wxXmlResource::Get()' > >They all make reference to wxString and wxXmlResource. So I suppose >something went wrong in the second and third compilations of wxwindows. >I have checked the makefile's in contrib/src/stc and xrc and they prefix >/opt/wxindows and I used the commands as prescibed. I can't figure out >what went wrong then..... > >my system uses: >gcc 3.2.1 >glibc 2.3.1 >linux 2.4.20 > >Any pointers? > >Dirk > >
ooops, I forgot to ask for the full build log of pgAdmin3. Regards, Raphaël Raphaël Enrici wrote: > Hi Dirk, > > can you also precise the distribution you are building on ? > If rpm or deb based isn't it possible for you to use binary packages > or rebuild from source packages with some hack to suite your needs ? > > Regards, > Raphaël > > Dirk Dil wrote: > >> during make for pgadmin3-1.0.2: >> xrcDialogs.o: In function >> `wxMemoryFSHandler::wxMemoryFSHandler[in-charge]()': >> /home/setup/dirk/pgadmin3-1.0.2/src/ui/common/xrcDialogs.cpp:6058: >> undefined reference to >> `wxMemoryFSHandlerBase::wxMemoryFSHandlerBase[not-in-charge]()' >> xrcDialogs.o: In function >> `wxMemoryFSHandler::wxMemoryFSHandler[in-charge]()': >> /opt/wxwindows/include/wx/string.h:702: undefined reference to `vtable >> for wxMemoryFSHandler' >> collect2: ld returned 1 exit status >> make[2]: *** [pgadmin3] Error 1 >> make[2]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2/src' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2' >> make: *** [all] Error 2 >> >> I installed PostgreSQL with ../configure --prefix=/opt/postgresql-7.4.1 >> wxWindows-pgAdmin3-20031010-7 >> /configure --prefix=/opt/wxwindows --with-gtk --enable-gtk2 \ >> --enable-unicode --disable-shared --enable-debug >> and pgadmin3-1.0.2 with >> ../configure --prefix=/opt/postgresql-7.4.1/ --enable-static >> --enable-debug --with-pgsql=/opt/postgresql-7.4.1/ >> --with-wx=/opt/wxwindows >> >> I seem to get lots of the following messages during the make stage: >> home/setup/dirk/pgadmin3-1.0.2/src/ui/common/xrcDialogs.cpp:6128: >> undefined reference to `wxString::wxString[in-charge](wchar_t const*)' >> /home/setup/dirk/pgadmin3-1.0.2/src/ui/common/xrcDialogs.cpp:6128: >> undefined reference to `wxXmlResource::Get()' >> >> They all make reference to wxString and wxXmlResource. So I suppose >> something went wrong in the second and third compilations of wxwindows. >> I have checked the makefile's in contrib/src/stc and xrc and they prefix >> /opt/wxindows and I used the commands as prescibed. I can't figure >> out what went wrong then..... >> my system uses: >> gcc 3.2.1 >> glibc 2.3.1 >> linux 2.4.20 >
Dirk Dil wrote: >Rapha?l Enrici (blacknoz@club-internet.fr) wrote: > > >>Hi Dirk, >> >>can you also precise the distribution you are building on ? >>If rpm or deb based isn't it possible for you to use binary packages or >>rebuild from source packages with some hack to suite your needs ? >> >>Regards, >>Rapha?l >> >> >> >> >I've compiled my own system. LFS (linuxfromscratch.org) > >I have no experience with rpm and deb. As an LFS'er I hesitate to use >binaries. By hack do you mean a patch? Where do I get those? > > Forget about it. If you were using an rpm or deb based distro like rh, mdk, debian etc etc and just wanted to install things elsewhere than /usr/* it would have been "more simple" (simplier in english ?) to take .src.rpm or deb sources and to modify a couple of files to make the product install where you want it. But that's not your case. Can you send the full build log ? and also the config.log (you'll find it in the pgadmin3-1.0.2 directory). As I read your previous mail, you seem to install pgadmin3 (--prefix line) in the postgresql directory, that's not a good thing I think although it has nothing to do with the build errors you encounter. As a track to follow, to get pgA3 to build correctly on debian I had to backport the configure script from 1.1.x snapshots and patch one file. Did you try to build a 1.1.x snapshot (http://www.pgadmin.org/snapshots/) ? I know this is not a solution, but this is something to try until we get a better idea of what's goin' on. (I'm sure of the developers will get an idea). Regards, Raphaël >Merci buckets > > Nice to read some french ;) >Dirk > > > > ><snips> > > >
Dirk Dil wrote: >Rapha?l Enrici (blacknoz@club-internet.fr) wrote: > > >>ooops, >>I forgot to ask for the full build log of pgAdmin3. >> >> > >Are you sure about this? It's a 3.6 Meg file. Maybe I should send it >to your directly, not post it here on the list. > > > Hi, I had a look to your build log and it looks to be the exact same problem I had under debian since 1.0.1 (as the SSL build was broken in 1.0.x, I didn't look too far to know from where this could come from and simply backported a piece of 1.1x snapshot ... It solves SSL build and solved the problem you describe too). Can you try to apply the patch attached on a fresh ogAdmin3 1.0.2 source and tell me if it solves your problem ? Thanks, Raphaël
Attachment
Hi Dirk, You're welcome ;) did you build you libpq with ssl support ? What does pgAdmin3 configure scripts tells you about what it detects concerning your libpq ? It should be something like "checking for SSL_connect in -lpq." try ldd whereveryouinstalledlibpq.so/libpq.so* and look for a link to openssl lib. or strings whereveryouinstalledlibpq.so/libpq.so* | grep PQgetssl If not, try to rebuild you libpq with ssl support. We also had problems with defines and gcc. Can you send your pgadmin3 build log (in gzip format). Regards, Raphaël ----Message d'origine---- >Date: Mon, 23 Feb 2004 09:24:26 +0100 >De: Dirk Dil <mejerdil@pt.lu> >A: Rapha?l Enrici <blacknoz@club-internet.fr> >Copie à: pgadmin-support@postgresql.org >Sujet: Re: [pgadmin-support] compiling problem > >Rapha?l Enrici (blacknoz@club-internet.fr) wrote: >> Hi, >> I had a look to your build log and it looks to be the exact same problem >> I had under debian since 1.0.1 (as the SSL build was broken in 1.0.x, I >> didn't look too far to know from where this could come from and simply >> backported a piece of 1.1x snapshot ... It solves SSL build and solved >> the problem you describe too). >> Can you try to apply the patch attached on a fresh ogAdmin3 1.0.2 source >> and tell me if it solves your problem ? >> >> Thanks, >> Rapha?l >> > >Hi again, > >Thanks for your help and patience, Raphael! > >Well, yes I think the problem has been over come. But now ssl poses a >problem. See below: > >make all-recursive >make[1]: Entering directory `/home/setup/dirk/pgadmin3-1.0.2' >Making all in src >make[2]: Entering directory `/home/setup/dirk/pgadmin3-1.0.2/src' >g++ -DDATA_DIR=\"/opt/pga3/share/pgadmin3/\" -Wall -g -I../src/include >-Wall -g -O0 -L/opt/postgresql-7.4.1/lib -L/opt/wxwindows/lib -o >pgadmin3 pgAdmin3.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 pgRule.o pgSchema.o pgSequence.o pgServer.o pgTable.o >pgTrigger.o pgType.o pgUser.o pgView.o pgDatatype.o ctlSQLBox.o >ctlSQLResult.o frmExport.o dlgAddTableView.o events.o frmAbout.o >frmChildTableViewFrame.o frmConnect.o frmMain.o frmOptions.o >frmPassword.o frmQuery.o frmQueryBuilder.o frmHelp.o frmQBJoin.o >frmSplash.o frmMaintenance.o frmEditGrid.o dlgProperty.o dlgUser.o >dlgGroup.o dlgDatabase.o dlgLanguage.o dlgSchema.o dlgDomain.o >dlgTable.o dlgColumn.o dlgIndex.o dlgFunction.o dlgView.o dlgRule.o >dlgOperator.o dlgAggregate.o dlgCast.o dlgConversion.o >dlgIndexConstraint.o dlgForeignKey.o dlgSequence.o dlgTrigger.o >dlgType.o dlgCheck.o frmStatus.o misc.o sysLogger.o sysSettings.o >xrcDialogs.o /opt/postgresql-7.4.1/lib/libpq.a -lcrypt -lssl -lcrypto >/opt/wxwindows/lib/libwx_gtk2ud_stc-2.5.a >/opt/wxwindows/lib/libwx_gtk2ud_xrc-2.5.a -L/opt/wxwindows/lib -pthread >/opt/wxwindows/lib/libwx_gtk2ud_html-2.5.a >/opt/wxwindows/lib/libwx_gtk2ud_adv-2.5.a >/opt/wxwindows/lib/libwx_gtk2ud_core-2.5.a >/opt/wxwindows/lib/libwx_baseud_xml-2.5.a >/opt/wxwindows/lib/libwx_baseud_net-2.5.a >/opt/wxwindows/lib/libwx_baseud-2.5.a -Wl,--export-dynamic -pthread >-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm >-lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl >-lgthread-2.0 -lglib-2.0 -Wl,--export-dynamic -lpangoft2-1.0 -lpango-1.0 >-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lpng -ljpeg -ltiff -lexpat >-lz -ldl -lm >/usr/bin/ld: warning: libexpat.so.1, needed by >/usr/X11R6/lib/libXft.so.2, may conflict with libexpat.so.0 >pgConn.o: In function `pgConn::IsSSLconnected()': >/home/dirk/setup/pgadmin3-1.0.2/src/db/pgConn.cpp:186: undefined >reference to `PQgetssl' >collect2: ld returned 1 exit status >make[2]: *** [pgadmin3] Error 1 >make[2]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2/src' >make[1]: *** [all-recursive] Error 1 >make[1]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2' >make: *** [all] Error 2 > > >I've got /usr/X11R6/lib/libexpat.so.1 as well as /usr/lib/libexpat.so.0. > >Where from here? > >Dirk > >
ooops... I didn't see you were linking libpq.a and not .so. Try nm /opt/postgresql-7.4.1/lib/libpq.a | grep PQgetssl If you have an output then your libpq is ok. If so, I think you face the fact that pgconn.o is loaded before libpq.a in the linker or something like that. Try to laucnh manually the last line (linking stage) by inserting libpq.a before pgConn.o... If it solves the problem youshould have a pgadmin3 exe but we will have to go further to definitely solve the problem. I personnally link dynamically due to debian policy, but many developers here link statically. So it *should* work! :) To be continued :) Regards, Raphaël ----Message d'origine---- >De: blacknoz@club-internet.fr >A: mejerdil@pt.lu >Copie à: pgadmin-support@postgresql.org >Date: Mon, 23 Feb 2004 11:18:08 CET >Sujet: Re: [pgadmin-support] compiling problem > > >Hi Dirk, > >You're welcome ;) > >did you build you libpq with ssl support ? >What does pgAdmin3 configure scripts tells you about what it detects concerning your libpq ? >It should be something like "checking for SSL_connect in -lpq." > >try ldd whereveryouinstalledlibpq.so/libpq.so* >and look for a link to openssl lib. >or strings whereveryouinstalledlibpq.so/libpq.so* | grep PQgetssl > >If not, try to rebuild you libpq with ssl support. > >We also had problems with defines and gcc. Can you send your pgadmin3 build log (in gzip format). > >Regards, >Raphaël > >----Message d'origine---- >>Date: Mon, 23 Feb 2004 09:24:26 +0100 >>De: Dirk Dil <mejerdil@pt.lu> >>A: Rapha?l Enrici <blacknoz@club-internet.fr> >>Copie à: pgadmin-support@postgresql.org >>Sujet: Re: [pgadmin-support] compiling problem >> >>Rapha?l Enrici (blacknoz@club-internet.fr) wrote: >>> Hi, >>> I had a look to your build log and it looks to be the exact same problem >>> I had under debian since 1.0.1 (as the SSL build was broken in 1.0.x, I >>> didn't look too far to know from where this could come from and simply >>> backported a piece of 1.1x snapshot ... It solves SSL build and solved >>> the problem you describe too). >>> Can you try to apply the patch attached on a fresh ogAdmin3 1.0.2 source >>> and tell me if it solves your problem ? >>> >>> Thanks, >>> Rapha?l >>> >> >>Hi again, >> >>Thanks for your help and patience, Raphael! >> >>Well, yes I think the problem has been over come. But now ssl poses a >>problem. See below: >> >>make all-recursive >>make[1]: Entering directory `/home/setup/dirk/pgadmin3-1.0.2' >>Making all in src >>make[2]: Entering directory `/home/setup/dirk/pgadmin3-1.0.2/src' >>g++ -DDATA_DIR=\"/opt/pga3/share/pgadmin3/\" -Wall -g -I../src/include >>-Wall -g -O0 -L/opt/postgresql-7.4.1/lib -L/opt/wxwindows/lib -o >>pgadmin3 pgAdmin3.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 pgRule.o pgSchema.o pgSequence.o pgServer.o pgTable.o >>pgTrigger.o pgType.o pgUser.o pgView.o pgDatatype.o ctlSQLBox.o >>ctlSQLResult.o frmExport.o dlgAddTableView.o events.o frmAbout.o >>frmChildTableViewFrame.o frmConnect.o frmMain.o frmOptions.o >>frmPassword.o frmQuery.o frmQueryBuilder.o frmHelp.o frmQBJoin.o >>frmSplash.o frmMaintenance.o frmEditGrid.o dlgProperty.o dlgUser.o >>dlgGroup.o dlgDatabase.o dlgLanguage.o dlgSchema.o dlgDomain.o >>dlgTable.o dlgColumn.o dlgIndex.o dlgFunction.o dlgView.o dlgRule.o >>dlgOperator.o dlgAggregate.o dlgCast.o dlgConversion.o >>dlgIndexConstraint.o dlgForeignKey.o dlgSequence.o dlgTrigger.o >>dlgType.o dlgCheck.o frmStatus.o misc.o sysLogger.o sysSettings.o >>xrcDialogs.o /opt/postgresql-7.4.1/lib/libpq.a -lcrypt -lssl -lcrypto >>/opt/wxwindows/lib/libwx_gtk2ud_stc-2.5.a >>/opt/wxwindows/lib/libwx_gtk2ud_xrc-2.5.a -L/opt/wxwindows/lib -pthread >>/opt/wxwindows/lib/libwx_gtk2ud_html-2.5.a >>/opt/wxwindows/lib/libwx_gtk2ud_adv-2.5.a >>/opt/wxwindows/lib/libwx_gtk2ud_core-2.5.a >>/opt/wxwindows/lib/libwx_baseud_xml-2.5.a >>/opt/wxwindows/lib/libwx_baseud_net-2.5.a >>/opt/wxwindows/lib/libwx_baseud-2.5.a -Wl,--export-dynamic -pthread >>-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm >>-lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl >>-lgthread-2.0 -lglib-2.0 -Wl,--export-dynamic -lpangoft2-1.0 -lpango-1.0 >>-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lpng -ljpeg -ltiff -lexpat >>-lz -ldl -lm >>/usr/bin/ld: warning: libexpat.so.1, needed by >>/usr/X11R6/lib/libXft.so.2, may conflict with libexpat.so.0 >>pgConn.o: In function `pgConn::IsSSLconnected()': >>/home/dirk/setup/pgadmin3-1.0.2/src/db/pgConn.cpp:186: undefined >>reference to `PQgetssl' >>collect2: ld returned 1 exit status >>make[2]: *** [pgadmin3] Error 1 >>make[2]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2/src' >>make[1]: *** [all-recursive] Error 1 >>make[1]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2' >>make: *** [all] Error 2 >> >> >>I've got /usr/X11R6/lib/libexpat.so.1 as well as /usr/lib/libexpat.so.0. >> >>Where from here? >> >>Dirk >> >> > > >---------------------------(end of broadcast)--------------------------- >TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >
Rapha?l Enrici (blacknoz@club-internet.fr) wrote: > Hi, > I had a look to your build log and it looks to be the exact same problem > I had under debian since 1.0.1 (as the SSL build was broken in 1.0.x, I > didn't look too far to know from where this could come from and simply > backported a piece of 1.1x snapshot ... It solves SSL build and solved > the problem you describe too). > Can you try to apply the patch attached on a fresh ogAdmin3 1.0.2 source > and tell me if it solves your problem ? > > Thanks, > Rapha?l > Hi again, Thanks for your help and patience, Raphael! Well, yes I think the problem has been over come. But now ssl poses a problem. See below: make all-recursive make[1]: Entering directory `/home/setup/dirk/pgadmin3-1.0.2' Making all in src make[2]: Entering directory `/home/setup/dirk/pgadmin3-1.0.2/src' g++ -DDATA_DIR=\"/opt/pga3/share/pgadmin3/\" -Wall -g -I../src/include -Wall -g -O0 -L/opt/postgresql-7.4.1/lib -L/opt/wxwindows/lib -o pgadmin3 pgAdmin3.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 pgRule.o pgSchema.o pgSequence.o pgServer.o pgTable.o pgTrigger.o pgType.o pgUser.o pgView.o pgDatatype.o ctlSQLBox.o ctlSQLResult.o frmExport.o dlgAddTableView.o events.o frmAbout.o frmChildTableViewFrame.o frmConnect.o frmMain.o frmOptions.o frmPassword.o frmQuery.o frmQueryBuilder.o frmHelp.o frmQBJoin.o frmSplash.o frmMaintenance.o frmEditGrid.o dlgProperty.o dlgUser.o dlgGroup.o dlgDatabase.o dlgLanguage.o dlgSchema.o dlgDomain.o dlgTable.o dlgColumn.o dlgIndex.o dlgFunction.o dlgView.o dlgRule.o dlgOperator.o dlgAggregate.o dlgCast.o dlgConversion.o dlgIndexConstraint.o dlgForeignKey.o dlgSequence.o dlgTrigger.o dlgType.o dlgCheck.o frmStatus.o misc.o sysLogger.o sysSettings.o xrcDialogs.o /opt/postgresql-7.4.1/lib/libpq.a -lcrypt -lssl -lcrypto /opt/wxwindows/lib/libwx_gtk2ud_stc-2.5.a /opt/wxwindows/lib/libwx_gtk2ud_xrc-2.5.a -L/opt/wxwindows/lib -pthread /opt/wxwindows/lib/libwx_gtk2ud_html-2.5.a /opt/wxwindows/lib/libwx_gtk2ud_adv-2.5.a /opt/wxwindows/lib/libwx_gtk2ud_core-2.5.a /opt/wxwindows/lib/libwx_baseud_xml-2.5.a /opt/wxwindows/lib/libwx_baseud_net-2.5.a /opt/wxwindows/lib/libwx_baseud-2.5.a -Wl,--export-dynamic -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -Wl,--export-dynamic -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lpng -ljpeg -ltiff -lexpat -lz -ldl -lm /usr/bin/ld: warning: libexpat.so.1, needed by /usr/X11R6/lib/libXft.so.2, may conflict with libexpat.so.0 pgConn.o: In function `pgConn::IsSSLconnected()': /home/dirk/setup/pgadmin3-1.0.2/src/db/pgConn.cpp:186: undefined reference to `PQgetssl' collect2: ld returned 1 exit status make[2]: *** [pgadmin3] Error 1 make[2]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/setup/dirk/pgadmin3-1.0.2' make: *** [all] Error 2 I've got /usr/X11R6/lib/libexpat.so.1 as well as /usr/lib/libexpat.so.0. Where from here? Dirk
Nice! :) I'm glad you got it up. LFS is something I like. Have fun with pgAdmin3. Forget about the log, although it would be interesting to know why SSL build was tried as your libpq was not ssl enabled. Regards, Raphaël ----Message d'origine---- >Date: Mon, 23 Feb 2004 14:37:39 +0100 >De: Dirk Dil <mejerdil@pt.lu> >A: blacknoz@club-internet.fr >Sujet: Re: Re: [pgadmin-support] compiling problem > >blacknoz@club-internet.fr (blacknoz@club-internet.fr) wrote: >> >> ooops... I didn't see you were linking libpq.a and not .so. >> >> Try nm /opt/postgresql-7.4.1/lib/libpq.a | grep PQgetssl >> If you have an output then your libpq is ok. >> If so, I think you face the fact that pgconn.o is loaded before libpq.a in the linker or something like that. >> Try to laucnh manually the last line (linking stage) by inserting libpq.a before pgConn.o... If it solves the problemyou should have a pgadmin3 exe but we will have to go further to definitely solve the problem. >> >> I personnally link dynamically due to debian policy, but many developers here link statically. So it *should* work! :) >> >> To be continued :) >> >> Regards, >> Rapha?l >> > >Great!!! It works. > >The nm /opt/postgresql-7.4.1/lib/libpq.a | grep PQgetssl command gave >nothing. > >I went back to postgresql and rebuilt the lot using fresh sources and >the following: > >../configure --prefix=/opt/postgresql-7.4.1 --with-openssl=/usr/bin > not that far out of the way, no?------^^^^^^^ >now nm /opt/postgresql-7.4.1/lib/libpq.a | grep PQgetssl gives: >000010e0 T PQgetssl > >AND pgadmin3-1.0.2 compiled without a glich. > >This was of course the easy part... now I've got to learn how to use it. > >Raphael, thank you very much. I wouldn't have been able to this unaided. >I learned something in the process too!! > >I guess log files aren't of much interest now, but if you still want a >posting just ask. > >Dirk > >