On Sat, Jul 05, 2008 at 09:47:11PM -0400, David T Harris wrote: > Greetings all, > I just recently editting the Makefile for /usr/ports/lang/clisp > for the 4.3 version of OpenBSD to allow building of mit-clx. > This worked, however, after I built stumpwm (via source) > and the instructions here [1] stumpwm fails to load. After > I exit X (if I start via startx) then I get the following error > message: > > /home/david/bin/stumpwm: operating system error during load of initialization > file `/home/david/bin/stumpwm' > [spvw_memfile.d:1685] errno = EFAULT: Bad address. > > I did see a the error in the openbsd ports mailing list > archive but it didn't explain anything about that error. [3] > > Any ideas as to what could be causing this error and/or how > to possibly fix this?
Ditch clisp, port it to a reasonable lisp dialect. clisp expects to be able to do mmap at a fixed address to reload a former image. This can't work on OpenBSD. That's one reason why I did a port of embeddable common lisp (ecl). It's probably not as optimized, but it's WAYS cleaner code that doesn't try to play games with the OS *and compiles on most architectures*. Contrast that with clisp, which doesn't really work on i386, is unported anywhere else. I talked to the gnu clisp people. they're aware of the issue, they don't have the man power to do it, and basically, they don't care, since it runs on linux/i386...