Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

valgrind doesn't accept newest version of glibc

Tags:

Valgrind doesn't like glibc 2.15:

checking the GLIBC_VERSION version... unsupported version 2.15 configure: error: Valgrind requires glibc version 2.2 - 2.14 

How can I deal with this? do I have to downgrade glibc? I'm working on Ubuntu 12.04 if that is pertinent info.

Update:

So I was attempting to download source and install from there instead of using apt-get since I'm going through Learn C the Hard Way. After I got this problem I resorted to apt-get to see if it would work. it installed this package for me:

libc6-dbg - Embedded GNU C Library: detached debugging symbols 
like image 318
talloaktrees Avatar asked May 09 '12 15:05

talloaktrees


1 Answers

I'm going through this book too and ran into this problem. I googled it and ended up here following Employeed Russian's advice I went in and played with the configure files and got it to work.

Go into your configure to about line 6404 and then paste this in:

         2.15) { $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}" ;; 

Then I ran configure, make and then sudo make install and it all worked.

In the configure.in file I also added code around 777 but I dont think it was important to the final result, if it is though I basically just copied the previous stuff that referenced 2.14, pasted and changed it all to 2.15

Hope this helps

like image 64
Rumel Avatar answered Sep 23 '22 18:09

Rumel