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
diff -cr gtk+-2.4.1/configure.in gtk+-2.4.1.patched/configure.in
*** gtk+-2.4.1/configure.in 2004-04-30 09:02:06.000000000 -0700
--- gtk+-2.4.1.patched/configure.in 2004-06-17 17:00:47.000000000 -0700
***************
*** 331,337 ****
if test "$os_win32" != yes; then
# libtool option to control which symbols are exported
# right now, symbols starting with _ are not exported
! LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"'
else
# We currently use .def files on Windows (for gdk-pixbuf, gdk and gtk)
LIBTOOL_EXPORT_OPTIONS=
--- 331,338 ----
if test "$os_win32" != yes; then
# libtool option to control which symbols are exported
# right now, symbols starting with _ are not exported
! #LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"'
! LIBTOOL_EXPORT_OPTIONS=
else
# We currently use .def files on Windows (for gdk-pixbuf, gdk and gtk)
LIBTOOL_EXPORT_OPTIONS=