Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45551 - eclipse swt broken
Summary: eclipse swt broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Lim Swee Tat (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-23 14:45 UTC by Dick Marinus
Modified: 2004-03-26 09:57 UTC (History)
2 users (show)

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


Attachments
patch to make swt use deprecated gtk functions (eclipse-gtk-2.4.patch,354 bytes, patch)
2004-03-25 14:26 UTC, Dick Marinus
Details | Diff
updated ebuild (eclipse-sdk-2.1.2-r1.ebuild,7.73 KB, text/plain)
2004-03-25 14:27 UTC, Dick Marinus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dick Marinus 2004-03-23 14:45:31 UTC
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?
Comment 1 Dick Marinus 2004-03-24 08:54:47 UTC
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?
Comment 2 Dick Marinus 2004-03-24 12:23:39 UTC
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*)
Comment 3 Dick Marinus 2004-03-25 14:26:24 UTC
Created attachment 28016 [details, diff]
patch to make swt use deprecated gtk functions
Comment 4 Dick Marinus 2004-03-25 14:27:39 UTC
Created attachment 28017 [details]
updated ebuild
Comment 5 Dick Marinus 2004-03-26 02:18:17 UTC
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
Comment 6 Dick Marinus 2004-03-26 09:57:26 UTC
After emerge rsync ; emerge eclipse everything is back to normal, thanks again!