Re: compiling problem

Lists: pgadmin-support
From: Dirk Dil <mejerdil(at)pt(dot)lu>
To: pgadmin-support(at)postgresql(dot)org
Subject: compiling problem
Date: 2004-02-22 10:24:46
Message-ID: 20040222102446.GA531@ddlx1.ddnet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-support


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


From: Raphaël Enrici <blacknoz(at)club-internet(dot)fr>
To: Dirk Dil <mejerdil(at)pt(dot)lu>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: compiling problem
Date: 2004-02-22 10:56:04
Message-ID: 40388AC4.9000009@club-internet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-support

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
>
>


From: Raphaël Enrici <blacknoz(at)club-internet(dot)fr>
To: Dirk Dil <mejerdil(at)pt(dot)lu>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: compiling problem
Date: 2004-02-22 11:20:28
Message-ID: 4038907C.6080804@club-internet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-support

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
>


From: Raphaël Enrici <blacknoz(at)club-internet(dot)fr>
To: Dirk Dil <mejerdil(at)pt(dot)lu>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: compiling problem
Date: 2004-02-22 13:14:14
Message-ID: 4038AB26.106@club-internet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-support

Dirk Dil wrote:

>Rapha?l Enrici (blacknoz(at)club-internet(dot)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>
>
>
>


From: Raphaël Enrici <blacknoz(at)club-internet(dot)fr>
To: Dirk Dil <mejerdil(at)pt(dot)lu>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: compiling problem
Date: 2004-02-22 18:29:04
Message-ID: 4038F4F0.60605@club-internet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-support

Dirk Dil wrote:

>Rapha?l Enrici (blacknoz(at)club-internet(dot)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 Content-Type Size
pgadmin3_1.0.2-0.1.diff.gz application/gzip 1.7 KB

From: Dirk Dil <mejerdil(at)pt(dot)lu>
To: Rapha?l Enrici <blacknoz(at)club-internet(dot)fr>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: compiling problem
Date: 2004-02-23 08:24:26
Message-ID: 20040223082426.GA314@ddlx1.ddnet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-support

Rapha?l Enrici (blacknoz(at)club-internet(dot)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