Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309585 - dev-java/gnu-classpath-0.98-r2 fails to compile due to error: X11/extensions/XTest.h: No such file or directory
Summary: dev-java/gnu-classpath-0.98-r2 fails to compile due to error: X11/extensions/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-15 14:02 UTC by Zeno Davatz
Modified: 2010-03-25 13:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zeno Davatz 2010-03-15 14:02:40 UTC
I am trying to install freemind but gnu-classpath-0.98-r2 fails on my with the following error:

gnu_java_awt_peer_gtk_GdkRobotPeer.c:43:34: error: X11/extensions/XTest.h: No such file or directory
gnu_java_awt_peer_gtk_GdkRobotPeer.c: In function 'Java_gnu_java_awt_peer_gtk_GdkRobotPeer_initXTest':
gnu_java_awt_peer_gtk_GdkRobotPeer.c:86: warning: implicit declaration of function 'XTestQueryExtension'
gnu_java_awt_peer_gtk_GdkRobotPeer.c: In function 'Java_gnu_java_awt_peer_gtk_GdkRobotPeer_mouseMove':
gnu_java_awt_peer_gtk_GdkRobotPeer.c:120: warning: implicit declaration of function 'XTestFakeMotionEvent'
gnu_java_awt_peer_gtk_GdkRobotPeer.c: In function 'Java_gnu_java_awt_peer_gtk_GdkRobotPeer_mousePress':
gnu_java_awt_peer_gtk_GdkRobotPeer.c:153: warning: implicit declaration of function 'XTestFakeButtonEvent'
gnu_java_awt_peer_gtk_GdkRobotPeer.c: In function 'Java_gnu_java_awt_peer_gtk_GdkRobotPeer_keyPress':
gnu_java_awt_peer_gtk_GdkRobotPeer.c:287: warning: implicit declaration of function 'XTestFakeKeyEvent'
make[3]: *** [gnu_java_awt_peer_gtk_GdkRobotPeer.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-java/gnu-classpath-0.98-r2/work/classpath-0.98/native/jni/gtk-peer'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-java/gnu-classpath-0.98-r2/work/classpath-0.98/native/jni'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-java/gnu-classpath-0.98-r2/work/classpath-0.98/native'
make: *** [all-recursive] Error 1
 * ERROR: dev-java/gnu-classpath-0.98-r2 failed:
 *   died running emake, base_src_make:make
 * 
 * Call stack:
 *     ebuild.sh, line   48:  Called src_compile
 *   environment, line 9630:  Called base_src_compile
 *   environment, line 5626:  Called base_src_make
 *   environment, line 5664:  Called die
 * The specific snippet of code:
 *           emake $@ || die "died running emake, $FUNCNAME:make";
 * 
 * If you need support, post the output of 'emerge --info =dev-java/gnu-classpath-0.98-r2',
 * the complete build log and the output of 'emerge -pqv =dev-java/gnu-classpath-0.98-r2'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea6-bin  CLASSPATH="" JAVA_HOME="/opt/icedtea6-bin-1.7.1"
JAVACFLAGS="-nowarn" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/dev-java/gnu-classpath-0.98-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/gnu-classpath-0.98-r2/temp/environment'.
 * S: '/var/tmp/portage/dev-java/gnu-classpath-0.98-r2/work/classpath-0.98'
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-21 21:21:43 UTC
Please post the output of:
- emerge --info
- emerge -pv gnu-classpath

and attach the build log:
/var/tmp/portage/dev-java/gnu-classpath-0.98-r2/temp/build.log
Comment 2 Andrew John Hughes 2010-03-22 02:13:08 UTC
Odd, the gtk USE flags adds a dependency on libXtst which includes the required header:

x11-libs/libXtst-1.1.0 (/usr/include/X11/extensions/XTest.h)
Comment 3 Andrew John Hughes 2010-03-22 02:14:10 UTC
Please attach the info. Caster requested.  There's not much that can be done without at least the actual gcc line above the quoted output.
Comment 4 Zeno Davatz 2010-03-22 07:23:03 UTC
There you go:

emerge --info

Portage 2.2_rc67 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.11-r0, 2.6.33-00001-gbaac35c i686)
=================================================================
System uname: Linux-2.6.33-00001-gbaac35c-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.1.6
Timestamp of tree: Wed, 17 Mar 2010 06:00:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.1.10
dev-lang/python:     2.4.4-r5, 2.5.2-r7, 2.6.3
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.1.6
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc:       3.3.6-r1, 4.1.2, 4.3.3-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_CH.UTF-8"
LC_ALL="de_CH.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"

~> emerge -pv gnu-classpath

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-java/gnu-classpath-0.98-r2  USE="alsa gtk xml -debug -doc -dssi -examples -gconf -gjdoc -gmp -gstreamer (-nsplugin) -qt4" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

 * IMPORTANT: 8 news items need reading for repository 'funtoo'.
 * Use eselect news to read news items.
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-24 13:50:59 UTC
Weird.

What's the output of (equery is in app-portage/gentoolkit):
equery f libXtst
Comment 6 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-24 13:56:56 UTC
Ah right, damn header file moves. I assume you have ~arch x11-proto/xextproto-7.1.1 but stable x11-libs/libXtst-1.0.3. Please upgrade libXtst first.
Comment 7 Zeno Davatz 2010-03-24 14:27:38 UTC
Ok, I will try that! Alltough I have become a fan of DIA ;) - as DIA does not use java ;) - uff.

Ok, worked. Thank you! gnuclass-path is now installed.
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-24 14:42:09 UTC
right, so the xextproto in DEPEND should become || ( >=x11-libs/libXtst-1.1.0 <x11-proto/xextproto-7.1 )
We already had to change swt like this. I will commit it when I can access my box...
Comment 9 Zeno Davatz 2010-03-24 14:46:30 UTC
Thank you! Altough I do not like java, I do appreciate you help!
Comment 10 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-25 13:16:28 UTC
Fixed