On Sat, 5 Jul 2008, 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?
Thank you to anyone who might be able to shed some light
on this.
====================================
Script started on Sat Jul 5 21:24:26 2008
$ startx
-snipped
waiting for X server to shut down FreeFontPath: FPE
"/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.
$ exit
Script done on Sat Jul 5 21:24:41 2008
========================================
Here's the modified makefile
Note 1: I realize there's extra
stuff in the makefile, this is because initially I was
building with clx/new-clx instead of clx/mit-clx and was getting a whole
bunch of errors hence I tried to find
another X port and added some of those LIB_DEPENDS,
WANTLIBS, and USE_X11
NOTE 2: I used the clisp port for netbsd as a reference for editting the
Makefile (hence why there's glib-2.0, X11, and
Xau in the WANTLIB) [2]
-------------------------------------
# $OpenBSD: Makefile,v 1.29 2007/11/25 22:16:21 jasper Exp $
ONLY_FOR_ARCHS= i386
COMMENT= ANSI Common Lisp compiler
DISTNAME= clisp-2.43
CATEGORIES= lang
HOMEPAGE= http://clisp.cons.org/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
LIB_DEPENDS= sigsegv::devel/libsigsegv \
gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0.>=1200::x11/gtk+2
WANTLIB= c m X11 Xau glib-2.0 ncurses readline
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clisp/}
EXTRACT_SUFX= .tar.bz2
USE_LIBTOOL= Yes
USE_X11= Yes
CONFIGURE_STYLE=gnu old
CONFIGURE_ARGS= --with-gmalloc \
--with-module=clx/mit-clx \
--with-module=pcre \
--with-module=rawsock \
--srcdir=${WRKSRC} ${WRKBUILD}
SEPARATE_BUILD= simple
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/ffcall/autoconf
USE_GMAKE= Yes
MAKE_FLAGS= INSTALL='install -c' \
INSTALL_PROGRAM='install -c -s -m 555' \
INSTALL_DATA='install -c -m 644'
post-configure:
@cd ${WRKBUILD} && ./makemake \
--fsstnd=openbsd \
--prefix=${PREFIX} \
--with-dynamic-ffi \
--with-gmalloc \
--with-module=clx/mit-clx \
--with-module=pcre \
--with-module=rawsock \
--mandir=${PREFIX}/man \
--vimdir=${PREFIX}/share/doc/clisp \
--docdir=${PREFIX}/share/doc/clisp >Makefile && \
make config.lisp
.include <bsd.port.mk>
#From ports/x11/extace
#CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
#CONFIGURE_ARGS= ${CONFIGURE_SHARED}
--------------------------------------------
1. http://stumpwm.antidesktop.net/wiki/SetUp
2. http://pkgsrc.se/lang/clisp
3. http://archives.neohapsis.com/archives/openbsd/2007-06/1842.html
Just to let anyone else who's interested, know, I got this to work :)
I reexamined the Makefile for stumpwm and clisp in pkgsrc [1][2]
and noticed that they used gettext '--with-gettext' in their makefile.
I updated the Makefile for clisp to account for this, hence the resulting
Makefile looks like the following:
NOTE: There is still extra stuff in the Makefile that probably isn't needed
(like some of the LIBDEPENDS) but I just wanted to get this working - which
it finally does after working on this most of the day. :)
/usr/ports/lang/clisp/Makefile for OpenBSD 4.3
---------------------------
# $OpenBSD: Makefile,v 1.29 2007/11/25 22:16:21 jasper Exp $
ONLY_FOR_ARCHS= i386
COMMENT= ANSI Common Lisp compiler
DISTNAME= clisp-2.43
CATEGORIES= lang
HOMEPAGE= http://clisp.cons.org/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
LIB_DEPENDS= sigsegv::devel/libsigsegv \
gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0.>=1200::x11/gtk+2
WANTLIB= c m X11 Xau glib-2.0 iconv ncurses readline
MODULES= devel/gettext
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clisp/}
EXTRACT_SUFX= .tar.bz2
USE_LIBTOOL= Yes
USE_X11= Yes
CONFIGURE_STYLE=gnu old
CONFIGURE_ARGS= --with-gmalloc \
--with-gettext \
--with-module=clx/mit-clx \
--with-module=pcre \
--with-module=rawsock \
--srcdir=${WRKSRC} ${WRKBUILD}
SEPARATE_BUILD= simple
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/ffcall/autoconf
USE_GMAKE= Yes
MAKE_FLAGS= INSTALL='install -c' \
INSTALL_PROGRAM='install -c -s -m 555' \
INSTALL_DATA='install -c -m 644'
post-configure:
@cd ${WRKBUILD} && ./makemake \
--fsstnd=openbsd \
--prefix=${PREFIX} \
--with-dynamic-ffi \
--with-gettext \
--with-gmalloc \
--with-module=clx/mit-clx \
--with-module=pcre \
--with-module=rawsock \
--mandir=${PREFIX}/man \
--vimdir=${PREFIX}/share/doc/clisp \
--docdir=${PREFIX}/share/doc/clisp >Makefile && \
make config.lisp
.include <bsd.port.mk>
#From ports/x11/extace
#CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
#CONFIGURE_ARGS= ${CONFIGURE_SHARED}
---------------------------
In case anyone's interested I used the stumpwm-0.9.3 file off of their
website and not the version from git. The good thing
about that version it that it includes cl-ppcre - the version from git
doesn't.
Here's a jpeg screenshot of stumpwm running on OpenBSD 4.3
RELEASE [3]
P.S. Eventually stumpwm probably should be built on
a cleaner implementation of common lisp since
according to Marc Espie clisp isn't very clean
(and definitely not very portable).
[1] http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/lang/clisp/Makefile
[2] http://cvsweb.netbsd.se/cgi-bin/bsdweb.cgi/wip/stumpwm/Makefile?rev=1.6
[3] http://pegasus.cc.ucf.edu/~da465415/snapshot.jpg