First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 145930
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Daniel Black <dragonheart@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Robin Bankhead <robin.bankhead@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
config.log config.log for libdsk-1.1.10 text/plain Robin Bankhead 2006-09-01 19:03 0000 14.16 KB Details
emerge.info emerge --info text/plain Nicolai Guido Klausen 2006-09-03 07:06 0000 7.65 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 145930 depends on: Show dependency tree
Show dependency graph
Bug 145930 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-09-01 18:59 0000
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.

------- Comment #1 From Robin Bankhead 2006-09-01 19:03:07 0000 -------
Created an attachment (id=95700) [edit]
config.log for libdsk-1.1.10

------- Comment #2 From Nicolai Guido Klausen 2006-09-03 07:06:24 0000 -------
Created an attachment (id=95835) [edit]
emerge --info

------- Comment #3 From Nicolai Guido Klausen 2006-09-03 07:07:48 0000 -------
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

------- Comment #4 From Robin Bankhead 2006-09-03 07:22:28 0000 -------
(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

------- Comment #5 From Nicolai Guido Klausen 2006-09-03 08:22:47 0000 -------
(In reply to comment #4)
Yes I do! But it seems to be the same problem i both ebuilds

------- Comment #6 From Vlastimil Babka (Caster) 2006-09-08 00:30:17 0000 -------
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.

------- Comment #7 From Daniel Black 2006-10-28 20:00:00 0000 -------
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)

------- Comment #8 From Vlastimil Babka (Caster) 2006-10-29 01:58:24 0000 -------
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).

------- Comment #9 From Daniel Black 2006-11-06 12:41:52 0000 -------
ok confirmed with java-config 2 now:

------- Comment #10 From Josh Nichols 2006-11-06 13:10:49 0000 -------
You will likely want to append the output of java-pkg_get-jni-cflags to CFLAGS.
This comes from java-utils-2.eclass

------- Comment #11 From Daniel Black 2006-11-07 01:12:28 0000 -------
Thanks for the tip. Ugly hack done and it should work.

------- Comment #12 From Josh Nichols 2006-11-07 09:08:47 0000 -------
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.

First Last Prev Next    No search results available      Search page      Enter new bug