OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
How to build a non-coredumping aMule 2.1.3

From: Paul Stoeber (x0001x.de1.cc)
Date: Sat Sep 02 2006 - 00:28:07 CDT


This build procedure works for me under an OpenBSD 3.9 user account.

Unpack
SHA1 (wxGTK-2.6.3.tar.bz2) = 7c2dfe27a56aa99b4ea557a436bf84a13a579a9d
then
 ./configure --prefix=$HOME/local
 gmake
 gmake install

Unpack
SHA1 (aMule-2.1.3.tar.bz2) = dd47deb38e7a5b823550b85150f5a814c597b273
then apply the patch below, then
 ./configure --prefix=$HOME/local --with-wx-config=$HOME/local/bin/wx-config
 gmake
 gmake install
 LD_LIBRARY_PATH=$HOME/local/lib $HOME/local/bin/amule

diff -u -r aMule-2.1.3-orig/src/FileLock.h aMule-2.1.3/src/FileLock.h
--- aMule-2.1.3-orig/src/FileLock.h Fri Feb 3 13:25:17 2006
+++ aMule-2.1.3/src/FileLock.h Sat Sep 2 02:06:33 2006
-26,6 +26,7
 #ifndef FILELOCK_H
 #define FILELOCK_H
 
+#include <unistd.h>
 #include <string>
 #include <sys/types.h>
 #include <sys/stat.h>
diff -u -r aMule-2.1.3-orig/src/MemFile.h aMule-2.1.3/src/MemFile.h
--- aMule-2.1.3-orig/src/MemFile.h Sun Jan 1 05:17:25 2006
+++ aMule-2.1.3/src/MemFile.h Sat Sep 2 02:49:55 2006
-146,6 +146,8
         bool m_delete;
         //! The actual buffer.
         byte* m_buffer;
+
+ byte dummy[16]; // sidestep a g++ bug
 };
 
 #endif // MEMFILE_H