Hi, _envrion was not found, when linking libunix.a to a library on Mac OS X: Undefined symbols for architecture x86_64: "_environ", referenced from: _unix_execvpe in libunix.a(execvp.o) _unix_environment in libunix.a(envir.o) I added the following lines: #ifdef __APPLE__ #include #define environ (*_NSGetEnviron()) #else extern char **environ; #endif to the flies: otherlibs/unix/envir.c otherlibs/unix/execvp.c as they it was suggested here: http://trac.macports.org/browser/trunk/dports/lang/hugs98/files/patch-packages-base-include-HsBase.h.diff?rev=81676 patches are attached to this email. best, Keyan