Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401219 - gnome-extra/libgda-5.0.3 - configure: ld: cannot find -ljvm with icedtea7
Summary: gnome-extra/libgda-5.0.3 - configure: ld: cannot find -ljvm with icedtea7
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
: 410779 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-28 19:28 UTC by Maciej Piechotka
Modified: 2012-07-07 12:41 UTC (History)
2 users (show)

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


Attachments
build.log for libgda-5.0.3-r1 (build.log,14.09 KB, text/plain)
2012-04-02 16:33 UTC, Leo Laursen
Details
config.log for libgda-5.0.3-r1 (config.log,74.67 KB, text/plain)
2012-04-02 16:35 UTC, Leo Laursen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Piechotka 2012-01-28 19:28:34 UTC
checking java compiler version... JAVA version used is Sun JRE 1.7 
checking for Java environment... in /usr/lib64/icedtea7/jre
checking for /usr/lib64/icedtea7/jre/include/jni.h... no
checking for /usr/lib64/icedtea7/jre/jni.h... no
checking for /usr/lib64/icedtea7/jre/../include/jni.h... yes
checking for /usr/lib64/icedtea7/jre/../include/./jni_md.h... no
checking for /usr/lib64/icedtea7/jre/../include/linux/jni_md.h... yes
checking whether JNI programs can be compiled... configure: error: Cannot compile a simple JNI program. See config.log for details.

In config.log:


