It seems, whenever a new version is released terminal asks for different versions of Glibc. So if terminal gives such an error:
checking the GLIBC_VERSION version... unsupported version 2.19
configure: error: Valgrind requires glibc version 2.2 - 2.14
Then you need to edit configure file for 2.19 version, because that version is unsupported as reported in the teminal.
So open in some text editor - the file called configure from the valgrind directory, find the following piece of code via CTRL+F:
case
"${GLIBC_VERSION}" in
2.2)
When you get to that line in the editor(always line number may change depending on release version) you find the below code beginning with 2.2)
.
2.2)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.15 family" >&5
$as_echo "2.15 family" >&6; }
$as_echo "#define GLIBC_2_14 1" >>confdefs.h
DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
;;
And if you scroll down, you find the same code for every other version from 2.2 to 2.21...
. Copy&Paste the code of last version after last version (notice that only in my case it is 2.2
version, which is beginning with 2.2)
you need to change all those 2.2)
's to the version you are required from terminal which is 2.19)
in my case.
So if version 2.19
is required by terminal the code you will be adding will look like:
2.19)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.19 family" >&5
$as_echo "2.19 family" >&6; }
$as_echo "#define GLIBC_2_19 1" >>confdefs.h
DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
;;
And following your code if go down the file there should be darwin)
on the next lines.