Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78902 - pgadmin3 requires wxGTK, but tries to link to 'libwx_gtk2'
Summary: pgadmin3 requires wxGTK, but tries to link to 'libwx_gtk2'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on: 89937
Blocks:
  Show dependency tree
 
Reported: 2005-01-20 22:04 UTC by Ian Stakenvicius
Modified: 2005-05-03 06:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed fix (pgadmin3-1.0.2-bug78902.patch,746 bytes, patch)
2005-03-03 10:44 UTC, Ian Stakenvicius
Details | Diff
pgadmin3-1.2.1.ebuild (pgadmin3-1.2.1.ebuild,1.96 KB, text/plain)
2005-05-03 01:15 UTC, Rob Cakebread (RETIRED)
Details
pgadmin3-1.2.1-configure.patch (pgadmin3-1.2.1-configure.patch,1.68 KB, patch)
2005-05-03 01:16 UTC, Rob Cakebread (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Stakenvicius 2005-01-20 22:04:50 UTC
------
x86_64-pc-linux-gnu-g++ -DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall -g -I../src/include -I -march=opteron -O2 -pipe  -L/usr/lib/postgresql -L/usr/local/pgsql/lib -L/usr/lib -o pgadmin3  pgAdmin3.o [many many more object files].o  -lssl -lcrypto -lpq -lwx_gtk2-2.4 -lwx_gtk2_xrc-2.4 -lwx_gtk2_stc-2.4
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lwx_gtk2-2.4
collect2: ld returned 1 exit status
make[2]: *** [pgadmin3] Error 1
------

I'm not sure if this is an error with wxGTK, or with pgadmin3..  pgadmin3 depends on wxGTK.  wxGTK (v2.4) installs /usr/lib/libwx_gtk-2.4.so, while pgadmin3 is configured to link to /usr/lib/libwx_gtk2-2.4.so

...After creating symlinks as follows:

ln -s /usr/lib/libwx_gtk-2.4.so /usr/lib/libwx_gtk2-2.4.so
ln -s /usr/lib/libwx_gtk_stc-2.4.so /usr/lib/libwx_gtk2_stc-2.4.so
ln -s /usr/lib/libwx_gtk_xrc-2.4.so /usr/lib/libwx_gtk2_xrc-2.4.so

...and running emerge --resume, the package installed successfully, and seems to be stable..

Reproducible: Always
Steps to Reproduce:
1. unmerge pgadmin3 and/or wxGTK from a stable AMD64
2. emerge pgadmin3




Expected Results:  
either pgadmin3 should be linking to libwx_gtk-2.4 or wxGTK should install 
(symlinks, at least) to libwx_gtk2-2.4


Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-
r1, 2.6.9-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r14 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.13,sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r2,sys-devel/automake-1.6.3,sys-
devel/automake-1.7.9,sys-devel/automake-1.4_p6,sys-devel/automake-1.9.4,sys-
devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r2
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s
hare/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca http://gentoo.osuosl.org 
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi berkdb bitmap-fonts cdr crypt dvdr emul-linux-x86 esd f77 
font-server fortran ftp gd gif gnome gpm gtk imlib ipv6 jp2 jpeg libwww lzw lzw-
tiff mpi multilib ncurses nls opengl pam perl php png postgres python readline 
samba ssl tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml 
xml2 xpm xrandr xv zlib"
Comment 1 Axel Reimann 2005-02-12 00:56:05 UTC
On my box it helped to run the following command:
> USE=-unicode USE=-gtk2 emerge wxGTK
before emerging pgadmin3.
Comment 2 Ian Stakenvicius 2005-03-03 10:44:09 UTC
Created attachment 52560 [details, diff]
proposed fix

This should fix the problem -- i wrapped the library substitution so it links
to different libs if gtk2 is USEd.  I don't think it will break anything else,
but a test of the patch on a system USEing gtk2 should confirm.
Comment 3 tuXXer 2005-04-05 04:13:08 UTC
When trying to connect to the latest stable PostgreSQL server (8.0.1-r2), there is an error pop up in pgadmin3 which sayes that "dbpath" could not be found. I read furthermore, that only pgadmin3-1.2 has PostgreSQL 8.0 support and this version is masked and unstable in portage, because of wxGTK-2.5.
Comment 4 Heitzso 2005-04-07 11:37:30 UTC
for what it is worth, I had a related problem with pgadmin3
"undefined references to _gtk_accel_group_detach (and kin)


I re-emerged wxGTK followed by pgadmin3 and it
straightened itself out.  
Comment 5 Rob Cakebread (RETIRED) gentoo-dev 2005-04-21 19:11:40 UTC
I'll take a look at this after wxGTK-2.6.0 goes in portage. Their homepage says they only support 2.5.1.3, so it should be easy to get working with 2.6

Heitzso, your problem is a separate issue with newer versions of gtk. Simply re-emerging wxGTK will fix it, if you haven't already.
Comment 6 Masatomo Nakano (RETIRED) gentoo-dev 2005-05-02 19:45:33 UTC
wxGTK-2.6 is in portage now.

Then I've changed wxGTK DEPEND from 2.5 to 2.6 and confired it's working.
So, I just unmasked pgadmin3 :)

If there are any problems, feel free to reopen this bug.
Comment 7 Masatomo Nakano (RETIRED) gentoo-dev 2005-05-02 19:54:25 UTC
sorry, i wrote wrong bug...

but, pgadmin-1.2 and wxGTK-2.6 will fix this bug?
Comment 8 Rob Cakebread (RETIRED) gentoo-dev 2005-05-02 20:12:49 UTC
It looks like the ebuild is wrong, always passing gkt2/unicode even if they choose gtk1 (-gtk2) with USE flags. I'll test it tonight and get back with my results/fix.
Comment 9 Rob Cakebread (RETIRED) gentoo-dev 2005-05-03 01:15:50 UTC
Created attachment 57903 [details]
pgadmin3-1.2.1.ebuild
Comment 10 Rob Cakebread (RETIRED) gentoo-dev 2005-05-03 01:16:14 UTC
Created attachment 57904 [details, diff]
pgadmin3-1.2.1-configure.patch
Comment 11 Rob Cakebread (RETIRED) gentoo-dev 2005-05-03 01:20:29 UTC
Masatomo, 1.2.1 now only works with gtk2+unicode. The ebuild and patch were tested on amd64 and x86. I just updated the wxwidgets.eclass, so make sure you get it from cvs or emerge sync before trying the ebuild & patch please.

I'm not sure if the dependency for postgres is correct, but it compiles at starts fine using dev-db/postgresql-8.0.2
Comment 12 Masatomo Nakano (RETIRED) gentoo-dev 2005-05-03 06:00:29 UTC
Thanks Rob.
I've added the ebuild to the portage tree.