Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146535 - dev-java/swt-3.2-r1 fails to compile
Summary: dev-java/swt-3.2-r1 fails to compile
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2006-09-06 04:37 UTC by taskin
Modified: 2006-09-06 06:36 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description taskin 2006-09-06 04:37:45 UTC
Ha @ll,

have read all docs that I was able to find what the problem can be and how it could be fixed BUT everything failed!!

Hope you can help with this - thanks in advance for all of your efforts;-)

# emerge swt
Calculating dependencies... done!

>>> Emerging (1 of 1) dev-java/swt-3.2-r1 to /
 * MD5 ;-) ...                                  [ ok ]
 * RMD160 ;-) ...                               [ ok ]
 * SHA1 ;-) ...                                 [ ok ]
 * SHA256 ;-) ...                               [ ok ]
 * size ;-) ...                                 [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking ;-) ...                             [ ok ]
 * Using: blackdown-jdk-1.4.2
>>> Unpacking source...
 * Unpacking to /var/tmp/portage/swt-3.2-r1/work
 * Applying swt-3.2-gcc-4.x-warning-fix.patch ...                         [ ok ]
 * Applying swt-3.2-cairo-signedness-x86.patch ...                        [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/swt-3.2-r1/work ...
 * Building AWT library
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk- -I/opt/blackdown-jdk- -fPIC    -c -o swt_awt.o swt_awt.c
cc -L/opt/blackdown-jdk- -ljawt -shared -s -o swt_awt.o
 * Building SWT library
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk- -I/opt/blackdown-jdk- -fPIC  -c swt.c
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk- -I/opt/blackdown-jdk- -fPIC  -c callback.c
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk- -I/opt/blackdown-jdk- -fPIC  `pkg-config --cflags gtk+-2.0` -c os.c
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk- -I/opt/blackdown-jdk- -fPIC  `pkg-config --cflags gtk+-2.0` -c os_structs.c
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk- -I/opt/blackdown-jdk- -fPIC  `pkg-config --cflags gtk+-2.0` -c os_custom.c
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk- -I/opt/blackdown-jdk- -fPIC  `pkg-config --cflags gtk+-2.0` -c os_stats.c
cc -shared -fPIC -s -o swt.o callback.o
cc -shared -fPIC -s `pkg-config --libs-only-L gtk+-2.0 gthread-2.0` -lgtk-x11-2.0 -lgthread-2.0 -L/usr/X11R6/lib  -lXtst -o swt.o os.o os_structs.o os_custom.o os_stats.o
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXtst
collect2: ld returned 1 exit status
make: *** [] Error 1

!!! ERROR: dev-java/swt-3.2-r1 failed.
Call stack:, line 1543:   Called dyn_compile, line 936:   Called src_compile
  swt-3.2-r1.ebuild, line 111:   Called die

!!! Failed to build SWT support
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! When you file a bug report, please include the following information:
GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info

### my emerge --info ###
# emerge --info
Portage 2.1.1_rc1-r4 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4n i686)
System uname: 2.6.17-gentoo-r4n i686 AMD Duron(tm) processor
Gentoo Base System version 1.12.4
Last Sync: Wed, 06 Sep 2006 07:00:06 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:, 2.6.17
CFLAGS="-march=athlon-xp -pipe -O2"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -pipe -O2"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
LINGUAS="de en_GB"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
USE="x86 3dnow 3dnowext X aalib alsa apache2 apm arts asf avi berkdb bitmap-fonts cdparanoia cli crypt cups dbus dlloader dri dts dvb dvd dvdr dvdread elibc_glibc emboss encode ffmpeg flac foomaticdb gd gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux libg++ libwww linguas_de linguas_en_GB lirc mad mikmod mmx mmxext mng motif mp3 mpeg mysql ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl php png ppds pppd python qt qt3 qt4 quicktime readline real reflection sdl session spell spl sse sse2 ssl swat tcpd tiff truetype truetype-fonts type1-fonts udev usb userland_GNU v4l v4l2 video_cards_nv video_cards_nvidia vorbis win32codecs xml xmms xorg xv xvid zlib"


One thing maybe I didn't understand: If I change my VM to sun-jdk it make no difference for emerge to compile still with blackdown-jdk?!?! Is this something forced by the ebuild???

thx & regareds,

Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-06 04:59:19 UTC
(In reply to comment #0)
> One thing maybe I didn't understand: If I change my VM to sun-jdk it make no
> difference for emerge to compile still with blackdown-jdk?!?! Is this something
> forced by the ebuild???

This is because system vm doesn't control build vm anymore in generation-2, read "Preferred VM" at
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-06 05:26:37 UTC
Damn this is NOT a bugzilla product bug, it's written in huge bold letters on the bug page.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-06 05:28:59 UTC
> cannot find -lXtst

Do you have x11-libs/libXtst installed? The ebuild depends on it.
Comment 4 taskin 2006-09-06 06:21:05 UTC
(In reply to comment #3)
> > cannot find -lXtst
> Do you have x11-libs/libXtst installed? The ebuild depends on it.

Hi Jakup,

strange - it was already installed -> for some reason it was not found as you already mentioned:-?

Anyway, a re-emerge of x11-libs/libXtst did it;-) GREAT!!!!

Now I was also able to emerge azureus;-)

And sorry for the bugzilla-thing - I'm at work and have not read everthing on the site - hope will do it better in future:)

thx a lot and greetings from Dortmund,

(gentoo rulez!)
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-09-06 06:36:49 UTC
Thanks for reporting back, closing this one. ;)