LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-06-2003, 03:40 AM   #1
cron19
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
./configure
make
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/libdb.so: undefined reference to
`pthread_condattr_setpshared'
/usr/local/BerkeleyDB.4.1/lib/libdb.so: undefined reference to
`pthread_mutexattr_destroy'
/usr/local/BerkeleyDB.4.1/lib/libdb.so: undefined reference to
`pthread_mutexattr_setpshared'
/usr/local/BerkeleyDB.4.1/lib/libdb.so: undefined reference to
`pthread_mutexattr_init'
/usr/local/BerkeleyDB.4.1/lib/libdb.so: undefined reference to
`pthread_mutex_trylock'
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
definition

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, 12:02 PM   #2
pnh73
Member
 
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 http://postfix.WL0.org/ftp/RPMS-rh9-...1.rh9.i386.rpm
 
  


Reply


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 11:22 AM
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 10:12 PM
postfix problem meblost Linux - Software 4 08-31-2004 11:51 PM
postfix problem zzero Linux - Software 13 03-20-2004 01:39 AM
Postfix Problem JimKyle Linux - Networking 5 01-19-2002 04:32 PM


All times are GMT -5. The time now is 08:27 PM.

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