[MaraDNS list] How to compile MaraDNS 1 in Windows

Sam Trenholme strenholme.usenet at gmail.com
Thu Aug 11 17:59:58 EDT 2011


Because I am getting sponsorship for MaraDNS (thank you very much JFC
Morfin), I am proving this document which details how to compile
MaraDNS 1 for Windows.

The way I compile this program in Windows 7 is with MinGW-3.4.2 and
MSYS-1.0.10, as well as the pthreads library that MaraDNS 1 needs.
These programs are available at the following locations:

ftp://ftp.trolltech.com/misc/ (MinGW 3.4.2)
http://prdownloads.sourceforge.net/mingw/MSYS-1.0.10.exe?download
ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-8-0-release.exe

The order of installation is as follows:

MinGW 3.4.2
MSYS 1.0.10
Pthreads 2.8.0

The first two are simple "I agree", "Next", "I agree", "Install"-type
click-to-install packages. Install MinGW *before* installing MSYS so
the MSYS installer can find MinGW; be sure to put MinGW in C:\ so the
MSYS installer can find it.

Once MinGW and MSYS are installed, one can install Pthreads.

- Run the pthreads exe file to install it.  The program will create
three folders; the only one we care about is Pre-built.2

- Put lib\libpthreadGC2.a and lib\pthreadGC2.dll in mingw\lib (where
mingw is the location mingw is installed on the computer, usually
c:\mingw)

- Put the contents of Pre-built.2\include in mingw\include

Once this is done, it should be possible to download and compile MaraDNS 1:

1. Download the latest MaraDNS 1.4.XX version of MaraDNS.
2. Put MaraDNS-1.4.XX.tar.bz2 in your MSYS home directory (which is
something like C:\MSYS\1.0\Home\User name\)
3. Enter MSYS by double-clicking on the blue "M" icon which should
be on your desktop.
3. Then enter these UNIX commands:

tar xvjf MaraDNS-1.4.XX.tar.bz2
cd MaraDNS-1.4.XX/
./configure; make

At this point you should have a server/maradns.exe and a tools/askmara.exe

If these directions do not work, please let me know.


More information about the list mailing list