------ 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"
On my box it helped to run the following command: > USE=-unicode USE=-gtk2 emerge wxGTK before emerging pgadmin3.
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.
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.
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.
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.
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.
sorry, i wrote wrong bug... but, pgadmin-1.2 and wxGTK-2.6 will fix this bug?
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.
Created attachment 57903 [details] pgadmin3-1.2.1.ebuild
Created attachment 57904 [details, diff] pgadmin3-1.2.1-configure.patch
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
Thanks Rob. I've added the ebuild to the portage tree.