Greetings,

I am attempting to compile apache-openoffice.  My computer has these:
--cpu amd64   2 cores
--os-blfs linux, (linux-4.2, gcc-4.8.1, openjdk-1.7.0-7u6, ant-1.9.2 ( ant is 
in /opt/ant-1.9.2
 and the latter is set as the ENVAR ${ANT_HOME})
openjdk-1.7.0-7u6 is in /opt/openJDK and the llatter set as $JAVA_HOME

my configure options have these:-


--without-java \
--without-system-jars \
--with-vba-package-format="builtin" \
--enable-wiki-publisher \
--with-junit=/opt/java \


when I run ./configure --variousOptions ...  it ends like so:-
#--------------------------------------
checking whether to trigger rat scan... no
checking whether ant is >= 1.6.0... ./configure: line 22577: -version: command 
not found
./configure: line 22583: test: : integer expression expected
configure: error: no, you need at least ant >= 1.6.0
#--------------------------------------

I tried the following versions of apache openoffice:-
--A--apache-openoffice-4.1.1-r1617669
--B--openoffice-trunk_GIT180915 (fetched as a zipped file from github 18th 
September 2015)

both gave the same result.

I also symlinked  /opt/ant/1.9.2/bin/ant  to /usr/bin/ant 

and this gave the same result too.

The offending line 22577 in the configure script is this:-
#---------------------------------------
ant_version=`$ANT -version | $AWK '{ print $4; }'`
#---------------------------------------

I changed and tested it like so

sibu [ ~ ]$ ant_version=$( /usr/bin/ant -version | /usr/bin/awk '{ print $4; 
}' )
sibu [ ~ ]$ echo $ant_version
1.9.2


I then ran configure again and this results:-

#-----------------------------------
checking whether ant is >= 1.6.0... ./configure: line 22583: test: not 
NO_JAVA_HOME/bin/java: integer expression expected
configure: error: no, you need at least ant >= 1.6.0
#-----------------------------------

but line 22583 of the configue script  reads:-
#-----------------------------------
if test "$ant_version_major" -ge "2"; then
#-----------------------------------

there is no mention of of "NO_JAVA_HOME/bin/java"

Help/advice will be appreciated.

Sincerely
Sibu

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to