OS check fails on JDK 1.4 & FreeBSD 5.4R
Greg Lewis
glewis at eyesbeyond.com
Thu May 26 05:25:17 GMT 2005
On Wed, May 25, 2005 at 11:51:00PM -0400, Scott I. Remick wrote:
> check-os:
> .if !defined(SKIP_OS_TEST)
> - at mkdir -p ${WRKDIR} ; \
> rm -f ${WRKDIR}/${TESTPROG} ; \
> gcc ${LINKIT} -o ${WRKDIR}/${TESTPROG} \
> ${FILESDIR}/${TESTPROG}.c > /dev/null 2>&1
> @if [ ! -f ${WRKDIR}/${TESTPROG} ] ; \
> then \
> /usr/bin/printf "\n\
> You must have a version of FreeBSD later than 4.7-STABLE\n\
> February 2003 or 5-CURRENT February 2003 to compile and\n\
> use JDK 1.4.2.\n\n" ; \
> exit 1 ; \
> fi
> @${WRKDIR}/${TESTPROG} 2>/dev/null
> .endif
>
> From that it suggests defining SKIP_OS_TEST=1 should bypass it but instead
> of cheating I'd rather find out what's wrong with my system to cause the
> test to fail.
So, if you manually do (in the jdk14 directory)
gcc -lc_r -o work/testos files/testos.c
(You may need to manually create the work directory if you've done a
"make clean")
What happens? The only way the test can fail is if you can't compile
that programme.
--
Greg Lewis Email : glewis at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
More information about the freebsd-java
mailing list