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.


Here's the script output of startx:
====================================
Script started on Sat Jul  5 21:24:26 2008
$ startx
xauth:  creating new authority file /home/scifi/.serverauth.7065
xauth: (stdin):2:  unknown command "e36567d734aeef03bf81045c4c68dfe6"
X.Org X Server 1.4.0.90
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: OpenBSD 4.3 i386 Current Operating System: OpenBSD Gaia.appleseed.org 4.3 GENERIC#698 i386
Build Date: 07 March 2008  07:40:46PM

        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Jul  5 21:24:28 2008
(==) Using config file: "/etc/X11/xorg.conf"
(EE) Failed to load module "dri" (module does not exist, 0)
(II) Module "ddc" already built-in
(II) Module "ramdac" already built-in
/home/david/bin/stumpwm: operating system error during load of initialization 
file `/home/david/bin/stumpwm'
[spvw_memfile.d:1685] errno = EFAULT: Bad address.

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

Reply via email to