Skip to content

Instantly share code, notes, and snippets.

@dizzyd
Last active December 16, 2015 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dizzyd/5511558 to your computer and use it in GitHub Desktop.
Save dizzyd/5511558 to your computer and use it in GitHub Desktop.
Building Erlang R16B on SmartOS
diff -u otp_src_R16B.orig/lib/os_mon/c_src/ferrule.c otp_src_R16B/lib/os_mon/c_src/ferrule.c
--- otp_src_R16B.orig/lib/os_mon/c_src/ferrule.c 2013-02-25 19:21:31.000000000 +0000
+++ otp_src_R16B/lib/os_mon/c_src/ferrule.c 2013-05-03 17:15:04.154229600 +0000
@@ -50,7 +50,7 @@
#define FDS_STDIN 0
#define FDS_PIPE 1
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
/* usage: ferrule ownpath */
{
int i, pipe_fd;
diff -u otp_src_R16B.orig/lib/os_mon/c_src/mod_syslog.c otp_src_R16B/lib/os_mon/c_src/mod_syslog.c
--- otp_src_R16B.orig/lib/os_mon/c_src/mod_syslog.c 2013-02-25 19:21:31.000000000 +0000
+++ otp_src_R16B/lib/os_mon/c_src/mod_syslog.c 2013-05-03 17:16:54.750854940 +0000
@@ -47,7 +47,7 @@
#define TRUE 1
#define WAIT 1
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
/* usage: mod_syslog mode ownpath syslogconf */
{
int syslogd_pid, n_lines_copied=0;
@@ -128,6 +128,7 @@
make_exit(PIPE_NOT_FOUND);
else */
make_exit(OK);
+ return 0;
}
void make_exit(int exit_code)
tar -xzf otp_src_R16B.tar.gz
cd otp_src_R16B/
vi lib/os_mon/c_src/ferrule.c
vi lib/os_mon/c_src/mod_syslog.c
./configure --without-javac --prefix=/opt/local/erlang-r16b --with-dynamic-trace=dtrace --enable-m64-build --disable-hipe
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment