fix for mysqladmin link problem

     .c -> .cc
    fix source dist problem for ndb
    fix type check problem for mysqladmin
parent 3a63cac1
...@@ -27,6 +27,7 @@ bin_PROGRAMS = mysql mysqladmin mysqlcheck mysqlshow \ ...@@ -27,6 +27,7 @@ bin_PROGRAMS = mysql mysqladmin mysqlcheck mysqlshow \
mysqldump mysqlimport mysqltest mysqlbinlog mysqlmanagerc mysqlmanager-pwgen mysqldump mysqlimport mysqltest mysqlbinlog mysqlmanagerc mysqlmanager-pwgen
noinst_HEADERS = sql_string.h completion_hash.h my_readline.h \ noinst_HEADERS = sql_string.h completion_hash.h my_readline.h \
client_priv.h client_priv.h
mysqladmin_SOURCES = mysqladmin.cc
mysql_SOURCES = mysql.cc readline.cc sql_string.cc completion_hash.cc mysql_SOURCES = mysql.cc readline.cc sql_string.cc completion_hash.cc
mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD) $(CXXLDFLAGS) mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD) $(CXXLDFLAGS)
mysqlbinlog_LDADD = $(LDADD) $(CXXLDFLAGS) mysqlbinlog_LDADD = $(LDADD) $(CXXLDFLAGS)
......
...@@ -1287,9 +1287,6 @@ static my_bool wait_pidfile(char *pidfile, time_t last_modified, ...@@ -1287,9 +1287,6 @@ static my_bool wait_pidfile(char *pidfile, time_t last_modified,
} }
DBUG_RETURN(error); DBUG_RETURN(error);
} }
#ifdef HAVE_NDBCLUSTER_DB
/* lib linked in contains c++ code */
#ifdef __GNUC__ #ifdef __GNUC__
FIX_GCC_LINKING_PROBLEM FIX_GCC_LINKING_PROBLEM
#endif #endif
#endif
...@@ -399,7 +399,6 @@ then ...@@ -399,7 +399,6 @@ then
then then
if $CXX -v 2>&1 | grep 'version 3' > /dev/null 2>&1 if $CXX -v 2>&1 | grep 'version 3' > /dev/null 2>&1
then then
CFLAGS="$CFLAGS -DDEFINE_CXA_PURE_VIRTUAL"
CXXFLAGS="$CXXFLAGS -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL" CXXFLAGS="$CXXFLAGS -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL"
fi fi
fi fi
......
...@@ -28,6 +28,7 @@ ndbapi/NdbIndexScanOperation.hpp \ ...@@ -28,6 +28,7 @@ ndbapi/NdbIndexScanOperation.hpp \
ndbapi/ndberror.h ndbapi/ndberror.h
mgmapiinclude_HEADERS = \ mgmapiinclude_HEADERS = \
mgmapi/LocalConfig.hpp \
mgmapi/mgmapi.h \ mgmapi/mgmapi.h \
mgmapi/mgmapi_debug.h mgmapi/mgmapi_debug.h
......
...@@ -193,7 +193,7 @@ extern "C" { ...@@ -193,7 +193,7 @@ extern "C" {
{ {
return (Ndb_mgmclient_handle) new Ndb_mgmclient(connect_string); return (Ndb_mgmclient_handle) new Ndb_mgmclient(connect_string);
} }
int ndb_mgmclient_execute(Ndb_mgmclient_handle h, int argc, const char** argv) int ndb_mgmclient_execute(Ndb_mgmclient_handle h, int argc, char** argv)
{ {
return ((Ndb_mgmclient*)h)->execute(argc, argv, 1); return ((Ndb_mgmclient*)h)->execute(argc, argv, 1);
} }
...@@ -226,7 +226,7 @@ extern "C" { ...@@ -226,7 +226,7 @@ extern "C" {
#include <util/InputStream.hpp> #include <util/InputStream.hpp>
#include <util/OutputStream.hpp> #include <util/OutputStream.hpp>
int Ndb_mgmclient::execute(int argc, const char** argv, int _try_reconnect) int Ndb_mgmclient::execute(int argc, char** argv, int _try_reconnect)
{ {
if (argc <= 0) if (argc <= 0)
return 0; return 0;
......
...@@ -23,7 +23,7 @@ extern "C" { ...@@ -23,7 +23,7 @@ extern "C" {
typedef void* Ndb_mgmclient_handle; typedef void* Ndb_mgmclient_handle;
Ndb_mgmclient_handle ndb_mgmclient_handle_create(const char *connect_string); Ndb_mgmclient_handle ndb_mgmclient_handle_create(const char *connect_string);
int ndb_mgmclient_execute(Ndb_mgmclient_handle, int argc, const char** argv); int ndb_mgmclient_execute(Ndb_mgmclient_handle, int argc, char** argv);
int ndb_mgmclient_handle_destroy(Ndb_mgmclient_handle); int ndb_mgmclient_handle_destroy(Ndb_mgmclient_handle);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -24,7 +24,7 @@ public: ...@@ -24,7 +24,7 @@ public:
Ndb_mgmclient(const char*); Ndb_mgmclient(const char*);
~Ndb_mgmclient(); ~Ndb_mgmclient();
int execute(const char *_line, int _try_reconnect=-1); int execute(const char *_line, int _try_reconnect=-1);
int execute(int argc, const char** argv, int _try_reconnect=-1); int execute(int argc, char** argv, int _try_reconnect=-1);
int disconnect(); int disconnect();
private: private:
CommandInterpreter *m_cmd; CommandInterpreter *m_cmd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment