Author
|
Topic: fixes to common problems
|
|
|
|
|
apex
Administrator
Member # 1
|
posted August 15, 2001 07:00 PM
7.Error: Command not found: make [6]Fix: Install Apple's Developer Tools Note: you can upgrade to the latest Dev Tools version from connect.apple.com [ August 16, 2001: Message edited by: apex ]
Posts: 307 | From: Alaska | Registered: Aug 2001
| IP: Logged
|
|
|
apex
Administrator
Member # 1
|
posted August 16, 2001 07:47 AM
9.Error: Your compile stops because it cannot find the header file malloc.hFix: code:
touch malloc.h
Apple has included this functionality elsewhere so we create a dummy file to satisfy the programs dependencies. Alternatively you can edit the source and remove the statement: code:
#include <malloc.h>
[ August 16, 2001: Message edited by: apex ]
Posts: 307 | From: Alaska | Registered: Aug 2001
| IP: Logged
|
|
jasont
Member
Member # 16
|
posted August 16, 2001 08:19 AM
Optionally you can grab it from any of these locations:/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/malloc.h /usr/include/objc/malloc.h /usr/include/sys/malloc.h
Posts: 50 | From: Palo Alto, CA | Registered: Aug 2001
| IP: Logged
|
|
|
|
|
apex
Administrator
Member # 1
|
posted October 11, 2001 09:26 PM
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.
code:
grep -r strtok_r src/
sample:
code:
token = strtok_r(NULL, " ", &blah);
becomes
code:
token = strtok(NULL, " ");
14: definition of sys_errlist Edit the code around line 265 of /usr/include/stdio.h so that it looks like this:
code:
#ifdef mygnudarwindef extern __const char *__const sys_errlist[]; #endif
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 ]
Posts: 307 | From: Alaska | Registered: Aug 2001
| IP: Logged
|
|