by apex » Fri Oct 12, 2001 4:26 am
13: Undefined Symbols:
_strtok_r
Fix:
Try replacing all occurances of strok_r() with strtok(). You will need to remove the last argument from strtok_r() when you change it.
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><HR><pre>
grep -r strtok_r src/
</pre>[/quote]
sample:
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><HR><pre>
token = strtok_r(NULL, " ", &blah);
</pre>[/quote]
becomes
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><HR><pre>
token = strtok(NULL, " ");
</pre>[/quote]
14: definition of sys_errlist
Edit the code around line 265 of /usr/include/stdio.h so that it looks like this:
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><HR><pre>
#ifdef mygnudarwindef
extern __const char *__const sys_errlist[];
#endif
</pre>[/quote]
A similar switch can be installed for the bzero definition, if that gives you problems. When you want it to go back to the normal definition, change the ifdef to ifndef.
14: pthread
You may get errors that say you do not have threading on your system.
Edit your Makefiles and remove the "-lpthread" flag from them.
Darwin has threading capability built-into the OS, it doesn't use an external library.
[ October 11, 2001: Message edited by: apex ]