Bug 51497

Summary: Can't compile ports/mail/postfix, with sasl enabled
Product: Ports & Packages Reporter: Xavier HUMBERT <xavier>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: xavier
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Xavier HUMBERT 2003-04-28 15:10:10 UTC
postfix won't build with sasl enabled.
The problem is there is a stale dependancy to libdes in Makefiles and 
script/configure.postfix. Here is the relevant part of the output


=====================================================
gcc -Wmissing-prototypes -Wformat -DUSE_SASL_AUTH -I/usr/local/include -I/usr/local/include/sasl1 -DHAS_MYSQL -I/usr/local/include/mysql -DHAS_SSL -I/usr/include -I/usr/local/include/db3 -DHAS_MYSQL -I/usr/local/include/mysql -DHAS_PCRE -I/usr/local/include  -O -pipe -I. -I../../include -DFREEBSD5 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o  master_spawn.o master_service.o master_status.o master_listen.o  master_vars.o master_wakeup.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/local/lib -lsasl -lpam -lcrypt /usr/local/lib/mysql/libmysqlclient.a -lm -lz -lkrb -lcrypto -ldes -lcom_err -L/usr/lib -lssl -lcrypto -L/usr/local/lib -ldb3 /usr/local/lib/mysql/libmysqlclient.a -lm -lz -L/usr/local/lib -lpcre
/usr/bin/ld: cannot find -ldes
*** Error code 1

Stop in /usr/ports/mail/postfix/work/postfix-2.0.7/src/master.
*** Error code 1
=====================================================



If I try to remove ldes (actually, libdes claimed to be merged with 
libcrypto) in Makefile, Makefile.inc, and script/configure.postfix, 
the error changes :

=====================================================
gcc -Wmissing-prototypes -Wformat -DUSE_SASL_AUTH -I/usr/local/include -I/usr/local/include/sasl1 -DHAS_MYSQL -I/usr/local/include/mysql -DHAS_SSL -I/usr/include -I/usr/local/include/db3 -DHAS_MYSQL -I/usr/local/include/mysql -DHAS_PCRE -I/usr/local/include  -O -pipe -I. -I../../include -DFREEBSD5 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o  master_spawn.o master_service.o master_status.o master_listen.o  master_vars.o master_wakeup.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/local/lib -lsasl -lpam -lcrypt /usr/local/lib/mysql/libmysqlclient.a -lm -lz -lkrb -lcrypto -lcom_err -L/usr/lib -lssl -lcrypto -L/usr/local/lib -ldb3 /usr/local/lib/mysql/libmysqlclient.a -lm -lz -L/usr/local/lib -lpcre
/usr/lib/libkrb.so: undefined reference to `des_pcbc_encrypt'
/usr/lib/libkrb.so: undefined reference to `des_set_odd_parity'
/usr/lib/libkrb.so: undefined reference to `des_key_sched'
/usr/lib/libkrb.so: undefined reference to `des_read_pw_string'
/usr/lib/libkrb.so: undefined reference to `des_set_key'
/usr/lib/libkrb.so: undefined reference to `des_cbc_cksum'
/usr/lib/libkrb.so: undefined reference to `des_quad_cksum'
/usr/lib/libkrb.so: undefined reference to `des_string_to_key'
*** Error code 1
=====================================================

Fix: 

Still trying ...

Best regards,

Xav

-- 
Xavier HUMBERT  -  Systemes et Reseaux     |     labo-info@injep.fr
INJEP                                      |     humbert@injep.fr
How-To-Repeat:         cd /usr/ports/mail/postfix
        make clean install (check flavours SASL, TLS, DB3, MySQL)
Comment 1 Mathieu Arnold 2003-04-28 15:26:22 UTC
Looks like you've made world without kerberos and you left your old
kerberos librairies lying around.

-- 
Mathieu Arnold
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2003-05-09 12:06:08 UTC
State Changed
From-To: open->feedback

Did you try removing your kerveros libraries and rebuilding world? 


Comment 3 Tilman Keskinoz freebsd_committer freebsd_triage 2003-05-09 12:06:08 UTC
Class Changed
From-To: maintainer-update->sw-bug

Accurate class
Comment 4 Tilman Keskinoz freebsd_committer freebsd_triage 2003-05-11 23:49:45 UTC
State Changed
From-To: feedback->closed

Orginator solved the problem by removing stale files.