Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290506 - dev-java/jna-3.0.3-r1: failing because of missing X11/Xlib.h
Summary: dev-java/jna-3.0.3-r1: failing because of missing X11/Xlib.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 380037 (view as bug list)
Depends on: 291784
Blocks:
  Show dependency tree
 
Reported: 2009-10-25 20:52 UTC by Mounir Lamouri (volkmar) (RETIRED)
Modified: 2021-01-01 17:10 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,4.14 KB, text/plain)
2009-10-25 20:54 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-10-25 20:52:13 UTC
Error :
/opt/ibm-jdk-bin-1.6.0.6/jre/../include/linux/jawt_md.h:11:22: error: X11/Xlib.h: No such file or directory

Maybe ibm-jdk-bin-1.6.0.6 needs to depend on x11-libs/libX11 ?
Comment 1 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-10-25 20:54:15 UTC
Created attachment 208251 [details]
Build log
Comment 2 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-10-25 20:56:40 UTC
or maybe dev-java/jna should force X use flag for dev-java/ibm-jdk-bin ?
Comment 3 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-10-25 21:05:24 UTC
It also needs /usr/include/X11/Intrinsic.h from x11-libs/libXt
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-11-03 20:39:51 UTC
libXt dep was added, thanks

the X use deps should go to virtual/jdk though
Comment 5 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-01-03 10:55:41 UTC
I think this failure is similar:

native:
     [exec] cc -m64 -march=native -O2 -pipe -I/usr/lib64/libffi-3.0.8/include -W                                                all -Wno-unused -Wno-parentheses -fPIC -fno-omit-frame-pointer -fno-strict-alias                                                ing   -D_REENTRANT -DHAVE_PROTECTION -I"/opt/sun-jdk-1.6.0.17/jre/../include" -I                                                "/opt/sun-jdk-1.6.0.17/jre/../include/linux" -I"/var/tmp/portage/dev-java/jna-3.                                                0.3-r1/work/jna-3.0.3/build-d64/native" -I/var/tmp/portage/dev-java/jna-3.0.3-r1                                                /work/jna-3.0.3/build-d64/native/libffi/include -DVERSION='"3.0.4"' -DCHECKSUM='                                                "892beacd437514d23ed9b1cefeb2ead6"' -c dispatch.c -o /var/tmp/portage/dev-java/j                                                na-3.0.3-r1/work/jna-3.0.3/build-d64/native/dispatch.o
     [exec] In file included from dispatch.c:72:
     [exec] /opt/sun-jdk-1.6.0.17/jre/../include/linux/jawt_md.h:11:22: error: X                                                11/Xlib.h: No such file or directory
     [exec] /opt/sun-jdk-1.6.0.17/jre/../include/linux/jawt_md.h:12:23: error: X                                                11/Xutil.h: No such file or directory
     [exec] /opt/sun-jdk-1.6.0.17/jre/../include/linux/jawt_md.h:13:27: error: X                                                11/Intrinsic.h: No such file or directory
     [exec] In file included from dispatch.c:72:
     [exec] /opt/sun-jdk-1.6.0.17/jre/../include/linux/jawt_md.h:25: error: expe                                                cted specifier-qualifier-list before 'Drawable'
     [exec] dispatch.c: In function 'Java_com_sun_jna_Native_getWindowHandle0':
     [exec] dispatch.c:1797: error: 'JAWT_X11DrawingSurfaceInfo' has no member n                                                amed 'drawable'
     [exec] make: *** [/var/tmp/portage/dev-java/jna-3.0.3-r1/work/jna-3.0.3/bui                                                ld-d64/native/dispatch.o] Error 1

Info:

Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-1.12.13
Timestamp of tree: Mon, 28 Dec 2009 10:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages metadata-transfer multilib-strict parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
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="/home/djc/src/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="amd64 bash-completion bonjour ctypes-python dht flac ipv6 jpeg lame lzma multilib offensive ogg pam pcre png python readline sqlite sqlite3 sse sse2 ssl syslog threads threadsafe unicode vchroot wavpack webdav-neon xml zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_default                  authn_file authz_default authz_host authz_groupfile autoindex                  cache dav dav_fs dav_lock deflate dir disk_cache env                  expires ext_filter file_cache filter headers ident info                  log_config logio mem_cache mime mime_magic proxy proxy_connect                  proxy_http rewrite so status unique_id userdir usertrack                  vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Mina Naguib 2011-03-25 13:39:15 UTC
I'm seeing the same problem reported by Dirkjan:

native:
     [exec] cc -O2 -pipe -Wall -Wno-unused -Wno-parentheses -fPIC  -O2 -fno-omit-frame-pointer -fno-strict-aliasing   -D_REENTRANT -DHAVE_PROTECTION -I"/opt/sun-jdk-1.6.0.24/jre/../include" -I"/opt/sun-jdk-1.6.0.24/jre/../include/linux" -I"/var/tmp/portage/dev-java/jna-3.2.4/work/jna-3.2.4/build-d64/native" -I/include -DVERSION='"3.2.1"' -DCHECKSUM='"c870290c36c8d3fdf85db7c782febc3f"' -I/usr/lib64/libffi-3.0.9/include   -c dispatch.c -o /var/tmp/portage/dev-java/jna-3.2.4/work/jna-3.2.4/build-d64/native/dispatch.o
     [exec] In file included from dispatch.c:78:
     [exec] /opt/sun-jdk-1.6.0.24/jre/../include/linux/jawt_md.h:11:22: error: X11/Xlib.h: No such file or directory
     [exec] /opt/sun-jdk-1.6.0.24/jre/../include/linux/jawt_md.h:12:23: error: X11/Xutil.h: No such file or directory
     [exec] /opt/sun-jdk-1.6.0.24/jre/../include/linux/jawt_md.h:13:27: error: X11/Intrinsic.h: No such file or directory
     [exec] In file included from dispatch.c:78:
     [exec] /opt/sun-jdk-1.6.0.24/jre/../include/linux/jawt_md.h:25: error: expected specifier-qualifier-list before 'Drawable'
     [exec] dispatch.c: In function 'Java_com_sun_jna_Native_getWindowHandle0':
     [exec] dispatch.c:2205: error: 'JAWT_X11DrawingSurfaceInfo' has no member named 'drawable'
     [exec] make: *** [/var/tmp/portage/dev-java/jna-3.2.4/work/jna-3.2.4/build-d64/native/dispatch.o] Error 1

BUILD FAILED
/var/tmp/portage/dev-java/jna-3.2.4/work/jna-3.2.4/build.xml:308: exec returned: 2
Comment 7 Anton Bolshakov 2011-03-30 23:11:33 UTC
So, 2 years later, can these 2 dependencies be added?
 x11-libs/libXt-1.0.9                                                                                                               
 x11-libs/libX11-1.4.1

I definitely not happy to see X stuff on my server, but if no other choose ..
Unless somebody can come up with the patch..
Comment 8 Miroslav Šulc gentoo-dev 2011-12-25 14:24:54 UTC
*** Bug 380037 has been marked as a duplicate of this bug. ***
Comment 9 Miroslav Šulc gentoo-dev 2011-12-25 14:29:54 UTC
jna-3.4.0 introduces awt use flag which should partially fix the issue. when not enabled, it should not include jawt header files from java so it should compile fine even on systems without X libraries. it could also fix the requirement of jre/jdk being built with X use flag but we do not have this use flag on virtuals yet.

@java: could someone more experienced than me with various jdk/jre implementations add the X use flag to our jdk/jre virtuals? there is already bug 291784 for this.
Comment 10 James Le Cuirot gentoo-dev 2016-05-11 21:01:40 UTC
We haven't added flags to the virtuals yet but there's a separate bug for that. 3.0.3-r1 was removed ages ago so closing.