]> sourceware.org Git - systemtap.git/commitdiff
* partial rollback of mysql code in lket/b2a until configury problems are solved
authorfche <fche>
Tue, 10 Oct 2006 17:40:10 +0000 (17:40 +0000)
committerfche <fche>
Tue, 10 Oct 2006 17:40:10 +0000 (17:40 +0000)
ChangeLog
configure
configure.ac
runtime/ChangeLog
runtime/lket/b2a/lket_b2a.c

index aa90e605740027cbd35ee20c1532f280eda55c7a..60079008b2f3f373404dc23d0cf3f51590610444 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,13 @@
+2006-10-10  Frank Ch. Eigler  <fche@elastic.org>
+
+       * configure.ac: Override incomplete mysql checking for now.
+       * configure: Regenerated.
+
 2006-10-10  Li Guanglei <guanglei@cn.ibm.com>
 
        * configure.ac: add the checking of mysql client library
        * Makefile.in, configure: regenerated
+       
 2006-09-29  Li Guanglei <guanglei@cn.ibm.com>
 
        * man: newly created dir for stapprobes
index 900c1d621d66cca6f35a0341cb0c2e57f0a4b774..380de789509a23468eb5f9d40f4f159a42443c39 100755 (executable)
--- a/configure
+++ b/configure
@@ -5225,8 +5225,12 @@ else
 fi
 
 
+# This check is not sufficient.  mysql_config may exist on machines
+# that do not actually have the development headers/libraries installed.
+# AM_CONDITIONAL(HAS_MYSQL, which mysql_config > /dev/null 2>&1)
 
-if which mysql_config > /dev/null 2>&1; then
+
+if false; then
   HAS_MYSQL_TRUE=
   HAS_MYSQL_FALSE='#'
 else
@@ -5242,6 +5246,7 @@ echo "$as_me: WARNING: glib2-devel is required to build lket-b2a.
   no glib2-devel found, skip building lket-b2a..." >&2;}
 fi
 
+# AC_CHECK_LIB
 if ! which mysql_config > /dev/null 2>&1; then
   { echo "$as_me:$LINENO: WARNING: mysqlclient lib is required to build lket-b2a with database support.
   no mysqlclient lib is found, skip building lket-b2a with database support..." >&5
index 65b493cd0882df4a63c14ebbd503fb07d1a83126..8f2a056001b4aa7f8e96da4b5a48c01ecc3174bf 100644 (file)
@@ -60,13 +60,18 @@ yes) AC_MSG_ERROR([--with-elfutils requires an argument]) ;;
 esac])
 AM_CONDITIONAL(BUILD_ELFUTILS, test $build_elfutils = yes)
 AM_CONDITIONAL(BUILD_LKET_B2A, pkg-config --atleast-version 2.0.0 glib-2.0)
-AM_CONDITIONAL(HAS_MYSQL, which mysql_config > /dev/null 2>&1)
+
+# This check is not sufficient.  mysql_config may exist on machines
+# that do not actually have the development headers/libraries installed.
+# AM_CONDITIONAL(HAS_MYSQL, which mysql_config > /dev/null 2>&1)
+AM_CONDITIONAL(HAS_MYSQL, false)
 
 if ! pkg-config --atleast-version 2.0.0 glib-2.0; then
   AC_MSG_WARN([glib2-devel is required to build lket-b2a.
   no glib2-devel found, skip building lket-b2a...])
 fi
 
+# AC_CHECK_LIB
 if ! which mysql_config > /dev/null 2>&1; then
   AC_MSG_WARN([mysqlclient lib is required to build lket-b2a with database support.
   no mysqlclient lib is found, skip building lket-b2a with database support...])
index 6f38ac92e753f6746febd23bed98169e62a36088..6871025f1707e44c21c18be6db2fe848666d1bf2 100644 (file)
@@ -1,3 +1,7 @@
+2006-10-10  Frank Ch. Eigler  <fche@elastic.org>
+
+       * runtime/lket/b2a/lket_b2a.c: Add several missing #ifdef HAS_MYSQL.
+
 2006-10-10  Li Guanglei <guanglei@cn.ibm.com>
 
        * runtime/lket/b2a/lket_b2a.c, runtime/lket/b2a/lket_b2a.h:
index ee9d4857c06bdd9b761b147d2577d74422a606c5..eb4c2fc6cf0ec0934464da8869a0581b98fab2c6 100644 (file)
@@ -1,4 +1,5 @@
 // Copyright (C) 2005, 2006 IBM Corp.
+// Copyright (C) 2006 Red Hat Inc.
 //
 // This file is part of systemtap, and is free software.  You can
 // redistribute it and/or modify it under the terms of the GNU General
@@ -299,9 +300,9 @@ failed:
                                        exit(-1);
                                }
                        }
-#endif
                        if(events_des[1][i][j]->entrytime) /* destroy entrytime tree */
                                g_tree_destroy(events_des[1][i][j]->entrytime);
+#endif
                }
        }
 
@@ -634,7 +635,9 @@ char *get_sqltype(char *fmt)
 
 void register_evt_desc(FILE *infp, size_t size)
 {
+#ifdef HAS_MYSQL
        static int has_table = 0;
+#endif
        int grpid, hookid;
        char *evt_body;
        evt_body = malloc(size);
@@ -644,9 +647,9 @@ void register_evt_desc(FILE *infp, size_t size)
 
        if(!events_des[1][grpid][hookid])
                events_des[1][grpid][hookid] = malloc(sizeof(event_desc));
+#ifdef HAS_MYSQL
        events_des[1][grpid][hookid]->entrytime = g_tree_new_full(
                compareFunc, NULL, NULL, destroyTreeData);
-#ifdef HAS_MYSQL
        if(into_db)  {
                if(!has_table)  {
                        snprintf(sql, 1024, "create table table_desc ( table_name \
@@ -708,10 +711,10 @@ void register_events(int evt_type, FILE *infp, size_t size)
                        snprintf(sql, 1024, "alter table %d_%d ", grpid, hookid);
                }
        }
-#endif
 
        if(size == 2) // skip if no event format is provided
                goto gen_sql;
+#endif
 
        evt_fmt = evt_body+2;
        
This page took 0.051703 seconds and 5 git commands to generate.