Home > Activities > Qmail amd64

Qmail amd64


Sempat frustasi juga pa lagi install qmail 1.0.3 pada mesin freebsd 8.2  x64, di /var/log/message kluar error terus seperti di bawah ini.

Apr 20 11:52:09 mx kernel: pid 71944 (qmail-lspawn), uid 0: exited on signal 11 (core dumped)
Apr 20 11:52:10 mx kernel: pid 72010 (qmail-rspawn), uid 86: exited on signal 11

padahal sebelumnya pas lagi install di freebsd x86 semua berjalan normal. Akhirnya berburu sana sini ketemu juga obatnya. ternyata masalahnya pada file alloc.c di main source nya.

patch berikut ini terbukti bisa menyembuhkan penyakit qmail tersebut.

##########patch ###############

— alloc.c.orig    1998-06-15 12:53:16.000000000 +0200
+++ alloc.c    2009-04-20 11:48:35.687644205 +0200
@@ -1,7 +1,6 @@
+#include <stdlib.h>
#include “alloc.h”
#include “error.h”
-extern char *malloc();
-extern void free();

#define ALIGNMENT 16 /* XXX: assuming that this alignment is enough */
#define SPACE 4096 /* must be multiple of ALIGNMENT */
— spawn.c.orig    1998-06-15 12:53:16.000000000 +0200
+++ spawn.c    2009-04-20 11:48:35.688644053 +0200
@@ -1,5 +1,6 @@
#include <sys/types.h>
#include <sys/stat.h>
+#include “alloc.h”
#include “sig.h”
#include “wait.h”
#include “substdio.h”
— cdbmake_add.c.orig    2009-04-20 12:05:15.832028021 +0200
+++ cdbmake_add.c    2009-04-20 11:51:48.310211878 +0200
@@ -1,4 +1,5 @@
#include “cdbmake.h”
+#include “alloc.h”

void cdbmake_init(cdbm)
struct cdbmake *cdbm;

############################

akhirnya setelah saya patch menggunkan patch di atas semua berjalan normal.

[Rayn@Work]

Advertisements
Categories: Activities
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: