Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 514666 - net-misc/openconnect-5.99-r1 USE=java - configure: error: cannot find JDK header files
Summary: net-misc/openconnect-5.99-r1 USE=java - configure: error: cannot find JDK hea...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Schultz
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-23 11:50 UTC by Berthold Humkamp
Modified: 2014-07-11 13:18 UTC (History)
2 users (show)

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


Attachments
output of: emerge --info '=net-misc/openconnect-5.99-r1::gentoo' (emerge--info.txt,8.25 KB, text/plain)
2014-06-23 11:54 UTC, Berthold Humkamp
Details
output of: emerge -pqv '=net-misc/openconnect-5.99-r1::gentoo' (emerge-pqv.txt,213 bytes, text/plain)
2014-06-23 11:55 UTC, Berthold Humkamp
Details
ebuild environment (environment,126.22 KB, text/plain)
2014-06-23 11:56 UTC, Berthold Humkamp
Details
build.log (build.log,8.85 KB, text/plain)
2014-06-23 13:39 UTC, Berthold Humkamp
Details
/var/tmp/portage/net-misc/openconnect-5.99-r1/work/openconnect-5.99/config.log (config.log,47.37 KB, application/binary)
2014-07-10 17:27 UTC, Berthold Humkamp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Berthold Humkamp 2014-06-23 11:50:50 UTC
I tried to disable other USE-Flags (gnutls, doc) before, I always got the same error:

 * ERROR: net-misc/openconnect-5.99-r1::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 3338:  Called econf '--with-vpnc-script=/etc/openconnect/openconnect.sh' '--disable-static' '--enable-nls' '--with-openssl' '--without-gnutls' '--without-libproxy' '--without-stoken' '--without-liboath' '--with-java'
 *   phase-helpers.sh, line  584:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 * 

But the following works:

USE="-java" emerge -avt1 openconnect



Reproducible: Always

Steps to Reproduce:
1. see description: emerge with "java" enabled
2.
3.
Comment 1 Berthold Humkamp 2014-06-23 11:54:58 UTC
Created attachment 379460 [details]
output of: emerge --info '=net-misc/openconnect-5.99-r1::gentoo'
Comment 2 Berthold Humkamp 2014-06-23 11:55:49 UTC
Created attachment 379462 [details]
output of: emerge -pqv '=net-misc/openconnect-5.99-r1::gentoo'
Comment 3 Berthold Humkamp 2014-06-23 11:56:35 UTC
Created attachment 379464 [details]
ebuild environment
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-23 12:49:54 UTC
Please attach the entire build log to this bug report.
Comment 5 Berthold Humkamp 2014-06-23 13:38:59 UTC
sorry again, and here it is
Comment 6 Berthold Humkamp 2014-06-23 13:39:27 UTC
Created attachment 379486 [details]
build.log
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-23 20:28:23 UTC
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-misc/openconnect-5.99-r1/work/openconnect-5.99/config.log

Please do.
Comment 8 Matthew Schultz 2014-06-24 14:29:50 UTC
(In reply to Berthold Humkamp from comment #0)
> I tried to disable other USE-Flags (gnutls, doc) before, I always got the
> same error:
> 
>  * ERROR: net-misc/openconnect-5.99-r1::gentoo failed (configure phase):
>  *   econf failed
>  * 
>  * Call stack:
>  *          ebuild.sh, line   93:  Called src_configure
>  *        environment, line 3338:  Called econf
> '--with-vpnc-script=/etc/openconnect/openconnect.sh' '--disable-static'
> '--enable-nls' '--with-openssl' '--without-gnutls' '--without-libproxy'
> '--without-stoken' '--without-liboath' '--with-java'
>  *   phase-helpers.sh, line  584:  Called die
>  * The specific snippet of code:
>  *   			die "econf failed"
>  * 
> 
> But the following works:
> 
> USE="-java" emerge -avt1 openconnect
> 
> 
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. see description: emerge with "java" enabled
> 2.
> 3.

Did emerging openconnect install java beforehand?  Run this and post the output:

emerge -pv virtual/jre virtual/jdk
Comment 9 Berthold Humkamp 2014-07-10 17:27:40 UTC
Created attachment 380548 [details]
/var/tmp/portage/net-misc/openconnect-5.99-r1/work/openconnect-5.99/config.log
Comment 10 Berthold Humkamp 2014-07-10 17:32:45 UTC
emerge -pv virtual/jre virtual/jdk

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] virtual/jdk-1.6.0-r2:1.6  0 kB
[ebuild   R    ] virtual/jre-1.6.0-r1:1.6  0 kB


This is the output in the moment, I tried some java packages since I stuck with openconnect, so I don't know the state before.
Comment 11 Matthew Schultz 2014-07-10 17:53:04 UTC
(In reply to Berthold Humkamp from comment #10)
> emerge -pv virtual/jre virtual/jdk
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R    ] virtual/jdk-1.6.0-r2:1.6  0 kB
> [ebuild   R    ] virtual/jre-1.6.0-r1:1.6  0 kB
> 
> 
> This is the output in the moment, I tried some java packages since I stuck
> with openconnect, so I don't know the state before.

Please post the output of this: java-config --list-available-vms
Comment 12 Berthold Humkamp 2014-07-10 20:04:38 UTC
java-config --list-available-vms

The following VMs are available for generation-2:
1)	IcedTea JDK 6.1.13.3 [icedtea-6]
*)	IcedTea JDK 7.2.4.7 [icedtea-7]
Comment 13 Matthew Schultz 2014-07-10 20:48:55 UTC
(In reply to Berthold Humkamp from comment #12)
> java-config --list-available-vms
> 
> The following VMs are available for generation-2:
> 1)	IcedTea JDK 6.1.13.3 [icedtea-6]
> *)	IcedTea JDK 7.2.4.7 [icedtea-7]

Post the output of this from root: echo $JAVA_HOME
Comment 14 Berthold Humkamp 2014-07-11 03:50:34 UTC
Thanks!

That's the solution: It wasn't set for root. After doing so it compiled.

Do you've got any idea, why this happened, possibly intentionally not set from java-team or so?

I'm sure I didn't change it myself!

Greetings
timewulf
Comment 15 Matthew Schultz 2014-07-11 13:18:22 UTC
(In reply to Berthold Humkamp from comment #14)
> Thanks!
> 
> That's the solution: It wasn't set for root. After doing so it compiled.
> 
> Do you've got any idea, why this happened, possibly intentionally not set
> from java-team or so?
> 
> I'm sure I didn't change it myself!
> 
> Greetings
> timewulf

No problem.  It's supposed to be set.  Maybe you didn't run env-update && source /etc/profile?