Bug #52875 cache-id does not contain _cv_ in ext/ctemplate/ctemplate-src/m4/ac_rwlock.m4
Submitted: 16 Apr 2010 0:13 Modified: 21 May 2010 11:06
Reporter: Twang Li Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2.18 OS:Other (NetBSD)
Assigned to: CPU Architecture:Any
Tags: autoconf, configure, Contribution

[16 Apr 2010 0:13] Twang Li
Description:
configure.ac:63: warning: AC_CACHE_VAL(ac_rwlock, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
m4/ac_rwlock.m4:21: AC_RWLOCK is expanded from...
configure.ac:63: the top level
configure.ac:63: warning: AC_CACHE_VAL(ac_rwlock, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
m4/ac_rwlock.m4:21: AC_RWLOCK is expanded from...
configure.ac:63: the top level

How to repeat:
bmake configure

Suggested fix:
$NetBSD$

--- ext/ctemplate/ctemplate-src/m4/ac_rwlock.m4.orig	2010-04-13 03:42:08.000000000 +0000
+++ ext/ctemplate/ctemplate-src/m4/ac_rwlock.m4
@@ -20,7 +20,7 @@
 
 AC_DEFUN([AC_RWLOCK],
 [AC_CACHE_CHECK(support for pthread_rwlock_* functions,
-ac_rwlock,
+ac_cv_rwlock,
 [AC_LANG_SAVE
  AC_LANG_C
  AC_TRY_COMPILE([#define _XOPEN_SOURCE 500
[19 Apr 2010 6:55] Susanne Ebrecht
Many thanks for writing a bug report.

Verified by source code analysis
[21 Apr 2010 16:42] Twang Li
Needs to be marked Won´t Fix as per discussion on: http://bugs.mysql.com/bug.php?id=52874

Same comment on this issue as well.