Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154317 - www-apache/mod_jk-1.2.19: Fails to build with IBM JDK?
Summary: www-apache/mod_jk-1.2.19: Fails to build with IBM JDK?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High normal
Assignee: William L. Thomson Jr. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-06 23:59 UTC by Alexander Skwar
Modified: 2006-12-21 08:07 UTC (History)
3 users (show)

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


Attachments
/0b/Gentoo/portage/tmp/portage/www-apache/mod_jk-1.2.19/work/tomcat-connectors-1.2.19-src/native/config.log (config.log,52.94 KB, text/plain)
2006-11-07 00:00 UTC, Alexander Skwar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Skwar 2006-11-06 23:59:28 UTC
Trying to build mod_jk:

[ebuild     U ] www-apache/mod_jk-1.2.19 [1.2.15] USE="apache2 java%*" 0 kB

Fails:

APRINCLUDEDIR is  -I/usr/include/apr-0 -I/usr/include/apr-0
building connector for "apache-2.0"
checking for target platform... unix
no apache given
jni enable (need JDK)
checking for JDK location (please wait)... /opt/ibm-jdk-bin-1.5.0.2
checking Java platform... forced Java 2
checking os_type directory... Cannot find jni_md.h in /opt/ibm-jdk-bin-1.5.0.2/
configure: error: You should retry --with-os-type=SUBDIR

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /0b/Gentoo/portage/tmp/portage/www-apache/mod_jk-1.2.19/work/tomcat-connectors-1.2.19-src/native/config.log

!!! ERROR: www-apache/mod_jk-1.2.19 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  mod_jk-1.2.19.ebuild, line 49:   Called econf '--with-apxs=/usr/sbin/apxs2' '--with-apr-config=/usr/bin/apr-config' '--with-java-home=/opt/ibm-jdk-bin-1.5.0.2' '--with-java-platform=2' '--enable-jni'
  ebuild.sh, line 540:   Called die

!!! econf failed
!!! 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=ibm-jdk-bin-1.5  CLASSPATH="" JAVA_HOME="/opt/ibm-jdk-bin-1.5.0.2"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info


Note that I'm using IBM JDK.

[08:55:52 vz6tml@dewup-ww02:~/.vnc] $ java-config-2 -f
ibm-jdk-bin-1.5

[08:56:16 vz6tml@dewup-ww02:~/.vnc] $ java-config-2 -L
The following VMs are available for generation-2:
1)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2)      IBM JDK 1.4.2.5 [ibm-jdk-bin-1.4]
*)      IBM JDK 1.5.0.2 [ibm-jdk-bin-1.5]
4)      Sun JDK 1.4.2.12 [sun-jdk-1.4]
5)      Sun JDK 1.5.0.08 [sun-jdk-1.5]

However:

[08:55:45 vz6tml@dewup-ww02:~/.vnc] $ java-config-1 -f
sun-jdk-1.4.2.12
Comment 1 Alexander Skwar 2006-11-07 00:00:03 UTC
Created attachment 101377 [details]
/0b/Gentoo/portage/tmp/portage/www-apache/mod_jk-1.2.19/work/tomcat-connectors-1.2.19-src/native/config.log

[08:53:29 vz6tml@dewup-ww02:~/.vnc] $ emerge --info
Portage 2.1.2_rc1-r4 (default-linux/x86/2006.1, gcc-3.4.6, glibc-2.5-r0, 2.6.17-gentoo-r7.05 i686)
=================================================================
System uname: 2.6.17-gentoo-r7.05 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System version 1.12.4
Last Sync: Tue, 07 Nov 2006 01:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r3, 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
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, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /home /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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/Gentoo/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig buildpkg ccache collision-protect distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="        http://localhost/~vz6tml/gentoo-files http://dewup-ww02.dewup.europe.delphiauto.net/~vz6tml/gentoo-files         http://localhost/gentoo-files/ http://dewup-ww02.dewup.europe.delphiauto.net/gentoo-files/      http://localhost/~vz6tml/gentoo-files/ http://cifs-srvr1.europe.delphiauto.net/~vz6tml/Misc._Software/Gentoo/    http://alexander.skwar.name/~askwar/stuff/gentoo/                http://localhost:60081/pub/Mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/  http://localhost:60080/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/    http://localhost:60082/mirror/rsync.gentoo.org/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/      ftp://pandemonium.tiscali.de/pub/gentoo/         http://localhost:60083/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/         http://distro.ibiblio.org/pub/linux/distributions/gentoo/       ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/         http://localhost:60084/ http://distfiles.gentoo.org/ "
LANG="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/Gentoo/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="/Gentoo/portage/tmp"
PORTDIR="/Gentoo/portage/tree"
PORTDIR_OVERLAY="/Gentoo/portage/local-tree/misc /Gentoo/portage/local-tree/overlays/nx/testing"
SYNC="rsync://localhost:10873/gentoo-portage"
USE="x86 7zip GAPING_SECURITY_HOLE X acl apache apache2 artworkextra async bash-completion berkdb bitmap-fonts ccache ck-server cli cracklib crypt css cups dbus dlloader dri dvd elibc_glibc encode exif fam fat firefox font-server gd gdbm gmail gmailtimestamps gnome gpm gs gtk2 hal hfs hpn i8x0 iconv id3 imagemagick imlib imlib2 input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_void isdnlog java javascript jfs jikes kde kdeenablefinal kernel_linux lame libg++ linguas_de linuxthreads-tls lm_sensors lynxkeymap lzo lzw lzw-tiff mailbox maildir matroska mmx mozsvg mp3 mpm-worker msdav mysql mysqli ncurses network nfs nis nls no-old-linux no-suexec nodrm nomusic nptl nptlonly ntlm offensive ogg oggvorbis pam pcre perl php posix postfix ppds pppd python rar rdesktop readline real recode reflection reiserfs samba sapdb screen sendfile session sftp smp sockets spl sse sse2 ssl stream subtitles symlink sysvipc tcpd tiff transcode truetype truetype-fonts udev unicode usb userland_GNU userlocales utf8 vhosts video_cards_ati video_cards_vesa video_cards_vga vim vim-pager vim-with-x vorbis webdav win32codecs xattr xfs xinetd xorg xv xvid yp zlib"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Alexander Skwar 2006-11-07 00:02:14 UTC
With USE=-java, mod_jk can be compiled.
Comment 3 William L. Thomson Jr. (RETIRED) gentoo-dev 2006-12-21 08:07:51 UTC
Java USE flag which should have been called JNI use flag has been dropped from 1.2.20 committed to tree yesterday. Going to mark this as fixed since it's been addressed in newer versions.

I would drop the flag from 1.2.19, but that will change whats installed in some cases. Which means I have to rev-bump the package and mark it ~arch. Which is basically where 1.2.20 is at. So don't see much point in touching 1.2.19 at this time.