Apache OpenOffice (AOO) Bugzilla – Issue 12892
confgure does not detect java-include/lib right ....
Last modified: 2005-05-19 11:15:31 UTC
Hi Ken .. here is the issue about the Java-detection-problem ..... here is the mail as requested. From dev-return-10085-palic=billgotchy.de@porting.openoffice.org Sun Mar 30 14:47:56 2003 Reply-To: dev@porting.openoffice.org From: Ken Foskey <foskey@optushome.com.au> To: dev@porting.openoffice.org X-Mailer: Ximian Evolution 1.2.2 Date: 30 Mar 2003 22:44:04 +1000 Subject: Re: [porting-dev] Problem with building OpenOffice.orgBeta on debian-unstable (PPC) On Sun, 2003-03-30 at 22:40, Jan-Hendrik Palic wrote: > Good Morning ... > > On Sun, Mar 30, 2003 at 10:09:46PM +1000, Ken Foskey wrote: > >> I attached a build.log and two enviroments-source-files for the build > >> from OpenOffice.org. As you can see in build.log, I have a problem with > >> the include. :( > >> I cannot say, if this is trivial a big problem, but I am fighting with > >> it some days ... and I have no solution for it. OpenOffice.org 1.0.2/3 > >> are building, but 1.1 does not. > > > >Jan your JAVA_HOME is > >JAVA_HOME="/usr" > >This leads to: > >-I$JAVA_HOME/include/linux > >Being /usr/include/linux > > correct .. > > Under debian, Java is installed under /usr/lib/j2se and the developer > files are under /usr/lib/j2se/1.3. I changed /usr into > /usr/lib/j2s> > >which is wrong. > > defnitly. > > >This should point to the JDK include decks. Please provide more info on > >how we can sus this out and get configure to set the values correctly. > > I ran ./configure without any configuration-options. So ./configure > found /usr/bin/java and set JAVA_HOME="/usr" instead > JAVA_HOME="/usr/lib/j2se/1.3" > > Is this a bug in Java? Nope: Configure. Raise an issue and assign it to me with this email as the source. I will tinker with it when I get some time. -- Thanks KenF OpenOffice.org developer --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@porting.openoffice.org For additional commands, e-mail: dev-help@porting.openoffice.org e/1.3 and it works, thnx for the hint Ken. > > I would suggest, that we should write it down for documentation? ;)
Sorry, I assigned it to the wrong Ken :)
The JAVA_HOME varaiable is set to /sr which stuffs up other settings.
Accepting issue to be worked on. Currently focussed on porting please submit a patch :-)
This also occurs when you use --whith-jdk-home= option.
similar problem with ANT building 1.1beta on sparc linux debian/testing ./configure --with-ant-home=/usr/local/ant ANT_HOME="/usr"
*** Issue 24279 has been marked as a duplicate of this issue. ***
This is related to java if it is /usr/binjava
Jan, Ken passed to me the maintainership of the config_office infrastructure, so this bug belongs to me now :) I don't have an installation of Debian handy to test this bug, but it seems to me that the solution is to search for another environment variable, to fill $JAVA and $JAVAC. Do you know of such variable? (if not, I will need to install Debian locally, to find a fix for this bug, and that might take a few days :/ )
commited fix/checks into branch rodarvus01: - checks if $JAVA_HOME is /usr if --with-jdk-home was not passed (and warns) - checks if $JAVA_HOME is valid if --with-jdk-home was not passed (and warns) - uses value of --with-jdk-home, if it was passed
close issue.