/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ljvm
collect2: ld returned 1 exit status
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-30 11:48:59 UTC
Please post your `emerge --info' output in a comment.
Comment 2 Maciej Piechotka 2012-01-30 21:07:45 UTC
Package Manager Information:
    Package Name              paludis
    Package Version           0.70.2
    Build Date                2012-01-28T17:20:09+0000
    Built with CXX            x86_64-pc-linux-gnu-g++ 4.6.2
    Built with CXXFLAGS        -O2 -pipe -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -w -floop-interchange -floop-strip-mine -floop-block -floop-flatten -ftree-loop-linear -ftree-loop-im -ftree-loop-distribution -ftree-loop-distribute-patterns -fsched-pressure -fsched-spec-load -pedantic
    Built with LDFLAGS        -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common
(...)
Repository gentoo:
    format                    e
    location                  /usr/portage
    builddir                  /var/tmp/paludis
    cache                     /usr/portage/metadata/cache
    distdir                   /var/tmp/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /usr/portage/eclass
    layout                    traditional
    manifest_hashes           RMD160 SHA1 SHA256
    names_cache               /usr/portage/.cache/names
    newsdir                   /usr/portage/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /etc/paludis/profile
    securitydir               /usr/portage/metadata/glsa
    setsdir                   /usr/portage/sets
    sync                      rsync://rsync.gentoo.org/gentoo-portage
    sync_options              
    thin_manifests            false
    use_manifest              use
    write_cache               /var/cache/paludis/metadata
    Package information
        app-shells/bash       4.2_p20
        dev-java/java-config  2.1.11-r3
        dev-lang/python       2.6.7-r2 2.7.2-r3 3.1.4-r3 3.2.2
        dev-util/ccache       (none)
        dev-util/cmake        2.8.7-r1
        dev-util/pkgconfig    0.26
        sys-apps/baselayout   2.1
        sys-apps/openrc       0.9.8.2
        sys-apps/sandbox      2.5
        sys-devel/autoconf    2.13 2.68
        sys-devel/automake    1.10.3 1.11.2-r1 1.9.6-r3
        sys-devel/binutils    2.22-r1
        sys-devel/gcc         4.5.3-r2 4.6.2
        sys-devel/gcc-config  1.5-r2
        sys-devel/libtool     2.4.2
        sys-devel/make        3.82-r3
        sys-freebsd/freebsd-lib (none)
        sys-kernel/linux-headers 3.2
        sys-libs/glibc        2.14.1-r2
        sys-libs/uclibc       (none)
(...)
Extra Information for gnome-extra/libgda-5.0.3::installed:
        >>> Running ebuild phase killold as portage:portage...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars info as portage:portage...
        >>> Starting builtin_initmisc
        bunzip2 < /var/db/pkg/gnome-extra/libgda-5.0.3/environment.bz2 > /var/tmp/paludis/environment-gnome-extra-libgda-5.0.3-2641
        ebuild_scrub_environment /var/tmp/paludis/environment-gnome-extra-libgda-5.0.3-2641
        ebuild_safe_source /var/tmp/paludis/environment-gnome-extra-libgda-5.0.3-2641
        rm /var/tmp/paludis/environment-gnome-extra-libgda-5.0.3-2641
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -w -floop-interchange -floop-strip-mine -floop-block -floop-flatten -ftree-loop-linear -ftree-loop-im -ftree-loop-distribution -ftree-loop-distribute-patterns -fsched-pressure -fsched-spec-load
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT=/etc 
        CONFIG_PROTECT_MASK=/etc/env.d /etc/gconf 
        CPPFLAGS= -I/usr/include/db4.8
        CTARGET=
        CXXFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -w -floop-interchange -floop-strip-mine -floop-block -floop-flatten -ftree-loop-linear -ftree-loop-im -ftree-loop-distribution -ftree-loop-distribute-patterns -fsched-pressure -fsched-spec-load
        DISTDIR=/var/db/pkg/gnome-extra/libgda-5.0.3
        FEATURES=
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common
        LINGUAS=en en_GB pl
        MAKEOPTS=-j2 V=1
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/var/db/pkg/gnome-extra/libgda-5.0.3
        PORTDIR_OVERLAY=
        SYNC=
        USE=berkdb doc gnome-keyring graphviz gtk introspection ldap mysql postgres sourceview ssl amd64 alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_cgi apache2_modules_cgid apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias calligra_features_braindump calligra_features_flow calligra_features_karbon calligra_features_kexi calligra_features_krita calligra_features_plan calligra_features_stage calligra_features_tables calligra_features_words cameras_ptp2 collectd_plugins_df collectd_plugins_interface collectd_plugins_irq collectd_plugins_load collectd_plugins_memory collectd_plugins_rrdtool collectd_plugins_swap collectd_plugins_syslog elibc_glibc gpsd_protocols_aivdm gpsd_protocols_ashtech gpsd_protocols_earthmate gpsd_protocols_evermore gpsd_protocols_fv18 gpsd_protocols_garmin gpsd_protocols_garmintxt gpsd_protocols_gpsclock gpsd_protocols_itrax gpsd_protocols_mtk3301 gpsd_protocols_navcom gpsd_protocols_nmea gpsd_protocols_ntrip gpsd_protocols_oceanserver gpsd_protocols_oldstyle gpsd_protocols_oncore gpsd_protocols_rtcm104v2 gpsd_protocols_rtcm104v3 gpsd_protocols_sirf gpsd_protocols_superstar2 gpsd_protocols_timing gpsd_protocols_tnt gpsd_protocols_tripmate gpsd_protocols_tsip gpsd_protocols_ubx input_devices_evdev input_devices_synaptics kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en linguas_en_GB linguas_pl php_targets_php5-3 ruby_targets_jruby ruby_targets_ruby18 ruby_targets_ruby19 userland_GNU video_cards_intel xtables_addons_account xtables_addons_chaos xtables_addons_condition xtables_addons_delude xtables_addons_dhcpmac xtables_addons_fuzzy xtables_addons_geoip xtables_addons_iface xtables_addons_ipmark xtables_addons_ipp2p xtables_addons_ipset xtables_addons_ipv4options xtables_addons_length2 xtables_addons_logmark xtables_addons_lscan xtables_addons_pknock xtables_addons_psd xtables_addons_quota2 xtables_addons_rawnat xtables_addons_steal xtables_addons_sysrq xtables_addons_tarpit xtables_addons_tee amd64 
        >>> Done builtin_infovars
        >>> Starting pkg_info
        >>> Done pkg_info
        >>> Completed ebuild phases initmisc infovars info
        >>> Running ebuild phase tidyup as portage:portage...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/gnome-extra-libgda-5.0.3-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup

Extra Information for gnome-extra/libgda-5.0.3:5::gentoo:
        >>> Running ebuild phase killold as portage:portage...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars info as portage:portage...
        >>> Starting builtin_initmisc
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -w -floop-interchange -floop-strip-mine -floop-block -floop-flatten -ftree-loop-linear -ftree-loop-im -ftree-loop-distribution -ftree-loop-distribute-patterns -fsched-pressure -fsched-spec-load
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT= 
        CONFIG_PROTECT_MASK= 
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -w -floop-interchange -floop-strip-mine -floop-block -floop-flatten -ftree-loop-linear -ftree-loop-im -ftree-loop-distribution -ftree-loop-distribute-patterns -fsched-pressure -fsched-spec-load
        DISTDIR=/var/tmp/distfiles
        FEATURES=
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--add-needed -Wl,--hash-style=both -Wl,--sort-common
        LINGUAS=en en_GB pl
        MAKEOPTS=-j2 V=1
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/usr/portage
        PORTDIR_OVERLAY=
        SYNC=
        USE=berkdb doc gnome-keyring graphviz gtk introspection ldap mysql postgres sourceview ssl amd64 alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_cgi apache2_modules_cgid apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias calligra_features_braindump calligra_features_flow calligra_features_karbon calligra_features_kexi calligra_features_krita calligra_features_plan calligra_features_stage calligra_features_tables calligra_features_words cameras_ptp2 collectd_plugins_df collectd_plugins_interface collectd_plugins_irq collectd_plugins_load collectd_plugins_memory collectd_plugins_rrdtool collectd_plugins_swap collectd_plugins_syslog elibc_glibc gpsd_protocols_aivdm gpsd_protocols_ashtech gpsd_protocols_earthmate gpsd_protocols_evermore gpsd_protocols_fv18 gpsd_protocols_garmin gpsd_protocols_garmintxt gpsd_protocols_gpsclock gpsd_protocols_itrax gpsd_protocols_mtk3301 gpsd_protocols_navcom gpsd_protocols_nmea gpsd_protocols_ntrip gpsd_protocols_oceanserver gpsd_protocols_oldstyle gpsd_protocols_oncore gpsd_protocols_rtcm104v2 gpsd_protocols_rtcm104v3 gpsd_protocols_sirf gpsd_protocols_superstar2 gpsd_protocols_timing gpsd_protocols_tnt gpsd_protocols_tripmate gpsd_protocols_tsip gpsd_protocols_ubx input_devices_evdev input_devices_synaptics kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en linguas_en_GB linguas_pl php_targets_php5-3 ruby_targets_jruby ruby_targets_ruby18 ruby_targets_ruby19 userland_GNU video_cards_intel xtables_addons_account xtables_addons_chaos xtables_addons_condition xtables_addons_delude xtables_addons_dhcpmac xtables_addons_fuzzy xtables_addons_geoip xtables_addons_iface xtables_addons_ipmark xtables_addons_ipp2p xtables_addons_ipset xtables_addons_ipv4options xtables_addons_length2 xtables_addons_logmark xtables_addons_lscan xtables_addons_pknock xtables_addons_psd xtables_addons_quota2 xtables_addons_rawnat xtables_addons_steal xtables_addons_sysrq xtables_addons_tarpit xtables_addons_tee amd64 
        >>> Done builtin_infovars
        >>> Starting pkg_info
        >>> Done pkg_info
        >>> Completed ebuild phases initmisc infovars info
        >>> Running ebuild phase tidyup as portage:portage...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/gnome-extra-libgda-5.0.3-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup


In any case the test seems to be for libjni.so, which doesn't exists.
Comment 3 Pacho Ramos gentoo-dev 2012-03-25 08:54:42 UTC
Please attach full build.log and full config.log
Comment 4 Pacho Ramos gentoo-dev 2012-04-01 18:20:29 UTC
+*libgda-5.0.3-r1 (01 Apr 2012)
+
+  01 Apr 2012; Pacho Ramos <pacho@gentoo.org> +libgda-5.0.3-r1.ebuild,
+  -libgda-4.2.9.ebuild, -libgda-5.0.2.ebuild, -libgda-5.0.3.ebuild,
+  metadata.xml:
+  java-pkg-opt-2 default phases were being skipped by accident causing java
+  detection problems like bug #401219 by Maciej Piechotka. Remove old.
+
Comment 5 Leo Laursen 2012-04-02 07:20:07 UTC
On my system libgda-5.0.3 compiles, whereas the new libgda.5.0.3-1 fails with the exact same error as in the original report here.
Comment 6 Pacho Ramos gentoo-dev 2012-04-02 13:05:39 UTC
(In reply to comment #5)
> On my system libgda-5.0.3 compiles, whereas the new libgda.5.0.3-1 fails
> with the exact same error as in the original report here.

Attach new full build.log and new config.log, this looks like a problem with icedtea7
Comment 7 Pacho Ramos gentoo-dev 2012-04-02 13:06:19 UTC
(In reply to comment #4)
> +*libgda-5.0.3-r1 (01 Apr 2012)
> +
> +  01 Apr 2012; Pacho Ramos <pacho@gentoo.org> +libgda-5.0.3-r1.ebuild,
> +  -libgda-4.2.9.ebuild, -libgda-5.0.2.ebuild, -libgda-5.0.3.ebuild,
> +  metadata.xml:
> +  java-pkg-opt-2 default phases were being skipped by accident causing java
> +  detection problems like bug #401219 by Maciej Piechotka. Remove old.
> +

Regarding this change, it is still ok as I confirmed locally java support was being disabled before and now works ok with stable icedtea
Comment 8 Leo Laursen 2012-04-02 16:33:26 UTC
Created attachment 307523 [details]
build.log for libgda-5.0.3-r1
Comment 9 Leo Laursen 2012-04-02 16:35:00 UTC
Created attachment 307525 [details]
config.log for libgda-5.0.3-r1

added {build,config}.log
Comment 10 Pacho Ramos gentoo-dev 2012-04-02 16:49:48 UTC
I think we are now correctly using java eclasses, maybe someone from java team can help us on this issue
Comment 11 Leo Laursen 2012-04-03 08:33:58 UTC
(In reply to comment #10)
> I think we are now correctly using java eclasses, maybe someone from java
> team can help us on this issue

It does look correct, except for the error of course.
I've tried with idectea-7.2.1 and icedtea-bin-7.2.1-r1, with identical error.
I didn't try the stable icedtea-bin though. I is fine by me with USE="-java".
Leo
Comment 12 Ralph Sennhauser (RETIRED) gentoo-dev 2012-04-03 13:39:31 UTC
(In reply to comment #10)
> I think we are now correctly using java eclasses, maybe someone from java
> team can help us on this issue

There is no jdk nor jre in DEPEND resp. RDEPEND and so java-pkg-opt-2_pkg_setup does nothing as the package apparently doesn't need java. Please add the required vm deps.


Then having a look at the config.log:

  configure:22113: checking if all java programs are found
  configure:22119: checking for java
  configure:22137: found /usr/bin/java
  configure:22149: result: /usr/bin/java
  configure:22164: checking for javac
  configure:22182: found /usr/bin/javac
  configure:22194: result: /usr/bin/javac
  configure:22209: checking for javah
  configure:22227: found /usr/bin/javah
  configure:22239: result: /usr/bin/javah
  configure:22254: checking for jar
  configure:22272: found /usr/bin/jar
  configure:22284: result: /usr/bin/jar

Would probably better find the ones in JAVA_HOME, after all JAVA_HOME is passed to ./configure in the ebuild. Will work in ebuilds though due to those tools being wrappers.


  configure:22311: checking whether Java interpreter works
  configure:22323: running /usr/bin/java -classpath . getsp -test
  configure:22325: output: 'Test1234OK'
  configure:22337: result: yes
  configure:22339: checking java compiler version
  configure:22384: result: JAVA version used is Sun JRE 1.7
  configure:22387: checking for Java environment
  configure:22399: running /usr/bin/java -classpath . getsp java.home
  configure:22401: output: '/opt/icedtea-bin-7.2.1/jre'
  configure:22416: result: in /opt/icedtea-bin-7.2.1/jre

The last one is interesting, the specified JAVA_HOME is ignored? ...


  configure:22431: running /usr/bin/java -classpath . getsp -libs
  configure:22433: output: '-L/usr/java/packages/lib/amd64 -L/usr/lib64 -L/lib64 -L/lib -L/usr/lib'
  configure:22444: running /usr/bin/java -classpath . getsp java.library.path
  configure:22446: output: '/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib'

Those are the ones which won't work with any available jdk7 as default java.library.path no longer contains the paths for it's own libraries. The configure script needs to be fixed. At least ${JAVA_HOME}/jre/lib/${platform}/server is missing.
See "java-config -g LDPATH" for what the default value was for jdk6 and earlier.


  configure:22482: checking for /opt/icedtea-bin-7.2.1/jre/include/jni.h
  configure:22496: result: no
  configure:22502: checking for /opt/icedtea-bin-7.2.1/jre/jni.h
  configure:22516: result: no
  configure:22522: checking for /opt/icedtea-bin-7.2.1/jre/../include/jni.h
  configure:22536: result: yes
  configure:22572: checking for /opt/icedtea-bin-7.2.1/jre/../include/./jni_md.h
  configure:22586: result: no
  configure:22572: checking for /opt/icedtea-bin-7.2.1/jre/../include/linux/jni_md.h
  configure:22586: result: yes

Using the JAVA_HOME detected earlier.


  configure:22601: checking whether JNI programs can be compiled
  configure:22613: x86_64-pc-linux-gnu-gcc -o conftest -march=native -Ofast -m3dnow -msse4a -pipe -I/opt/icedtea-bin-7.2.1/jre/../include -I/opt/icedtea-bin-7.2.1/jre/../include/linux -I/opt/icedtea-bin-7.2.1/jre/../include -I/opt/icedtea-bin-7.2.1/jre/../include/linux  -I/usr/include/db4.8  conftest.c  -L/usr/java/packages/lib/amd64 -L/usr/lib64 -L/lib64 -L/lib -L/usr/lib -ljvm >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ljvm
collect2: ld returned 1 exit status

The flag "-L/opt/icedtea-bin-7.2.1/jre/lib/amd64/server" is missing.
Comment 13 Pacho Ramos gentoo-dev 2012-04-03 16:44:34 UTC
(In reply to comment #12)
> (In reply to comment #10)
> > I think we are now correctly using java eclasses, maybe someone from java
> > team can help us on this issue
> 
> There is no jdk nor jre in DEPEND resp. RDEPEND and so
> java-pkg-opt-2_pkg_setup does nothing as the package apparently doesn't need
> java. Please add the required vm deps.
> 

Added, reporter please retry after syncing again and getting:
+  03 Apr 2012; Pacho Ramos <pacho@gentoo.org> libgda-5.0.3-r1.ebuild:
+  DEPEND on virtual/jdk when java support is demanded (#401219 by Ralph
+  Sennhauser).
+

> 
> Then having a look at the config.log:
> 
>   configure:22113: checking if all java programs are found
>   configure:22119: checking for java
>   configure:22137: found /usr/bin/java
>   configure:22149: result: /usr/bin/java
>   configure:22164: checking for javac
>   configure:22182: found /usr/bin/javac
>   configure:22194: result: /usr/bin/javac
>   configure:22209: checking for javah
>   configure:22227: found /usr/bin/javah
>   configure:22239: result: /usr/bin/javah
>   configure:22254: checking for jar
>   configure:22272: found /usr/bin/jar
>   configure:22284: result: /usr/bin/jar
> 
> Would probably better find the ones in JAVA_HOME, after all JAVA_HOME is
> passed to ./configure in the ebuild. Will work in ebuilds though due to
> those tools being wrappers.
> 

I don't quite understand this :(, we are currently passing JAVA_HOME at configure time, should we pass other path?:
                $(use_with java java $JAVA_HOME)


> 
>   configure:22311: checking whether Java interpreter works
>   configure:22323: running /usr/bin/java -classpath . getsp -test
>   configure:22325: output: 'Test1234OK'
>   configure:22337: result: yes
>   configure:22339: checking java compiler version
>   configure:22384: result: JAVA version used is Sun JRE 1.7
>   configure:22387: checking for Java environment
>   configure:22399: running /usr/bin/java -classpath . getsp java.home
>   configure:22401: output: '/opt/icedtea-bin-7.2.1/jre'
>   configure:22416: result: in /opt/icedtea-bin-7.2.1/jre
> 
> The last one is interesting, the specified JAVA_HOME is ignored? ...
> 
> 
>   configure:22431: running /usr/bin/java -classpath . getsp -libs
>   configure:22433: output: '-L/usr/java/packages/lib/amd64 -L/usr/lib64
> -L/lib64 -L/lib -L/usr/lib'
>   configure:22444: running /usr/bin/java -classpath . getsp java.library.path
>   configure:22446: output:
> '/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib'
> 
> Those are the ones which won't work with any available jdk7 as default
> java.library.path no longer contains the paths for it's own libraries. The
> configure script needs to be fixed. At least
> ${JAVA_HOME}/jre/lib/${platform}/server is missing.
> See "java-config -g LDPATH" for what the default value was for jdk6 and
> earlier.
> 
> 
>   configure:22482: checking for /opt/icedtea-bin-7.2.1/jre/include/jni.h
>   configure:22496: result: no
>   configure:22502: checking for /opt/icedtea-bin-7.2.1/jre/jni.h
>   configure:22516: result: no
>   configure:22522: checking for /opt/icedtea-bin-7.2.1/jre/../include/jni.h
>   configure:22536: result: yes
>   configure:22572: checking for
> /opt/icedtea-bin-7.2.1/jre/../include/./jni_md.h
>   configure:22586: result: no
>   configure:22572: checking for
> /opt/icedtea-bin-7.2.1/jre/../include/linux/jni_md.h
>   configure:22586: result: yes
> 
> Using the JAVA_HOME detected earlier.
> 
> 
>   configure:22601: checking whether JNI programs can be compiled
>   configure:22613: x86_64-pc-linux-gnu-gcc -o conftest -march=native -Ofast
> -m3dnow -msse4a -pipe -I/opt/icedtea-bin-7.2.1/jre/../include
> -I/opt/icedtea-bin-7.2.1/jre/../include/linux
> -I/opt/icedtea-bin-7.2.1/jre/../include
> -I/opt/icedtea-bin-7.2.1/jre/../include/linux  -I/usr/include/db4.8 
> conftest.c  -L/usr/java/packages/lib/amd64 -L/usr/lib64 -L/lib64 -L/lib
> -L/usr/lib -ljvm >&5
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../x86_64-pc-linux-gnu/bin/
> ld: cannot find -ljvm
> collect2: ld returned 1 exit status
> 
> The flag "-L/opt/icedtea-bin-7.2.1/jre/lib/amd64/server" is missing.

Then, looks like it's using JAVA_HOME for some checks and other for other tests? :|
Comment 14 Ralph Sennhauser (RETIRED) gentoo-dev 2012-04-04 10:42:45 UTC
(In reply to comment #13)
> Then, looks like it's using JAVA_HOME for some checks and other for other
> tests? :|

The JAVA_HOME given to configure is outright ignored according to log. Probably not what was intended but still works on Gentoo.


For java 7 the commands
    /usr/bin/java -classpath . getsp -libs
    /usr/bin/java -classpath . getsp java.library.path

both won't return what the author would expect it to be which makes it fail. To  work with a jdk7 the configure script needs to be fixed.

I suggest depending on java? ( virtual/jdk:1.6 ) till resolved.
Comment 15 jannis 2012-04-04 14:27:32 UTC
*** Bug 410779 has been marked as a duplicate of this bug. ***
Comment 16 Pacho Ramos gentoo-dev 2012-04-05 09:53:19 UTC
(In reply to comment #14)
> I suggest depending on java? ( virtual/jdk:1.6 ) till resolved.


Done, and reported to upstream
Thanks
Comment 17 Pacho Ramos gentoo-dev 2012-07-07 12:41:11 UTC
(In reply to comment #16)
> (In reply to comment #14)
> > I suggest depending on java? ( virtual/jdk:1.6 ) till resolved.
> 
> 
> Done, and reported to upstream
> Thanks

Will track directly on upstream