|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Compiling 101 for Dummies
From: /dev/rob0 (rob0
gmx.co.uk)
Date: Fri Jul 21 2006 - 22:49:23 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Friday 21 July 2006 22:27, Rick Zeman wrote:
> > On Fri, Jul 21, 2006 at 10:47:00PM -0400, Rick Zeman wrote:
> > > The compile says it can't find db.in dict_db.c, but I'd
> > > previously changed the makedefs to where db.h is on the Mandrake
> > > 9.2 system which is /usr/include/db1/db.h which allowed the
> > > compile to start.
make(1) (or gcc?) still said it failed to find db.h.
> On 7/21/06, Victor Duchovni <Victor.Duchovni
morganstanley.com> wrote:
> > "make makedefs ..." is not cumulative, each run blows away any
> > settings from previous runs. You need to combine the options for
> > all the features
> >
> > you want:
> > > I can't figure out what I'm doing wrong here. :-(
> > >
> > > # make makefiles CCARGS="-DUSE_TLS" AUXLIBS="-lssl -lcrypto"
> >
> > # make makefiles CCARGS="-DUSE_TLS ... db related CCARGS ..." \
> > AUXLIBS="-lssl -lcrypto ... db related AUXLIBS ..."
>
> I don't quite follow you, Victor. I only ran it once so overwriting
> wasn't an issue. I , as the test, was just going for a stripped
> postfix plus TLS per http://www.postfix.org/TLS_README.html .
You also need Berkeley DB as per "DB_README.html". You do not have the
CCARGS and AUXLIBS arguments you need to help make(1) find the Berkeley
DB library.
Bottom line is that compiling things is not so easy on the "easy"
GNU/Linux distributions. :) Also, Mandrake 9.2 is getting a bit
outdated. I have a sneaking suspicion that once your DB problem is
fixed, another one will pop up.
On my systems (Slackware Linux, just about every release from 8.0
onward) I don't add anything to "make makefiles" for DB support. Here's
what I do at one of them, much simpler than Viktor's example :) :
make makefiles CCARGS="-DUSE_SASL_AUTH \
-DDEF_SASL_SERVER_TYPE=\"dovecot\" -DHAS_PGSQL -DUSE_TLS" \
AUXLIBS="-lpq -lssl -lcrypto" && time make -j3
With libraries in non-default paths, more is needed in your "make
makefiles" command. I suggest you use the "right" way and not make
changes in the source files. :)
--
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]