Re: [GENERAL] Building pgadmin on Fedora core 2

From: Joe Conway <mail(at)joeconway(dot)com>
To: "Scot L(dot) Harris" <webid(at)cfl(dot)rr(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org, postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: [GENERAL] Building pgadmin on Fedora core 2
Date: 2004-06-21 20:52:58
Message-ID: 40D74AAA.60609@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-general

Scot L. Harris wrote:
> Running Fedora Core 2 trying to build pgadmin3 from source.
>
> Build wxWindows from sources. Appeared to build and install no problem.
>
> But when building pgadmin get the following error as it tries to build
> pgadmin3.
>
> /usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_settings.o)(.text+0xa55):
> In function `wxSystemSettingsNative::GetFont(wxSystemFont)':
> src/gtk/settings.cpp:346: undefined reference to
> `_gtk_rc_context_get_default_font_name'
> /usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xc5c): In
> function `wxMenubarUnsetInvokingWindow':
> src/gtk/menu.cpp:275: undefined reference to `_gtk_accel_group_detach'

After lots of googling I found reference to the fact that wxWindows uses
gtk functions that are supposed to be internal use only (i.e. all the
_gtk* functions). The version of gtk that ships with fc2 no longer
exports these symbols. My solution was to patch gtk to re-allow export
of the internal symbols -- see attached patch.

I could not get gtk+-2.4.0 to build on my system starting from the
(supposedly) fc2 src rpm. So I ended up building a gtk+-2.4.1 rpm using
the patched source as mentioned above. From there, all was well with
pgadmin3.

Mail me off-list if you'd like a copy of my modified src rpm.

HTH,

Joe

Attachment Content-Type Size
gtk+-2.4.1.patch text/x-patch 952 bytes

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Tamasi Srdjan 2004-06-22 06:46:59 Postgre odbc problem
Previous Message Scot L. Harris 2004-06-21 17:28:57 Building pgadmin on Fedora core 2

Browse pgsql-general by date

  From Date Subject
Next Message NTPT 2004-06-21 22:30:37 Re: Relocation error pg_dumpall undefined symbol get_progname in 7.4.3
Previous Message Martijn van Oosterhout 2004-06-21 20:26:33 Re: New to the list; would this be an okay question?