Attempting to compile dosemu for my BLFS system. The configure phase fails, claiming that I have either no glibc or that I have a glibc that is older than the required version of 2.1.3.
A review of the LFS book indicates that I have version 2.25. Now, I'm not a linux expert, despite running a BLFS as my main system, but it seems to me that 25 is greater than 1 and that a larger number indicates a newer version. So that one leads one to suspect that I have a version of glibc that is newer than what dosemu needs, not older.
A look at the section of the configure script that appears to do the version checking:
Code:
{ echo "$as_me:$LINENO: checking for glibc..." >&5
echo $ECHO_N "checking for glibc...... $ECHO_C" >&6; }
set `printf '%b\n' '#include <features.h>\nXXAaZZ __GLIBC__ XXBbZZ __GLIBC_MINOR__'|${CC-cc} -E -|awk '/XXAaZZ/ {print $2 " " $4}'`
major=$1; minor=$2
if test "$major" = "__GLIBC__"; then
{ { echo "$as_me:$LINENO: error: Sorry, you need glibc-2.1.3 or newer." >&5
echo "$as_me: error: Sorry, you need glibc-2.1.3 or newer." >&2;}
{ (exit 1); exit 1; }; }
else
if test "$minor" = "__GLIBC_MINOR__"; then
minor=0;
fi
GLIBC_VERSION_CODE=$((($major * 1000) + $minor))
{ echo "$as_me:$LINENO: result: yes, version code $GLIBC_VERSION_CODE" >&5
echo "${ECHO_T}yes, version code $GLIBC_VERSION_CODE" >&6; }
if test $GLIBC_VERSION_CODE -lt 2001; then
{ { echo "$as_me:$LINENO: error: Sorry, you need glibc-2.1.3 or newer." >&5
echo "$as_me: error: Sorry, you need glibc-2.1.3 or newer." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
That's a bit too convoluted for me to dare try hard-coding or skipping the check.
Can someone (who has compiled dosemu, hopefully) please clue me in? Thank you.
p.s. note: I am working with 1.4.0 of dosemu, following a slackbuilds.org slackbuild for the process.