Hi,

I was trying to compile valgrind-3.8.1 with the latest glibc-2.17 and I was
getting the following error

"Valgrind requires glibc version 2.2 - 2.16".

I made some changes in configure script and I was able to compile it
successfully. Is valgrind-3.8.1 not recommended for glibc-2.17 ?

Below is the patch for the same.

--- configure.in    2012-09-19 00:47:32.000000000 +0530
+++ configure.in.a    2013-05-03 01:39:05.561641058 +0530
@@ -906,6 +906,14 @@
     DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
     DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
     ;;
+     2.17)
+    AC_MSG_RESULT(2.17 family)
+    AC_DEFINE([GLIBC_2_17], 1, [Define to 1 if you're using glibc 2.17.x])
+    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}"
+    ;;
+
      darwin)
     AC_MSG_RESULT(Darwin)
     AC_DEFINE([DARWIN_LIBC], 1, [Define to 1 if you're using Darwin])
@@ -919,7 +927,7 @@

      *)
     AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}])
-    AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.16])
+    AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.17])
     AC_MSG_ERROR([or Darwin libc])
     ;;
 esac
--- configure    2012-09-19 00:49:23.000000000 +0530
+++ configure.a    2013-05-03 01:40:16.977641212 +0530
@@ -6604,6 +6604,17 @@
     DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
     DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
     ;;
+     2.17)
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.17 family" >&5
+$as_echo "2.17 family" >&6; }
+
+$as_echo "#define GLIBC_2_17 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}"
+    ;;
+
      darwin)
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
 $as_echo "Darwin" >&6; }
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to