LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-15-2017, 01:56 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
blfs-8.0: dosemu can't see glibc


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.

Last edited by jr_bob_dobbs; 09-15-2017 at 01:59 PM.
 
Old 09-16-2017, 11:35 AM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
It looks like things have changed since that config.ac was written in 2007.
On my Debian box:
Code:
~$ printf '%b\n' '#include <features.h>\nXXAaZZ __GLIBC__ XXBbZZ __GLIBC_MINOR__'|${CC-cc} -E -
...
XXAaZZ 
# 2 "<stdin>" 3 4
      2 
# 2 "<stdin>"
                XXBbZZ 
# 2 "<stdin>" 3 4
                       24
Notice that XXAazz is on a line by itself so awk '/XXAaZZ/ {print $2 " " $4}' returns nothing.

Don't know whether this will work or not but you might try hard coding your glibc version in the configure script like this:
Code:
...
set `printf '%b\n' '#include <features.h>\nXXAaZZ __GLIBC__ XXBbZZ __GLIBC_MINOR__'|${CC-cc} -E -|awk '/XXAaZZ/ {print $2 " " $4}'`
  major="2"; minor="25"
  if test "$major" = "__GLIBC__"; then
...
Or you can change configure.ac and rerun configure.

HTH
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux From Scratch and BLFS 7.10 Books Released to Support GCC 6.2.0, Glibc 2.24 LXer Syndicated Linux News 0 09-11-2016 08:30 PM
[SOLVED] LFS/BLFS SVN: gcc-4.8.0 and glibc-2.17 re_nelson Linux From Scratch 3 07-09-2013 10:50 PM
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
glibc-compiling loves to make errors? ok, let me post mine here: glibc 2.9 me-$-on Linux From Scratch 7 04-11-2009 06:22 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration