Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-06-2003, 02:40 AM   #1
LQ Newbie
Registered: Oct 2003
Location: mexico city
Distribution: redhat 9
Posts: 1

Rep: Reputation: 0
Angry problem with postfix and db.4.1.25

Hello everybody, I am trying to compile postfix-2.0.15 on a RedHat9 system. I am using BerkleyDB.4.1. First of all I removed sendmail

Then I Installed db4.1
Tar -zxvf db-4.1.25.tar.gz
Cd db-4.1.25
Cd dist
make install
Then I tried to install postfix (according to the LFS guide)
groupadd postfix &&
groupadd postdrop &&
groupadd -g 65534 nogroup &&
useradd -c postfix -d /dev/null -g postfix -s /bin/false postfix &&
useradd -c nobody -d /home -g nogroup -s /bin/bash -u 65534 nobody &&
chown postfixostfix /var/mail

when I type
make &&
make install

I got the next message:

../../lib/libutil.a -L/usr/local/BerkeleyDB.4.1/lib -ldb -lcrypt -ldb
-lnsl -lresolv
/usr/local/BerkeleyDB.4.1/lib/ undefined reference to
/usr/local/BerkeleyDB.4.1/lib/ undefined reference to
/usr/local/BerkeleyDB.4.1/lib/ undefined reference to
/usr/local/BerkeleyDB.4.1/lib/ undefined reference to
/usr/local/BerkeleyDB.4.1/lib/ undefined reference to
collect2: ld returned 1 exit status
make: *** [master] Error 1
make: *** [update] Error 1

To make the makefiles I use the example from the DB_README

$ make makefiles CCARGS="-DHAS_DB -I/usr/local/BerkeleyDB.4.1/include" /
AUXLIBS="-L/usr/local/BerkeleyDB.4.1/lib -ldb"

And then run make.

I see several errors on the make such as:

gcc -Wmissing-prototypes -Wformat -DHAS_DB
-I/usr/local/BerkeleyDB.4.1/include -g -O -I. -I../../include -DLINUX2
-c mail_flow.c
In file included from mail_flow.c:46:
../../include/sys_defs.h:492:1: warning: "HAS_DB" redefined
mail_flow.c:1:1: warning: this is the location of the previous

And a failure at the end of the compile with

$make makefiles AUXLIBS="-L/usr/local/BerkeleyDB.4.1/lib -ldb

This ran through the make without the "HAS_DB" errors but still failed
with the same error as before at the end of the make.

Can anybody help?
thanks in advance...
Old 10-06-2003, 11:02 AM   #2
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
Is there any specific reason why you are installing from source? I would suggest installing from the RPM. Get it from


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Problem wfernley Linux - Newbie 3 08-24-2005 10:22 AM
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 09:12 PM
postfix problem meblost Linux - Software 4 08-31-2004 10:51 PM
postfix problem zzero Linux - Software 13 03-20-2004 12:39 AM
Postfix Problem JimKyle Linux - Networking 5 01-19-2002 03:32 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration