Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395321 - dev-java/jdbc-mysql-5.1.14 fails to compile with icedtea-bin-7.2.0-r2
Summary: dev-java/jdbc-mysql-5.1.14 fails to compile with icedtea-bin-7.2.0-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: jdk7-tracker
  Show dependency tree
 
Reported: 2011-12-19 22:42 UTC by Markus Wernig
Modified: 2011-12-25 20:28 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Wernig 2011-12-19 22:42:38 UTC
During a fresh install of ~amd64, importing world file from existing installation, dev-java/jdbc-mysql-5.1.14 fails to compile.

This is the output:
>>> Emerging (127 of 724) dev-java/jdbc-mysql-5.1.14
 * mysql-connector-java-5.1.14.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                 [ ok ]
 * Using: icedtea-bin-7
>>> Unpacking source...
>>> Unpacking mysql-connector-java-5.1.14.tar.gz to /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work
>>> Source unpacked in /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work
>>> Preparing source in /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14 ...
 * Applying 5.0.5-remove-jboss-dependency-from-tests.patch ...           [ ok ]
 * Applying 5.0.5-dist-target-depends.patch ...                          [ ok ]
 * Applying 5.1.14-java6.patch ...                                       [ ok ]
removed `mysql-connector-java-5.1.14-bin.jar'
removed `ant-contrib.jar'
removed `c3p0-0.9.1-pre6.jar'
removed `jboss-common-jdbc-wrapper.jar'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14 ...
Changing ignoresystemclasses to true for available tasks in /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build.xml
Rewriting /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build.xml
Rewriting attributes
Rewriting ./build.xml
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14 ...
 * Using following ANT_TASKS: ant-contrib
Buildfile: /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build.xml
     [echo] Compiling class files to ./build/mysql-connector-java-5.1.14-SNAPSHOT...

clean:

-init-copy:
    [mkdir] Created dir: /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build
     [exec] Execute failed: java.io.IOException: Cannot run program "bzr": error=2, No such file or directory
     [copy] Copying 251 files to /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build/mysql-connector-java-5.1.14-SNAPSHOT
     [copy] Copied 32 empty directories to 2 empty directories under /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build/mysql-connector-java-5.1.14-SNAPSHOT
     [copy] Copying 3 files to /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build/mysql-connector-java-5.1.14-SNAPSHOT

-init-no-crypto:

init:
    [mkdir] Created dir: /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build/mysql-connector-java-5.1.14-SNAPSHOT/lib-nodist

-clean-output:

compile-driver-jdbc3:
    [javac] Compiling 148 source files to /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build/mysql-connector-java-5.1.14-SNAPSHOT
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

compile-driver-jdbc4:
    [javac] Compiling 34 source files to /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build/mysql-connector-java-5.1.14-SNAPSHOT
    [javac] /var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build/mysql-connector-java-5.1.14-SNAPSHOT/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java:44: error: JDBC4LoadBalancedMySQLConnection is not abstract and does not override abstract method getNetworkTimeout() in Connection
    [javac] public class JDBC4LoadBalancedMySQLConnection extends
    [javac]        ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

BUILD FAILED
/var/tmp/portage/dev-java/jdbc-mysql-5.1.14/work/mysql-connector-java-5.1.14/build.xml:637: Compile failed; see the compiler error output for details.

I have not installed sun-jdk, but wanted to go with native openjdk (icedtea-bin-7.2.0-r2).

I have copied over the /var/lib/portage/world file from an existing installation (which had both sun-jdk and icedtea), and removed the sun-jdk entries manually.

dev-java/jdbc-mysql is not in that world file, so I assume it came in as a dependency or by a USE flag, but I can not yet tell which one.


Reproducible: Always

Steps to Reproduce:
1. Do a fresh ~amd64 install
2. Do not install sun-jdk, but icedtea-bin
3. Emerge something that pulls in dev-java/jdbc-mysql



There seems to be a similar bug on launchpad:
https://bugs.launchpad.net/ubuntu/+source/mysql-connector-java/+bug/888985

The compiler output and error message are identical to the above.

# emerge --info
/usr/lib64/portage/pym/portage/package/ebuild/config.py:353: UserWarning: 'cache.metadata_overlay.database' is deprecated: /etc/portage/modules
  (user_auxdbmodule, modules_file))
Portage 2.1.10.41 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r1, 3.1.5 x86_64)
=================================================================
System uname: Linux-3.1.5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.1
Timestamp of tree: Sun, 18 Dec 2011 20:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j3"
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="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi alsa amd64 apng arts avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cddax cddb cdparanoia cdr cli consolekit cracklib crypt css cups cxx dbus device-mapper dga dirac dns dri dts dv dvb dvd dvdnav dvdr dvdread emboss encode esd exif faac faad fam ffmpeg firefox flac fortran ftp gd gdbm gdu ggi gif gimp gmp gphoto2 gpm gstreamer gtk gtkhtml gzip h323 hdmi http iconv imagemagick imap imlib ipv6 java jce jpeg jpeg2k kde kdrive kontact lame laptop lcms ldap libnotify live lzo mad matroska mdnsresponder-compat mikmod mime mmap mmx mmxext mng modplug modules mozilla mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses network networkmanager nls nptl nptlonly nsplugin nss obex ogg opencore-amr opengl openmp openssl osdmenu oss pam pango pcmcia pcre pcsc pcsc-lite pda pdf perl php pipechan plasma png pnm policykit ppds pppd pulseaudio pvr qt3 qt3support qt4 radio raw rdesktop readline rss sasl scanner sdl secure-delete semantic-desktop session sip smartcard smp sockets spell sql sqlite sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff timidity toolame tremor truetype twolame udev unicode usb v4l v4l2 vcd video vnc vorbis wav wavpack webkit wifi wmf xanim xattr xcb xcomposite xine xinerama xml xorg xpm xscreensaver xulrunner xv xvid zeroconf 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="all" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics vmmouse void alps virtualbox" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa vga fbdev vmware nv v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markus Wernig 2011-12-19 23:04:06 UTC
Update:

When emerging sun-jdk and setting it as system-vm, the package compiles normally.
Comment 2 Miroslav Šulc gentoo-dev 2011-12-25 20:28:12 UTC
fixed. thanks for reporting.

  25 Dec 2011; Miroslav Šulc <fordfrog@gentoo.org> -jdbc-mysql-5.1.11.ebuild,
  jdbc-mysql-5.1.14.ebuild:
  Restricted compilation to JDK 1.6 because of JDBC incompatibility with JDK
  1.7 (bug #395321). Also removed old version.