Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218118 - dev-java/jdbc-jaybird-2.1.x fails to compile w/ jni USE flag
Summary: dev-java/jdbc-jaybird-2.1.x fails to compile w/ jni USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2008-04-17 13:54 UTC by rf
Modified: 2015-05-15 21:07 UTC (History)
1 user (show)

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


Attachments
full output (jaybird_error_output.txt,16.31 KB, text/plain)
2008-04-17 13:56 UTC, rf
Details
patch (fixed_jdbc-jaybird-2.1.2.ebuild.diff,34 bytes, patch)
2008-04-17 14:14 UTC, rf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rf 2008-04-17 13:54:52 UTC
if i emerge jdbc-jaybird with the command


# USE="jni" emerge "=dev-java/jdbc-jaybird-2.1.2"


i get the following error:


BUILD FAILED
/var/tmp/portage/dev-java/jdbc-jaybird-2.1.2/work/client-java/build.xml:264: The following error occurred while executing this line:
/var/tmp/portage/dev-java/jdbc-jaybird-2.1.2/work/client-java/build_native.xml:341: Problem: failed to create task or type compiler
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 9 seconds
 *
 * ERROR: dev-java/jdbc-jaybird-2.1.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3886:  Called eant 'src_compile' 'src_compile'
 *             environment, line  873:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *  The die message:
 *   eant failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/jdbc-jaybird-2.1.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/jdbc-jaybird-2.1.2/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.06"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info



Reproducible: Always

Steps to Reproduce:
1. USE="jni" emerge "=dev-java/jdbc-jaybird-2.1.2"

Actual Results:  
BUILD FAILED
/var/tmp/portage/dev-java/jdbc-jaybird-2.1.2/work/client-java/build.xml:264: The following error occurred while executing this line:
/var/tmp/portage/dev-java/jdbc-jaybird-2.1.2/work/client-java/build_native.xml:341: Problem: failed to create task or type compiler
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 9 seconds
 *
 * ERROR: dev-java/jdbc-jaybird-2.1.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3886:  Called eant 'src_compile' 'src_compile'
 *             environment, line  873:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *  The die message:
 *   eant failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/jdbc-jaybird-2.1.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/jdbc-jaybird-2.1.2/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.06"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info



Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8 i686)
=================================================================
System uname: 2.6.23-gentoo-r8 i686 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
Timestamp of tree: Thu, 17 Apr 2008 10:33:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.3.5-r3, 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
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.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
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/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://128.213.5.34/gentoo/ http://gentoo.inode.at/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/desktop-effects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aiglx alsa arts avahi bash-completion bitmap-fonts browserplugin bzip2 cairo cups cvs daap dbus dri dvd fam firefox gif gnome gpm graphviz gtk2 hal imlib insecure-drivers java java5 jpeg jpeg2k kde kerberos log4j logrotate mad mmx mmx2 mono mp3 mp4 mpeg mpeg2 ncurses nls nodrm nptl nptlonly nsplugin offensive ogg opengl pam png qt qt3 qt4 quicktime rdesktop readline real rle samba sasl sdl server silverxp slp sse ssl subversion svg svgz threads tiff truetype truetype-fonts type1 type1-fonts unicode userlocales vorbis webdav win32codecs wmf x86 xcomposite xine xml2 xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1     emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null rate route share shm" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="i910 i810 i830 vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 rf 2008-04-17 13:56:36 UTC
Created attachment 150061 [details]
full output

full output
Comment 2 rf 2008-04-17 14:14:23 UTC
Created attachment 150063 [details, diff]
patch

adding a 
WANT_ANT_TASKS="cpptasks" 
to the ebuild and doing a
# ebuild /usr/portage/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.2.ebuild digest
resolves the problem for me
Comment 3 William L. Thomson Jr. (RETIRED) gentoo-dev 2008-06-30 22:16:53 UTC
Ok this has been fixed in CVS. However jni compile still fails on amd64 due to an upstream issue. Updating bug summary to reflect that.

       [cc] /tmp/portage/dev-java/jdbc-jaybird-2.1.5/work/client-java/src/native/jaygds/source/entrypoints.cpp: In function 'jint Java_org_firebirdsql_gds_impl_jni_JniGDSImpl_native_1isc_1que_1events(JNIEnv*, _jobject*, _jobject*, _jobject*, _jobject*)':
       [cc] /tmp/portage/dev-java/jdbc-jaybird-2.1.5/work/client-java/src/native/jaygds/source/entrypoints.cpp:1153: error: cast from 'event_struct*' to 'int' loses precision
Comment 4 Łukasz Damentko (RETIRED) gentoo-dev 2008-10-30 16:28:25 UTC
Reassigning to herd since wltjr has left Gentoo, bug #135927.
Comment 5 Patrice Clement gentoo-dev 2015-05-15 21:07:50 UTC
Please use the latest version available as per bug 547938. Reopen if you still encounter this issue.