SysUtils.c compile problem on Mac OSX 10.3 with llvm-1.4

I am currently running on a Mac OSX 10.3.8 and trying to
compile llvm-1.4 on my local machine for Prof. Adve's class.

I am using Apple's provided gcc 3.3 as my compiler.

I ran into this compile error:
SysUtils.c: In function `executeProgram':
SysUtils.c:119: error: `RTLD_NEXT' undeclared (first use in
this function)
SysUtils.c:119: error: (Each undeclared identifier is reported
only once
SysUtils.c:119: error: for each function it appears in.)
make[2]: ***
[/Users/senatorned/llvm/tools/llee/Debug/SysUtils.lo] Error 1
make[1]: *** [llee/.makeall] Error 2
make: *** [all] Error 1

I was wondering if there was an obvious issue here.



llee has been removed from LLVM CVS. If you remove its entry from your llvm/tools/Makefile you should be ok.


Furthermore, the functionality of "executeProgram" has been replaced by the sys::Program::executeAndWait function (include/llvm/System/Program.h and lib/System/Unix/ This function correctly negotiates the platform differences wrt RTLD_NEXT and similar #defines from the operating system include files.


Chris Lattner wrote: