Menu

#6 Bad binutils version detection in glibc

open
nobody
5
2011-07-06
2011-07-06
No

Glibc 2.3.6 does not correctly check for binutils (ld and as) version. It asks for 2.13 or higher but fails against 2.21 since 2.21 isn't of the form 2.1[3-9]

I attached a patch (which can, for instance, be placed in ./toolchain-new/patches/glibc-2.3.6/glibc-2.3.6-binutils-version.patch) which fixes the problem for me (running Debian wheezy) by altering the test in "./configure".

Have a nice day,

Christian.

Discussion

  • Christian Mauduit

    Patch which should fix the problem.

     
  • Christian Mauduit

    Actually, this trivial patch won't work as it reports 2.21 still wrong (would only accept 2.23 or higher...). Basically, one should write a "regular" bullet proof version checker, in practice, as of 2011, systems with ld older than 2.13 might not be so common, so accepting anything, that is, removing the test, might be the easiest and most straightforward solution.

     
  • Christian Mauduit

    Allows compilation with 2.21 but check is broken

     

Log in to post a comment.

MongoDB Logo MongoDB