Typo
[linux_from_scratch_hints.git] / OLD / exim_3.34_using_db4.0.14.txt
blob31909e97a1b980f0c6ae5570ac771e413a6d9dc3
1 TITLE:          Installing Exim 3.34 using Berkeley DB 4.0.14
2 LFS VERSION:    Tested on LFS-3.1
3 AUTHOR:         Carsten Lenz <lenz@lenz-online.org>
5 SYNOPSIS:       How to install Exim 3.34 using Berkeley DB 4.0.14
7 HINT:           Version 0.1 (03/11/2002)
9 TABLE OF CONTENTS
10 =================
12 1. Introduction
13 2. Files needed
14 3. Install Berkeley DB 4.0.14
15 4. Fixing the "bug" in Exim
16 5. Installing Exim
19 1. Introduction
20 ===============
22 I just reinstalled my server after I had found some strange changes in
23 the filssystem which I could not explain, maybe I had a unwanted
24 visitor on my machine. Due to that I had also to reinstall my
25 mailserver Exim.
26 The installation of Exim was made how explained in the Exim hint
27 (http://hints.linuxfromscratch.org/hints/exim.txt) but I had several
28 problems. It began with installing the Berkeley DB.
31 2. Files needed
32 ===============
34 Berkeley DB 4.0.14:   http://www.sleepycat.com
35 Exim 3.34:            http://www.exim.org
36 Patch
37 for DB 4.0.14:       
38 ftp://ftp.lenz-online.org/pub/exim-db4.0.14.patch.bz2
41 3. Install Berkeley DB 4.0.14
42 =============================
44 To install Berkeley DB on your LFS system exract the tarball and cd
45 into the created db directory:
47 tar xvfz db-4.0.14.tar.gz &&
48 cd db-4.0.14
50 Normally you would now type ../configure and so on, but here it a
51 little different. The Berkeley DB can be compiled for many Operating
52 Systems. To compile for Linux cd into the directory build_unix and
53 from there we start the configure and make procedure:
55 cd build_unix &&
56 ../dist/configure --prefix=/usr &&
57 make install
59 I have taken the same prefix like in the original Exim hint because I
60 don't know why to change it.
62 4. Fixing the "bug" in Exim
63 ===========================
65 Normally you would now extract the Exim sources and install the
66 sources going the "normal" way. The ./configure runs without any
67 problems but during the compilation I got the following error:
69 ,---------------------------------------------------
70 | >>> convert4r3 script built in util directory
72 | gcc -O  -o exim_dbmbuild  exim_dbmbuild.c \
73 |  -lnsl -lcrypt  -ldb
74 | In file included from dbfn.h:107,
75 |                 from exim.h:332,
76 |                 from exim_dbmbuild.c:30:
77 | /usr/include/db.h:634: parse error before `60'
78 | make[1]: *** [exim_dbmbuild] Error 1
79 | make[1]: Leaving directory
80 | `/usr/src/packages/exim-3.34/build-Linux-i386'
81 | make: *** [go] Error 2
82 `---------------------------------------------------
84 The problem is well known in the Exim-users mailinglist and the german
85 mailserver newsgroup.
86 Because my debugging of that error message was not successful I asked
87 in above given newsgroup. I received a hint from Jochen Erwied, which
88 fixes the problem.
90 To apply the exim-db4.0.14 patch extract the exim sources and execute
91 the following lines:
93 tar xvfj exim-3.34.tar.bz2 &&
94 cd exim-3.34 &&
95 patch -Np1 -i ../exim-db4.0.14.patch
98 5. Installing Exim
99 ==================
101 Now you can install Exim how explained in the Exim hint.
104 End.
106 Now that I have written this little hint, Jochen Erwied mailed me that
107 a new Exim version is released witch contains the patch I discriebed
109 ---snip
110 From: Philip Hazel <ph10@cus.cam.ac.uk>
112 I have put Exim 3.35 on the master ftp site:
114 ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim3/exim-3.35.tar.gz
115 ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim3/exim-3.35.tar.bz2
117 42d362e40a21bd7ffc298f92c8bd986a  exim-3.35.tar.gz
118 dd1600dceb36e7b4295958446b209090  exim-3.35.tar.bz2
120 This is purely a maintenance release. It fixes a few small problems
121 that
122 have arisen, including those raised by the bugtraq posting last week.
123 ---snip
127 Whatever, the patchfile is available under above given URL on my ftp
128 server.