I have just successfully compiled openDX 4.2.0 from the 27 January 2003 CVS snapshot using modified fink patches for MacOSX.

The patch required, though, may be something which is appropriate to roll into the main distribution. In configure.in, there are inconsistent assumptions made about dependencies for libdf (the hdf library). In many places, linking to -ldf also includes linking to -lz and -ljpeg. However, in one place it does not:

in configure.in, at the top level, look for:
else
AC_CHECK_LIB(df,Hopen,passed=`expr $passed + 1`,failed=`expr $failed + 1`,[ -lz -ljpeg ])
    AC_MSG_CHECKING(if HDF package is complete)
    if test $passed -gt 0
    then
    if test $failed -gt 0
    then
        AC_MSG_RESULT(no -- some components failed test)
        have_hdf='no (failed tests)'
    else
        LIB_HDF='-ldf'
        LIBS="$LIB_HDF $LIBS"
        FMT_LIBS="$FMT_LIBS libdf.a"
AC_DEFINE(HAVE_LIBDF, 1, [Define to 1 if you have the HDF libraries])
        AC_MSG_RESULT(yes)
        have_hdf='yes'
    fi
    else
    AC_MSG_RESULT(no)

and replace LIB_HDF='-ldf'  with LIB_HDF='-ldf -lz -ljpeg'

If this is believed to be harmless on other platforms, could it be rolled into the current CVS?

Marcus Mendenhall

Reply via email to