又到季度服务器例行升级的时间。三台机器在升级当中出现问题
1.升级sendmail-8.14.3出现了 编译错误,提示:
cc -o sendmail main.o alias.o arpadate.o bf.o collect.o conf.o control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o headers.o macro.o map.o mci.o milter.o mime.o parseaddr.o queue.o ratectrl.o readcf.o recipient.o sasl.o savemail.o sfsasl.o shmticklib.o sm_resolve.o srvrsmtp.o stab.o stats.o sysexits.o timers.o tls.o trace.o udb.o usersmtp.o util.o version.o /usr/local/src/sendmail-8.14.3/obj.Linux.2.6.9-42.0.3.ELsmp.x86_64/libsmutil/libsmutil.a /usr/local/src/sendmail-8.14.3/obj.Linux.2.6.9-42.0.3.ELsmp.x86_64/libsm/libsm.a -ldl
domain.o(.text+0x16b): In function `getmxrr':
: undefined reference to `__res_search'
domain.o(.text+0x1fc): In function `getmxrr':
: undefined reference to `__dn_skipname'
domain.o(.text+0x4e0): In function `getmxrr':
: undefined reference to `__dn_expand'
domain.o(.text+0x58c): In function `getmxrr':
: undefined reference to `__dn_expand'
domain.o(.text+0x697): In function `getmxrr':
sm_resolve.o(.text+0x7f4): In function `dns_lookup_int':
: undefined reference to `__dn_expand'
collect2: ld returned 1 exit status
make[1]: *** [sendmail] Error 1
make[1]: Leaving directory `/usr/local/src/sendmail-8.14.3/obj.Linux.2.6.9-42.0.3.ELsmp.x86_64/sendmail'
Making all in:
/usr/local/src/sendmail-8.14.3/editmap
解决方法:sendmail没有找到解析,需要配置site.conf.m4文件定义解析库。
另外在解决这个问题只好发现既然没有自动编译 newdb 导致启动的时候access.db aliase.db错误,只好再手动指定db-4.3.25的目录,并加上-lpthread.