I can't start eclipse anymore, I get a: Caused by: java.lang.UnsatisfiedLinkError: no swt-pi-gtk-2135 in java.library.path When I try to emerge eclipse-sdk I get the following errors: gcc -c -O -s -DSWT_VERSION=2135 -DLINUX -DGTK -fpic -fPIC `pkg-config --cflags gtk+-2.0` `pkg-config --cflags pango` -I/opt/sun-jdk-1.4.2.04/include -I/opt/sun-jdk-1.4.2.04/include/linux `pkg-config --cflags gtk+-2.0` `pkg-config --cflags pango` swt.c In file included from swt.c:21: structs.h:65: error: syntax error before '*' token structs.h:65: error: syntax error before "GtkCombo" structs.h:65: warning: data definition has no type or storage class structs.h:66: error: syntax error before "GtkCombo" swt.c: In function `Java_org_eclipse_swt_internal_gtk_OS_gtk_1combo_1disable_1activate': swt.c:2393: error: `GtkCombo' undeclared (first use in this function) swt.c:2393: error: (Each undeclared identifier is reported only once swt.c:2393: error: for each function it appears in.) swt.c:2393: error: syntax error before ')' token swt.c: In function `Java_org_eclipse_swt_internal_gtk_OS_gtk_1combo_1set_1case_1sensitive': swt.c:2413: error: `GtkCombo' undeclared (first use in this function) swt.c:2413: error: syntax error before ')' token swt.c: In function `Java_org_eclipse_swt_internal_gtk_OS_gtk_1combo_1set_1popdown_1strings': swt.c:2423: error: `GtkCombo' undeclared (first use in this function) swt.c:2423: error: syntax error before ')' token swt.c: In function `Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkCombo_2I': swt.c:6254: error: `GtkCombo' undeclared (first use in this function) swt.c:6254: error: syntax error before ')' token make: *** [swt.o] Error 1 mkdir: cannot create directory `/var/tmp/portage/eclipse-sdk-2.1.2-r1/work/plugins/org.eclipse.swt.gtk/os/linux/x86': File exists make: make_linux.mak: No such file or directory make: *** No rule to make target `make_linux.mak'. Stop. Though emerge continues and finishes 'successfully' :-( I'm running ~x86 -- What is borken?
I've found the cause of this problem: from: http://mail.gnome.org/archives/gtk-app-devel-list/2004-March/msg00178.html New drop-down selection widget The GtkComboBox widget replaces the old GtkOptionMenu and GtkCombo widgets with a single unified appearance and programming interface for both editable and non-editable dropdowns. Other enhancements provided include customizability of the main display widget and grid layouts for the drop-down menu. I've already filed a bugreport on eclipse bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=55934 Maybe we should change the dependancies?
Maybe we should use the following dependancies: RDEPEND=">=virtual/jdk-1.3 kde? ( kde-base/kde x11-libs/openmotif ) : ( gnome? ( =gnome-base/gnome-vfs-2* ) : ( motif? ( x11-libs/openmotif ) : ( =x11-libs/gtk+-2.2* ) ) ) motif? ( x11-libs/openmotif ) gnome? ( =gnome-base/gnome-vfs-2* ) gtk? ( =x11-libs/gtk+-2.2* )" (= gtk+-2.2*)
Created attachment 28016 [details, diff] patch to make swt use deprecated gtk functions
Created attachment 28017 [details] updated ebuild
I suppose Lim Swee Tat fixed this bug! Thanks 25 Mar 2004; Lim Swee Tat <st_lim@gentoo.org> eclipse-sdk-2.1.2-r1.ebuild: Updated eclipse-sdk-2.1.2-r1 and added eclipse-2.1.3 There is a deprecation of GtkCombo in gtk+-2.4 and the deprecation causes compilation of libswt-pi-gtk to fail. Removed "#define GTK_DISABLE_DEPRECATION" to allow for compilation Only tested against gtk+-2.4
After emerge rsync ; emerge eclipse everything is back to normal, thanks again!