mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
updated example makefiles to add libmystrings
temporary added trace printouts for ndb autotest
This commit is contained in:
parent
34c5892c44
commit
358ba900ef
8 changed files with 31 additions and 16 deletions
|
@ -10,11 +10,11 @@ TOP_SRCDIR = ../../..
|
|||
INCLUDE_DIR = $(TOP_SRCDIR)
|
||||
LIB_DIR = -L$(TOP_SRCDIR)/ndb/src/.libs \
|
||||
-L$(TOP_SRCDIR)/libmysql_r/.libs \
|
||||
-L$(TOP_SRCDIR)/mysys
|
||||
-L$(TOP_SRCDIR)/mysys -L$(TOP_SRCDIR)/strings
|
||||
SYS_LIB =
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) $(CXXFLAGS) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lz $(SYS_LIB) -o $(TARGET)
|
||||
$(CXX) $(CXXFLAGS) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lmystrings -lz $(SYS_LIB) -o $(TARGET)
|
||||
|
||||
$(TARGET).o: $(SRCS)
|
||||
$(CXX) $(CFLAGS) -I$(INCLUDE_DIR)/include -I$(INCLUDE_DIR)/extra -I$(INCLUDE_DIR)/ndb/include -I$(INCLUDE_DIR)/ndb/include/ndbapi $(SRCS)
|
||||
|
|
|
@ -8,11 +8,11 @@ LFLAGS = -Wall
|
|||
INCLUDE_DIR = ../../include
|
||||
LIB_DIR = -L../../src/.libs \
|
||||
-L../../../libmysql_r/.libs \
|
||||
-L../../../mysys
|
||||
-L../../../mysys -L../../../strings
|
||||
SYS_LIB =
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lz $(SYS_LIB) -o $(TARGET)
|
||||
$(CXX) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lmystrings -lz $(SYS_LIB) -o $(TARGET)
|
||||
|
||||
$(TARGET).o: $(SRCS)
|
||||
$(CXX) $(CFLAGS) -I$(INCLUDE_DIR) -I$(INCLUDE_DIR)/ndbapi $(SRCS)
|
||||
|
|
|
@ -10,11 +10,11 @@ TOP_SRCDIR = ../../..
|
|||
INCLUDE_DIR = $(TOP_SRCDIR)/ndb/include
|
||||
LIB_DIR = -L$(TOP_SRCDIR)/ndb/src/.libs \
|
||||
-L$(TOP_SRCDIR)/libmysql_r/.libs \
|
||||
-L$(TOP_SRCDIR)/mysys
|
||||
-L$(TOP_SRCDIR)/mysys -L$(TOP_SRCDIR)/strings
|
||||
SYS_LIB =
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) $(CXXFLAGS) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lz $(SYS_LIB) -o $(TARGET)
|
||||
$(CXX) $(CXXFLAGS) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lmystrings -lz $(SYS_LIB) -o $(TARGET)
|
||||
|
||||
$(TARGET).o: $(SRCS)
|
||||
$(CXX) $(CFLAGS) -I$(INCLUDE_DIR) -I$(INCLUDE_DIR)/ndbapi $(SRCS)
|
||||
|
|
|
@ -8,11 +8,11 @@ LFLAGS = -Wall
|
|||
INCLUDE_DIR = ../../include
|
||||
LIB_DIR = -L../../src/.libs \
|
||||
-L../../../libmysql_r/.libs \
|
||||
-L../../../mysys
|
||||
-L../../../mysys -L../../../strings
|
||||
SYS_LIB =
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lz $(SYS_LIB) -o $(TARGET)
|
||||
$(CXX) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lmystrings -lz $(SYS_LIB) -o $(TARGET)
|
||||
|
||||
$(TARGET).o: $(SRCS)
|
||||
$(CXX) $(CFLAGS) -I$(INCLUDE_DIR) -I$(INCLUDE_DIR)/ndbapi $(SRCS)
|
||||
|
|
|
@ -10,11 +10,11 @@ TOP_SRCDIR = ../../..
|
|||
INCLUDE_DIR = $(TOP_SRCDIR)
|
||||
LIB_DIR = -L$(TOP_SRCDIR)/ndb/src/.libs \
|
||||
-L$(TOP_SRCDIR)/libmysql_r/.libs \
|
||||
-L$(TOP_SRCDIR)/mysys
|
||||
-L$(TOP_SRCDIR)/mysys -L$(TOP_SRCDIR)/strings
|
||||
SYS_LIB =
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) $(CXXFLAGS) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lz $(SYS_LIB) -o $(TARGET)
|
||||
$(CXX) $(CXXFLAGS) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lmystrings -lz $(SYS_LIB) -o $(TARGET)
|
||||
|
||||
$(TARGET).o: $(SRCS)
|
||||
$(CXX) $(CFLAGS) -I$(INCLUDE_DIR)/include -I$(INCLUDE_DIR)/extra -I$(INCLUDE_DIR)/ndb/include -I$(INCLUDE_DIR)/ndb/include/ndbapi $(SRCS)
|
||||
|
|
|
@ -10,11 +10,11 @@ TOP_SRCDIR = ../../..
|
|||
INCLUDE_DIR = $(TOP_SRCDIR)
|
||||
LIB_DIR = -L$(TOP_SRCDIR)/ndb/src/.libs \
|
||||
-L$(TOP_SRCDIR)/libmysql_r/.libs \
|
||||
-L$(TOP_SRCDIR)/mysys
|
||||
-L$(TOP_SRCDIR)/mysys -L$(TOP_SRCDIR)/strings
|
||||
SYS_LIB =
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) $(CXXFLAGS) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lz $(SYS_LIB) -o $(TARGET)
|
||||
$(CXX) $(CXXFLAGS) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lmystrings -lz $(SYS_LIB) -o $(TARGET)
|
||||
|
||||
$(TARGET).o: $(SRCS)
|
||||
$(CXX) $(CFLAGS) -I$(INCLUDE_DIR)/include -I$(INCLUDE_DIR)/ndb/include -I$(INCLUDE_DIR)/ndb/include/ndbapi $(SRCS)
|
||||
|
|
|
@ -10,11 +10,11 @@ TOP_SRCDIR = ../../..
|
|||
INCLUDE_DIR = $(TOP_SRCDIR)
|
||||
LIB_DIR = -L$(TOP_SRCDIR)/ndb/src/.libs \
|
||||
-L$(TOP_SRCDIR)/libmysql_r/.libs \
|
||||
-L$(TOP_SRCDIR)/mysys
|
||||
-L$(TOP_SRCDIR)/mysys -L$(TOP_SRCDIR)/strings
|
||||
SYS_LIB =
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) $(CXXFLAGS) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lz $(SYS_LIB) -o $(TARGET)
|
||||
$(CXX) $(CXXFLAGS) $(LFLAGS) $(LIB_DIR) $(OBJS) -lndbclient -lmysqlclient_r -lmysys -lmystrings -lz $(SYS_LIB) -o $(TARGET)
|
||||
|
||||
$(TARGET).o: $(SRCS)
|
||||
$(CXX) $(CFLAGS) -I$(INCLUDE_DIR)/include -I$(INCLUDE_DIR)/ndb/include -I$(INCLUDE_DIR)/ndb/include/ndbapi $(SRCS)
|
||||
|
|
|
@ -1531,12 +1531,16 @@ bool TransporterRegistry::connect_client(NdbMgmHandle *h)
|
|||
Uint32 mgm_nodeid= ndb_mgm_get_mgmd_nodeid(*h);
|
||||
|
||||
if(!mgm_nodeid)
|
||||
{
|
||||
ndbout_c("%s: %d", __FILE__, __LINE__);
|
||||
return false;
|
||||
|
||||
}
|
||||
Transporter * t = theTransporters[mgm_nodeid];
|
||||
if (!t)
|
||||
{
|
||||
ndbout_c("%s: %d", __FILE__, __LINE__);
|
||||
return false;
|
||||
|
||||
}
|
||||
DBUG_RETURN(t->connect_client(connect_ndb_mgmd(h)));
|
||||
}
|
||||
|
||||
|
@ -1550,6 +1554,7 @@ NDB_SOCKET_TYPE TransporterRegistry::connect_ndb_mgmd(NdbMgmHandle *h)
|
|||
|
||||
if ( h==NULL || *h == NULL )
|
||||
{
|
||||
ndbout_c("%s: %d", __FILE__, __LINE__);
|
||||
return NDB_INVALID_SOCKET;
|
||||
}
|
||||
|
||||
|
@ -1562,6 +1567,10 @@ NDB_SOCKET_TYPE TransporterRegistry::connect_ndb_mgmd(NdbMgmHandle *h)
|
|||
m_transporter_interface[i].m_s_service_port,
|
||||
&mgm_reply) < 0)
|
||||
{
|
||||
ndbout_c("Error: %s: %d",
|
||||
ndb_mgm_get_latest_error_desc(*h),
|
||||
ndb_mgm_get_latest_error(*h));
|
||||
ndbout_c("%s: %d", __FILE__, __LINE__);
|
||||
ndb_mgm_destroy_handle(h);
|
||||
return NDB_INVALID_SOCKET;
|
||||
}
|
||||
|
@ -1572,7 +1581,13 @@ NDB_SOCKET_TYPE TransporterRegistry::connect_ndb_mgmd(NdbMgmHandle *h)
|
|||
*/
|
||||
NDB_SOCKET_TYPE sockfd= ndb_mgm_convert_to_transporter(h);
|
||||
if ( sockfd == NDB_INVALID_SOCKET)
|
||||
{
|
||||
ndbout_c("Error: %s: %d",
|
||||
ndb_mgm_get_latest_error_desc(*h),
|
||||
ndb_mgm_get_latest_error(*h));
|
||||
ndbout_c("%s: %d", __FILE__, __LINE__);
|
||||
ndb_mgm_destroy_handle(h);
|
||||
}
|
||||
return sockfd;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue