Help - Search - Members - Calendar
Full Version: Postfix Problem
Linuxhelp > Support > Technical Support
Robert83
Hi,

I'm in the middle of installing stuff.... it's going nicely , up until this point

when I'm done with almost everything and it's time to install postfix like this :

CODE
make makefiles 'CCARGS=-DHAS_MYSQL
-I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH
-I/usr/local/include/sasl -I/usr/local/bdb/include'
'AUXLIBS=-L/usr/local/mysql/lib/mysql
-lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -L/usr/local/bdb/lib'


I get this error :

make -f Makefile.in MAKELEVEL= Makefiles
set -e; for i in src/util src/global src/dns src/master src/postfix src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/lmtp src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/qmqpd src/spawn src/flush src/verify src/virtual src/proxymap; do
(set -e; echo "[$i]"; cd $i; rm -f Makefile;
make -f Makefile.in Makefile MAKELEVEL=) || exit 1;
done;
[src/util]
(set -e; echo "# DO NOT EDIT"; /bin/sh ../../makedefs && cat Makefile.in) >Makefile
No <db.h> include file found.
Install the appropriate db*-devel package first.
See the RELEASE_NOTES file for more information.
make: *** [Makefile] Error 1
make: *** [Makefiles] Error 1
make: *** [makefiles] Error 2
[root@mailserver postfix-2.1.1]#

Now I understand that I need the db*-devel package first, but I installed db from source version 4.0.14 ,


the question is I need to install db 4.0.14 devel from source as well?
that is also available at the Berkeley homepage?

Sincerely
Robert B
hughesjr
If you installed db from source, make sure the location that the include files were installed are in the file:

/etc/ld.so.conf

I would make sure the following (at least) are there:

/lib
/usr/lib
/usr/local/lib

If the db include files are somewhere else, make sure to put that in /etc/ld.so.conf as well ... then run the command:

ldconfig
Robert83
Hi,

well I added everything into that ld.so.conf and it's still the same problem,

I even added /usr/local/bdb/include
and ther is that db.h ... what is wrong here?


I try to do the make makefile with the following :

make makefiles 'CCARGS=-DHAS_MYSQL
-I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH
-I/usr/local/include/sasl -I/usr/local/bdb/include'
'AUXLIBS=-L/usr/local/mysql/lib/mysql
-lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -L/usr/local/bdb/lib'

Please help me with this one

I've checked my ld.so.conf file and the paths are there, so it shold work, but it's not...what could be the problem, that db.h is there but the computer says it's not there....


Sincerely
Robert B
Robert83
Hi,

managed to solve the problem

I just needed to correct the paths in makedefs under the postfix-2.1.1 source dir...

it now returns the followig results without errors (note : I corrected all the paths that are libdb , db ...and related to db]

CODE
[root@mailserver postfix-2.1.1]# make makefiles 'CCARGS=-DHAS_MYSQL
-I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH
-I/usr/local/include/sasl -I/usr/local/bdb/include' 'AUXLIBS=-L/usr/local/mysql/lib/mysql
-lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -L/usr/local/bdb/lib'
make -f Makefile.in MAKELEVEL= Makefiles
set -e; for i in src/util src/global src/dns src/master src/postfix src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/lmtp src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/qmqpd src/spawn src/flush src/verify src/virtual src/proxymap; do
(set -e; echo "[$i]"; cd $i; rm -f Makefile;
make -f Makefile.in Makefile MAKELEVEL=) || exit 1;
done;
[src/util]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/global]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/dns]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/master]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/postfix]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/smtpstone]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/sendmail]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/error]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/pickup]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/cleanup]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/smtpd]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/local]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/lmtp]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/trivial-rewrite]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/qmgr]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/oqmgr]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/smtp]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/bounce]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/pipe]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/showq]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/postalias]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/postcat]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/postconf]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/postdrop]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/postkick]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/postlock]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/postlog]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/postmap]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/postqueue]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/postsuper]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/qmqpd]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
[src/spawn]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs; cat Makefile.in) >Makefile
[src/proxymap]
(set -e; echo "# DO NOT EDIT";  /bin/sh ../../makedefs && cat Makefile.in) >Makefile
rm -f Makefile; (set -e; /bin/sh makedefs && cat Makefile.in) >Makefile
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
set +e; if cmp makedefs.tmp conf/makedefs.out; then rm makedefs.tmp;
else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>/dev/null


I hope that this is ok , I will continue the installation.

Sincerely
Robert B
Robert83
Hi,

as usualy here I am with a new problem smile.gif (big suprise)

/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [master] Error 1
make: *** [update] Error 1
[root@mailserver postfix-2.1.1]#

cannot find -lz

what can I do with this problem ?

please help

Sincerely
Robert B
Robert83
Hi,

I managed to get trough that problem
zlib
zlib-devel

then this error pops up

/usr/local/bdb/lib/libdb.so: undefined reference to `pthread_condattr_setpshared'
/usr/local/bdb/lib/libdb.so: undefined reference to `pthread_mutexattr_destroy'
/usr/local/bdb/lib/libdb.so: undefined reference to `pthread_mutexattr_setpshared'
/usr/local/bdb/lib/libdb.so: undefined reference to `pthread_mutexattr_init'
/usr/local/bdb/lib/libdb.so: undefined reference to `pthread_mutex_trylock'

what is wrong again?

sad.gif

Sincerely
Robert B
Robert83
Hi,

just managed to do it ...yehaaaaaaaaaaa smile.gif

-ldpthread

and it is now working.

Sincerely
Robert b
hughesjr
good job!!! wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.