Erlang Mailing Lists

Author Message

<  Erlang bugs mailing list  ~  Erlang port? R10B-3 on OpenBSD 3.7

geoffw at cybertribe.com
Posted: Thu Mar 10, 2005 11:18 pm Reply with quote
Guest
I noticed that the Erlan port is hopelessly out of date for OpenBSD.
I've been using erlang on OpenBSD and I have a working installation
of Erlang R10B-3 on OpenBSD 3.7 (beta) March 10, 2005.

I'd like to volunteer to turn this into a port that can go into the
ports tree.



geoffw


For starters, here are the notes on how to get the tar ball to compile
and install on 3.7 (beta)...

Erlang R10B-3 port to Open BSD 3.7


1. )/otp_src_R10B-3/lib/os_mon/c_src/memsup.c
is different from the release,


----------------------------------------------------------------
--- memsup.c.old Thu Mar 10 12:03:28 2005
+++ memsup.c Thu Mar 10 12:02:49 2005
_at__at_ -95,7 +95,11 _at__at_
#ifdef BSD4_4
#include <sys/types.h>
#include <sys/sysctl.h>
-#include <vm/vm_param.h>
+#ifdef __OpenBSD__
+#include <sys/vmmeter.h>
+#else
+#include <vm/vm_param.h>
+#endif
#ifdef __FreeBSD__
#include <sys/vmmeter.h>
#endif
-------------------------------------------------------------------

2. ) ./configure --disable-jinterface
No jvm under OpenBSD in native mode.


3. ) /otp_src_R10B-3/erts/etc/unix/format_man_pages
is BROKEN for OpenBSD, it tests for BSDness by searching for vmunix
THERE ISN'T a vmunix file on OpenBSD so this test will fail!
I have added a TARGET for OpenBSD.

-----------------------------------------------------------------------

--- format_man_pages.orig Thu Mar 10 13:57:56 2005
+++ format_man_pages Thu Mar 10 14:30:59 2005
_at__at_ -29,6 +29,8 _at__at_
TARGET=sunos5 ;;
Linux:*)
TARGET=linux ;;
+ OpenBSD:3.*)
+ TARGET=openbsd ;;
*)
TARGET="" ;;
esac
_at__at_ -106,6 +108,8 _at__at_
else
if [ -f "/vmunix" ]; then
CATMAN=/usr/etc/catman
+ elif [ "$TARGET" = "openbsd" ]; then
+ CATMAN=/usr/sbin/catman
else
CATMAN=/usr/bin/catman
fi
--------------------------------------------------------------------------------


Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum