General Porting Tips
  While porting many UNIX-progs to NeXTstep, I stumbled over some nasty but solveable problems:

cc: Internal compiler error: program cc1obj got fatal signal 11
I found three memory related solutions so far:
-> turn off Optimization (-Ox) ...or...
-> turn off Debug (-g) ...or...
-> limit stacksize 10000 (before make)

foo.h:247: macro `index' used with just one arg
#undef index (index is already defined in string.h!)

foo.c:1234: bad macro argument list
-> add --traditional-cpp to CFLAGS

ld: Undefined symbols: _strdup
-> gcc -o foo bar.o -lstdc++ ...or...
-> gcc -o foo bar.o -liberty

ld: Undefined symbols: _mkfifo
-> mknod(path, S_IFIFO|mode, 0);

undefined type, found `pid_t'
typedef int pid_t;

POSIX (not recommend):
-> gcc -posix ... -lposix


last update: 10.12.2003