Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 146535

Summary: dev-java/swt-3.2-r1 fails to compile
Product: Gentoo Linux Reporter: taskin <taskin>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED NEEDINFO    
Severity: normal CC: java
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 /
 * swt-3.2-gtk-linux-x86.zip MD5 ;-) ...                                  [ ok ]
 * swt-3.2-gtk-linux-x86.zip RMD160 ;-) ...                               [ ok ]
 * swt-3.2-gtk-linux-x86.zip SHA1 ;-) ...                                 [ ok ]
 * swt-3.2-gtk-linux-x86.zip SHA256 ;-) ...                               [ ok ]
 * swt-3.2-gtk-linux-x86.zip size ;-) ...                                 [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking swt-3.2-gtk-linux-x86.zip ;-) ...                             [ ok ]
 * Using: blackdown-jdk-1.4.2
>>> Unpacking source...
 * Unpacking src.zip 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-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux -fPIC    -c -o swt_awt.o swt_awt.c
cc -L/opt/blackdown-jdk-1.4.2.03/jre/lib/i386 -ljawt -shared -s -o libswt-awt-gtk-3232.so swt_awt.o
 * Building SWT library
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux -fPIC  -c swt.c
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux -fPIC  -c callback.c
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux -fPIC  `pkg-config --cflags gtk+-2.0` -c os.c
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux -fPIC  `pkg-config --cflags gtk+-2.0` -c os_structs.c
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux -fPIC  `pkg-config --cflags gtk+-2.0` -c os_custom.c
cc -O -Wall -DSWT_VERSION=3232  -DLINUX -DGTK -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux -fPIC  `pkg-config --cflags gtk+-2.0` -c os_stats.c
cc -shared -fPIC -s -o libswt-gtk-3232.so 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 libswt-pi-gtk-3232.so 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: *** [libswt-pi-gtk-3232.so] Error 1

!!! ERROR: dev-java/swt-3.2-r1 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, 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-1.4.2.03"
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-apps/sandbox:    1.2.18.1
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.8.1-r1, 2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -pipe -O2"
CHOST="i686-pc-linux-gnu"
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"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://85.25.128.62"
LINGUAS="de en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
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"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

###

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,

Taskin
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 http://www.gentoo.org/doc/en/java.xml#doc_chap4
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,

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