Commit 64d9f1fe authored by mronstrom@mysql.com's avatar mronstrom@mysql.com

Snippet from the Internet:

Common Symbols

If you get errors in linking complaining about common symbols
ld: common symbols not allowed with MH_DYLIB format

Then it means that you've got a global variable in the library which has
not been assigned a value.

Got this problem with three globals in NdbDaemon.c
parent 0d307d34
...@@ -106,6 +106,7 @@ monty@tik. ...@@ -106,6 +106,7 @@ monty@tik.
monty@tik.mysql.fi monty@tik.mysql.fi
monty@tramp.mysql.fi monty@tramp.mysql.fi
monty@work.mysql.com monty@work.mysql.com
mronstrom@mysql.com
mwagner@cash.mwagner.org mwagner@cash.mwagner.org
mwagner@evoq.mwagner.org mwagner@evoq.mwagner.org
mwagner@work.mysql.com mwagner@work.mysql.com
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
#include "NdbDaemon.h" #include "NdbDaemon.h"
#define NdbDaemon_ErrorSize 500 #define NdbDaemon_ErrorSize 500
long NdbDaemon_DaemonPid; long NdbDaemon_DaemonPid = 0;
int NdbDaemon_ErrorCode; int NdbDaemon_ErrorCode = 0;
char NdbDaemon_ErrorText[NdbDaemon_ErrorSize]; char NdbDaemon_ErrorText[NdbDaemon_ErrorSize] = "";
int int
NdbDaemon_Make(const char* lockfile, const char* logfile, unsigned flags) NdbDaemon_Make(const char* lockfile, const char* logfile, unsigned flags)
......
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