econf for this package fails with the following output. checking if java works... yes checking for javah... /usr/bin/javah configure: warning: unable to include <jni.h> checking for javadoc... javadoc checking for jar... jar checking for javac... /usr/bin/javac checking symlink for /usr/bin/javac... /usr/bin/run-java-tool configure: error: cannot find java include files !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /var/tmp/portage/libdsk-1.1.10/work/libdsk-1.1.10/config.log !!! ERROR: app-emulation/libdsk-1.1.10 failed. Call stack: ebuild.sh, line 1543: Called dyn_compile ebuild.sh, line 938: Called src_compile libdsk-1.1.10.ebuild, line 20: Called econf '--with-zlib' '--with-bzlib' '--enable-floppy' '--with-jni' '--with-java-prefix=/etc/java-config-2/current-system-vm' ebuild.sh, line 539: Called die emerge --info below (please note I have also attempted the merge with ccache disabled, to no avail) Portage 2.1.1_rc1-r2 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r5 i686) ================================================================= System uname: 2.6.17-gentoo-r5 i686 Intel(R) Celeron(R) CPU 2.60GHz Gentoo Base System version 1.12.4 Last Sync: Thu, 31 Aug 2006 18:50:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 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.17 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -w" 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 /usr/share/wine" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /usr/share/wine/fonts" CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -w" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer nodoc sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/" LINGUAS="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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://brazil/gentoo-portage" USE="x86 X a52 aac acpi alsa apache2 apm arts asf avi berkdb bitmap-fonts bluetooth bzip2 cairo cdparanoia cdr cli crypt cups dbus dio dlloader dri dvd dvdread eds elibc_glibc emboss encode esd ffmpeg flac flash foomaticdb fortran gdbm gif gpm gstreamer gtk2 hal i8x0 ieee1394 imagemagick imlib innodb input_devices_keyboard input_devices_mouse input_devices_synaptics isdnlog java javascript jpeg kde kernel_linux libg++ libwww linguas_en_GB mad matroska mikmod mmx motif mp3 mpeg msn mysql mysqli ncurses nls nptl nptlonly nsplugin odbc ogg opengl oss pam pcmcia pcntl pcre pdflib perl php png posix ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session sharedmem soap sockets spell spl sse sse2 ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU utf8 vcd vhosts video_cards_fbdev video_cards_i810 video_cards_vesa vorbis wifi win32codecs xcomposite xine xinerama xml xmlrpc xmms xorg xsl xv xvid xvmc zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS Java settings: [I--] [ ~] dev-java/sun-j2me-bin-2.2-r3 (0) [I--] [ ~] dev-java/sun-jaf-bin-1.1 (0) [I--] [ ~] dev-java/sun-javamail-bin-1.4 (0) [I--] [ ~] dev-java/sun-jdk-1.4.2.12-r1 (1.4) [I--] [ ~] dev-java/sun-jdk-1.5.0.08 (1.5) java-config-1 -L [sun-jdk-1.4.2.12] "Sun JDK 1.4.2.12" (/etc/env.d/java/20sun-jdk-1.4.2.12) * java-config-2 -L 1) Sun JDK 1.4.2.12 [sun-jdk-1.4] (/usr/share/java-config-2/vm/sun-jdk-1.4) *) Sun JDK 1.5.0.08 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5) java-check-environment reports a sane environment. Any other postings required, please ask. Regards, Robin B.
Created attachment 95700 [details] config.log for libdsk-1.1.10
Created attachment 95835 [details] emerge --info
I have the same problem whit sys-libs/db-3.2.9-r10 checking for javac... /opt/blackdown-jdk-1.4.2.03/bin/javac checking for jar... jar checking for javac... /usr/bin/javac checking symlink for /usr/bin/javac... /usr/bin/run-java-tool configure: error: cannot find java include files !!! ERROR: sys-libs/db-3.2.9-r10 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile db-3.2.9-r10.ebuild, line 111: Called die
(In reply to comment #3) > I have the same problem whit sys-libs/db-3.2.9-r10 You probably want this bug then: http://bugs.gentoo.org/show_bug.cgi?id=132690
(In reply to comment #4) Yes I do! But it seems to be the same problem i both ebuilds
Tried the ususal: inherit java-pkg pkg_setup() { use java && java-pkg_pkg_setup } But it didn't help, it doesn't seem to honour $JAVAC, so it always finds the wrapper script. Dunno how to force it on the configure script without patching it.
I added the codelisting from comment #6 and it worked. The JAVAC seems to have been detected from the environment because of configure output. Can you please check it again. The config.log attached seems to be truncated. Below is my output. ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-zlib --with-bzlib --enable-floppy --with-jni --with-java-prefix=/opt/blackdown-jdk-1.4.2.03 --build=i686-pc-linux-gnu creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu ....... You have CLASSPATH ., hope it is correct checking if javac works... yes checking for uudecode... yes checking if uudecode can decode base 64 file... yes checking if java works... yes checking for javah... /opt/blackdown-jdk-1.4.2.03/bin/javah checking for javadoc... javadoc checking for jar... jar checking for javac... /opt/blackdown-jdk-1.4.2.03/bin/javac checking for jni.h... yes checking for working const... yes checking for size_t... yes checking for executable suffix... (cached) no checking for object suffix... (cached) o checking whether gcc needs -traditional... no From config.log configure:6776:17: jni.h: No such file or directory configure: failed program was: #line 6775 "configure" #include "confdefs.h" #include <jni.h> configure:6800: gcc -E -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux conftest.c >/dev/null 2>conftest.out configure:6859: checking for javadoc configure:6934: checking for jar configure:6975: checking for javac configure:7068: checking for jni.h configure:7078: gcc -E -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackd own-jdk-1.4.2.03/include/linux conftest.c >/dev/null 2>conftest.out configure:7117: checking for working const configure:7171: gcc -c -Wall -DNOTWINDLL -ggdb3 -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux -I/opt/blackdown-jdk-1.4. 2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux conftest.c 1>&5 configure: In function `main': configure:7145: warning: unused variable `s' configure:7165: warning: unused variable `foo' configure:7127: warning: unused variable `x' configure:7133: warning: unused variable `zero' configure:7192: checking for size_t configure:7227: checking for executable suffix configure:7258: checking for object suffix $ emerge --info Portage 2.1.2_rc1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r8 i686) ================================================================= System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) Gentoo Base System version 1.12.5 Last Sync: Sat, 28 Oct 2006 18:20:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 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: [Not Present] sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig cvs distlocks metadata-transfer parallel-fetch sandbox sfperms sign strict userpriv usersandbox" GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo http://ftp.swin.edu.au/gentoo/ http://mirror.isp.net.au/ftp/pub/gentoo/ http://mirror.pacific.net.au/linux/Gentoo/ http://gentoo.osuosl.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en_GB en_AU en" MAKEOPTS="-j3" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://mirror.linux.org.au/gentoo-portage" USE="x86 3dnow 3dnowex X aac acpi alsa apm ares bash-completion berkdb bitmap-fonts bzip2 caps cli cracklib crypt cups curl dbus divx4linux dlloader dri drm ecc elibc_glibc emboss encode ethereal extensions fastcgi fla flac foomaticdb fortran gd gif gimp gimpprint gmp gnutls gphoto2 gstreamer gtk gtk2 hal hardened hpn i8x0 iconv idn ilbc imagemagick imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog javacomm jpeg kde kdeenablefinal kerberos kernel_linux l7filter lcms libg++ libgda libwww linguas_en linguas_en_AU linguas_en_GB lzo lzw mad mbox mikmod mmx mng motif mp3 mpeg multitarget mysql nptl nptlonly ntlm ogg oggvorbis openal openexr opengl operanom2 pam pcre perl php png postgres ppds pppd python qt qt3 qt4 readline reflection samba sdl session sguil slp smime socks5 sox speex spell spl sse ssl svg svgz tga theora tiff true-type truetype truetype-fonts type1-fonts udev usb userland_GNU vhosts video_cards_fbdev video_cards_nv video_cards_vesa video_cards_vga vorbis wmf x264 xine xinerama xml xml2 xorg xscreensaver zlib zrtp" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS $ java-config -L [blackdown-jre-1.4.2.03] "Blackdown JRE 1.4.2.03" (/etc/env.d/java/20blackdown-jre-1.4.2.03) [blackdown-jre-1.4.1] "Blackdown JRE 1.4.1" (/etc/env.d/java/20blackdown-jre-1.4.1) [blackdown-jdk-1.4.2.03] "Blackdown JDK 1.4.2.03" (/etc/env.d/java/20blackdown-jdk-1.4.2.03) * [blackdown-jdk-1.4.1] "Blackdown JDK 1.4.1" (/etc/env.d/java/20blackdown-jdk-1.4.1)
No, it still doesn't work. From the output of your java-config -L I suppose you're still at java-config-1.2, i.e. no generation-2 java setup (which has gone stable 2 weeeks ago).
ok confirmed with java-config 2 now:
You will likely want to append the output of java-pkg_get-jni-cflags to CFLAGS. This comes from java-utils-2.eclass
Thanks for the tip. Ugly hack done and it should work.
If you want to go for a cleaner fix... it would probably be to make configure not figure out JAVA_HOME from the location of the java binary, and use JAVA_HOME instead. After that, you'd check JAVA_HOME/include and JAVA_HOME/include/linux for the appropriate include files.