Menu

#36 OpenBSD support + NetBSD memory leak fix

open
nobody
None
5
2005-10-20
2005-10-20
No

This is a patch to 0.18 to add support for OpenBSD
(3.7, may not work with earlier versions) as well as to
fix a memory leak in the swap routine of the NetBSD
code on which this is based.

Discussion

  • Claudio Leite

    Claudio Leite - 2005-10-20

    0.18 OpenBSD patch

     
  • Claudio Leite

    Claudio Leite - 2005-10-20

    Logged In: YES
    user_id=44354

    Oh, I tried to patch against the CVS version but there
    appear to be linuxisms in net.c that weren't there before.

     
  • Nobody/Anonymous

    Logged In: NO

    Patch is not working under OpenBSD 3.8.
    First configure throws out, that system is not supported,
    after adding:
    OpenBSD*)
    WANT_KVM=yes
    WANT_OSSLIB=yes
    ;;
    and
    if test x$uname = xOpenBSD; then
    BUILD_OPENBSD_TRUE=
    BUILD_OPENBSD_FALSE='#'
    else
    BUILD_OPENBSD_TRUE='#'
    BUILD_OPENBSD_FALSE=
    fi
    configure works fine.
    But (there's always some but ;-)) 'make' is failing becouse
    of 'undefined references' in torsmo.c.

     
  • Claudio Leite

    Claudio Leite - 2005-11-10

    Logged In: YES
    user_id=44354

    The patch only includes the patches to Makefile.am and configure.in, so
    you have to run aclocal, automake and autoconf before running
    configure. Also, you'll have to manually set CFLAGS and CPPFLAGS to
    include /usr/X11R6/include, because otherwise configure will not find the
    X headers needed for double-buffer. I'm not entirely sure why - I don't
    particularly know how to use the configure tools.

    CFLAGS="-I/usr/X11R6/include -O2" CPPFLAGS="-I/usr/X11R6/
    include" ./configure

     

Log in to post a comment.