Обсуждение: Building pgadmin on Fedora core 2

Поиск
Список
Период
Сортировка

Building pgadmin on Fedora core 2

От
"Scot L. Harris"
Дата:
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'
/usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xd76): In
function `wxMenubarSetInvokingWindow':
src/gtk/menu.cpp:299: undefined reference to `_gtk_accel_group_attach'
/usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xe91): In
function `wxMenuBar::SetInvokingWindow(wxWindow*)':
src/gtk/menu.cpp:323: undefined reference to `_gtk_accel_group_attach'
/usr/local/lib/libwx_gtk2ud_core-2.5.a(corelib_menu.o)(.text+0xf68): In
function `wxMenuBar::UnsetInvokingWindow(wxWindow*)':
src/gtk/menu.cpp:344: undefined reference to `_gtk_accel_group_detach'
collect2: ld returned 1 exit status

I saw similar errors described in the archives but I did not see any
fixes posted.

Does anyone have any ideas regarding these errors?

Had no problems building this under Red Hat 8.0.




--
Scot L. Harris
webid@cfl.rr.com

meeting, n.:
    An assembly of people coming together to decide what person or
    department not represented in the room must solve a problem.


Re: Building pgadmin on Fedora core 2

От
Joe Conway
Дата:
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=

Re: [pgadmin-support] Building pgadmin on Fedora core 2

От
"Scot L. Harris"
Дата:
On Wed, 2004-06-23 at 09:56, Adam H. Pendleton wrote:

> Would it be better for us to put a patch into our wxWindows tree for
> this, rather than patching gtk?  Do we really want to maintain a gtk
> patch as well?  Also, I've built pgAdmin3 on a fresh FC2 without having
> to patch anything, which means that there are probably changes in the
> wxWindows tree to fix this.  Perhaps we can backport them?
>
> ahp

I for one would much prefer a patch in the wxWindows code.  I am
reluctant to start maintaining a different version of gtk+ just for this
application.

It is interesting that you managed to build pgadmin3 on  FC2.  That is
where I started working on this.  Did you use a newer version of
wxWindows?

wxWindows-pgAdmin3-20031010-7.tar is the version I have been trying to
use.  I built it just fine on an RedHat 8.0 system but on FC2 I get the
errors reported previously.

pgadmin3-1.0.2.tar.gz is the pgadmin3 version I am using.  I also had to
track down a patch to fix a problem with the configure script for this
version.  pgadmin3_1.0.2-0.1.diff.  I found this in the archives.

The only other issue I ran into was making sure I had ssl support
complied into postgresql-7.4.2 since the pgadmin make file appear to be
unable to deal with not having ssl support included.

So what versions of these packages did you get to compile under FC2
without problems?

--
Scot L. Harris
webid@cfl.rr.com

Tomorrow, this will be part of the unchangeable past but fortunately,
it can still be changed today.


Re: [pgadmin-support] Building pgadmin on Fedora core 2

От
Joe Conway
Дата:
Adam H. Pendleton wrote:
> Joe Conway wrote: | 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.

> Would it be better for us to put a patch into our wxWindows tree for
> this, rather than patching gtk?  Do we really want to maintain a gtk
> patch as well?

Perhaps, but I have no idea what the implications are for wxWindows if
you remove the _gtk* calls. I really didn't want to take the time myself
to evaluate it. Clearly that is what needs to happen in the long run though.

> Also, I've built pgAdmin3 on a fresh FC2 without having to patch
> anything, which means that there are probably changes in the
> wxWindows tree to fix this.  Perhaps we can backport them?

Not sure. My attempts were also on a fresh FC2 install, and I had the
problem as described by Scot.

Joe

Re: [pgadmin-support] Building pgadmin on Fedora core 2

От
"Adam H. Pendleton"
Дата:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joe Conway wrote:

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

Would it be better for us to put a patch into our wxWindows tree for
this, rather than patching gtk?  Do we really want to maintain a gtk
patch as well?  Also, I've built pgAdmin3 on a fresh FC2 without having
to patch anything, which means that there are probably changes in the
wxWindows tree to fix this.  Perhaps we can backport them?

ahp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows 2000)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA2Ywcf/U4M//FQ/URAgKiAKC4KixjUlGgTebwgZsiFf+lRS5rIACdGZQh
jRBCMvZWmTj4vTmJ2XEdt9M=
=AdzQ
-----END PGP SIGNATURE-----