Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Solaris GTK 3.1M4 and libgcc dependancy
Solaris GTK 3.1M4 and libgcc dependancy [message #448047] Wed, 29 December 2004 05:14 Go to next message
Arthur Gouros is currently offline Arthur GourosFriend
Messages: 11
Registered: July 2009
Junior Member
Folks,

Great to see that SWT for Solaris GTK is now part of the mainstream builds
- which now means I can stop doing them ports myself.

Just notice a linking issue when running my Solaris SWT application:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/usr/lib/managesoft/swt-gtk/libswt-pi-gtk-3116.so: ld.so.1:
/usr/j2sdk1.4.2_04/jre/bin/java: fatal: libgcc_s.so.1: open failed: No
such file or directory.

Which I think this is telling us that SWT for Solaris GTK has a dependancy
on libgcc_s.so which is something you don't really want to ship to make
SWT work.

I had a look at the makefile, and found I needed to make the following
changes to remove this dependancy (note I am using gcc 3.3.2):
1) The "-shared" references in variable LIBS became "-O2 -G". variable
AWT_LIBS was not changed.
2) The "-O" references in CFLAGS became "-O2 -G".

I also added the following variable to the makefile which I assume in your
environment is provided by a calling process:
CC=gcc
LD=gcc
CDE_HOME=/usr/dt
XTEST_LIB_PATH=/usr/X/lib
JAVA_HOME=/usr/java
AWT_LIB_PATH=$(JAVA_HOME)/jre/lib/sparc
-L$(JAVA_HOME)/jre/lib/sparc/motif21

And finally, I needed to edit os_structs.c to remove all references to
"screen_changed" because of the following compile error:
os_structs.c: In function `getGtkWidgetClassFields':
os_structs.c:1847: error: structure has no member named `screen_changed'
os_structs.c: In function `setGtkWidgetClassFields':
os_structs.c:1918: error: structure has no member named `screen_changed'
make: *** [os_structs.o] Error 1
I can't find anything on the Solaris web site to get my GTK devel files
updated which I think is the real isue here.

After these changes the source compiles fine and runs my application well.

I hope you can incorporate some of this info into your mainstream Solaris
GTK builds. If you would like me to raise a bug on any of this then please
indicate which of the above issues qualify.

Cheers,
Arthur Gouros

PS: A mainstream solaris GTK build for the x86 architecture would be nice
too.
Re: Solaris GTK 3.1M4 and libgcc dependancy [message #448162 is a reply to message #448047] Tue, 04 January 2005 17:11 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Yes, please enter a bug report with the contents of this message. Thanks
for figuring this out.

"Arthur Gouros" <Arthur.Gouros@managesoft.com> wrote in message
news:cqtees$ijv$1@www.eclipse.org...
> Folks,
>
> Great to see that SWT for Solaris GTK is now part of the mainstream builds
> - which now means I can stop doing them ports myself.
>
> Just notice a linking issue when running my Solaris SWT application:
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> /usr/lib/managesoft/swt-gtk/libswt-pi-gtk-3116.so: ld.so.1:
> /usr/j2sdk1.4.2_04/jre/bin/java: fatal: libgcc_s.so.1: open failed: No
> such file or directory.
>
> Which I think this is telling us that SWT for Solaris GTK has a dependancy
> on libgcc_s.so which is something you don't really want to ship to make
> SWT work.
>
> I had a look at the makefile, and found I needed to make the following
> changes to remove this dependancy (note I am using gcc 3.3.2):
> 1) The "-shared" references in variable LIBS became "-O2 -G". variable
> AWT_LIBS was not changed.
> 2) The "-O" references in CFLAGS became "-O2 -G".
>
> I also added the following variable to the makefile which I assume in your
> environment is provided by a calling process:
> CC=gcc
> LD=gcc
> CDE_HOME=/usr/dt
> XTEST_LIB_PATH=/usr/X/lib
> JAVA_HOME=/usr/java
> AWT_LIB_PATH=$(JAVA_HOME)/jre/lib/sparc
> -L$(JAVA_HOME)/jre/lib/sparc/motif21
>
> And finally, I needed to edit os_structs.c to remove all references to
> "screen_changed" because of the following compile error:
> os_structs.c: In function `getGtkWidgetClassFields':
> os_structs.c:1847: error: structure has no member named `screen_changed'
> os_structs.c: In function `setGtkWidgetClassFields':
> os_structs.c:1918: error: structure has no member named `screen_changed'
> make: *** [os_structs.o] Error 1
> I can't find anything on the Solaris web site to get my GTK devel files
> updated which I think is the real isue here.
>
> After these changes the source compiles fine and runs my application well.
>
> I hope you can incorporate some of this info into your mainstream Solaris
> GTK builds. If you would like me to raise a bug on any of this then please
> indicate which of the above issues qualify.
>
> Cheers,
> Arthur Gouros
>
> PS: A mainstream solaris GTK build for the x86 architecture would be nice
> too.
>
>
>
>
>
>
>
Previous Topic:modify listener for OleClientSite
Next Topic:After adding a selectionListener tree items don't expand on double-click
Goto Forum:
  


Current Time: Thu Mar 28 21:46:31 GMT 2024

Powered by FUDForum. Page generated in 0.02027 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top