I'm trying to build postfix 2.1.5 from source under SuSE 8.1 but am getting
the following error:
------------
linux:~/install_files/postfix-2.1.5 # make install
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; make
'CC=gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/mysql/include
/mysql -DHAS_PCRE ' update MAKELEVEL=) || exit 1; \
done
[src/util]
for i in argv.h attr.h base64_code.h binhash.h chroot_uid.h clean_env.h
connect.h ctable.h dict.h dict_db.h dict_dbm.h dict_env.h dict_cidr.h
dict_ht.h dict_ni.h dict_nis.h dict_nisplus.h dict_pcre.h dict_regexp.h
dict_static.h dict_tcp.h dict_unix.h dir_forest.h events.h exec_command.h
find_inet.h fsspace.h fullname.h get_domainname.h get_hostname.h hex_quote.h
host_port.h htable.h inet_addr_host.h inet_addr_list.h inet_addr_local.h
inet_util.h iostuff.h line_wrap.h listen.h lstat_as.h mac_expand.h
mac_parse.h make_dirs.h match_list.h match_ops.h msg.h msg_output.h
msg_syslog.h msg_vstream.h mvect.h myflock.h mymalloc.h myrand.h name_mask.h
netstring.h nvtable.h open_as.h open_lock.h percentm.h posix_signals.h
readlline.h ring.h safe.h safe_open.h sane_accept.h sane_fsops.h
sane_socketpair.h sane_time.h scan_dir.h set_eugid.h set_ugid.h sigdelay.h
spawn_command.h split_at.h stat_as.h stringops.h sys_defs.h timed_connect.h
timed_wait.h trigger.h username.h valid_hostname.h vbuf.h vbuf_print.h
vstream.h vstring.h vstring_vstream.h watchdog.h auto_clnt.h attr_clnt.h
sane_connect.h name_code.h; \
do \
cmp -s $i ../../include/$i 2>/dev/null || cp $i ../../include; \
done
cd ../../include; chmod 644 argv.h attr.h base64_code.h binhash.h
chroot_uid.h clean_env.h connect.h ctable.h dict.h dict_db.h dict_dbm.h
dict_env.h dict_cidr.h dict_ht.h dict_ni.h dict_nis.h dict_nisplus.h
dict_pcre.h dict_regexp.h dict_static.h dict_tcp.h dict_unix.h dir_forest.h
events.h exec_command.h find_inet.h fsspace.h fullname.h get_domainname.h
get_hostname.h hex_quote.h host_port.h htable.h inet_addr_host.h
inet_addr_list.h inet_addr_local.h inet_util.h iostuff.h line_wrap.h
listen.h lstat_as.h mac_expand.h mac_parse.h make_dirs.h match_list.h
match_ops.h msg.h msg_output.h msg_syslog.h msg_vstream.h mvect.h myflock.h
mymalloc.h myrand.h name_mask.h netstring.h nvtable.h open_as.h open_lock.h
percentm.h posix_signals.h readlline.h ring.h safe.h safe_open.h
sane_accept.h sane_fsops.h sane_socketpair.h sane_time.h scan_dir.h
set_eugid.h set_ugid.h sigdelay.h spawn_command.h split_at.h stat_as.h
stringops.h sys_defs.h timed_connect.h timed_wait.h trigger.h username.h
valid_hostname.h vbuf.h vbuf_print.h vstream.h vstring.h vstring_vstream.h
watchdog.h auto_clnt.h attr_clnt.h sane_connect.h name_code.h
[src/global]
for i in abounce.h been_here.h bounce.h bounce_log.h canon_addr.h
cfg_parser.h cleanup_user.h clnt_stream.h config.h debug_peer.h
debug_process.h defer.h deliver_completed.h deliver_flock.h deliver_pass.h
deliver_request.h dict_ldap.h dict_mysql.h dict_pgsql.h dict_proxy.h
domain_list.h dot_lockfile.h dot_lockfile_as.h ext_prop.h file_id.h
flush_clnt.h header_opts.h header_token.h hold_message.h input_transp.h
is_header.h lex_822.h log_adhoc.h mail_addr.h mail_addr_crunch.h
mail_addr_find.h mail_addr_map.h mail_conf.h mail_copy.h mail_date.h
mail_dict.h mail_error.h mail_flush.h mail_open_ok.h mail_params.h
mail_proto.h mail_queue.h mail_run.h mail_scan_dir.h mail_stream.h
mail_task.h mail_version.h maps.h mark_corrupt.h match_parent_style.h
mbox_conf.h mbox_open.h mime_state.h mkmap.h mynetworks.h mypwd.h
namadr_list.h off_cvt.h opened.h own_inet_addr.h pipe_command.h post_mail.h
qmgr_user.h qmqp_proto.h quote_821_local.h quote_822_local.h quote_flags.h
rec_streamlf.h rec_type.h recipient_list.h record.h resolve_clnt.h
resolve_local.h rewrite_clnt.h sent.h smtp_stream.h split_addr.h
string_list.h strip_addr.h sys_exits.h timed_ipc.h tok822.h trace.h verify.h
verify_clnt.h verp_sender.h virtual8_maps.h xtext.h; \
do \
cmp -s $i ../../include/$i 2>/dev/null || cp $i ../../include; \
done
cd ../../include; chmod 644 abounce.h been_here.h bounce.h bounce_log.h
canon_addr.h cfg_parser.h cleanup_user.h clnt_stream.h config.h debug_peer.h
debug_process.h defer.h deliver_completed.h deliver_flock.h deliver_pass.h
deliver_request.h dict_ldap.h dict_mysql.h dict_pgsql.h dict_proxy.h
domain_list.h dot_lockfile.h dot_lockfile_as.h ext_prop.h file_id.h
flush_clnt.h header_opts.h header_token.h hold_message.h input_transp.h
is_header.h lex_822.h log_adhoc.h mail_addr.h mail_addr_crunch.h
mail_addr_find.h mail_addr_map.h mail_conf.h mail_copy.h mail_date.h
mail_dict.h mail_error.h mail_flush.h mail_open_ok.h mail_params.h
mail_proto.h mail_queue.h mail_run.h mail_scan_dir.h mail_stream.h
mail_task.h mail_version.h maps.h mark_corrupt.h match_parent_style.h
mbox_conf.h mbox_open.h mime_state.h mkmap.h mynetworks.h mypwd.h
namadr_list.h off_cvt.h opened.h own_inet_addr.h pipe_command.h post_mail.h
qmgr_user.h qmqp_proto.h quote_821_local.h quote_822_local.h quote_flags.h
rec_streamlf.h rec_type.h recipient_list.h record.h resolve_clnt.h
resolve_local.h rewrite_clnt.h sent.h smtp_stream.h split_addr.h
string_list.h strip_addr.h sys_exits.h timed_ipc.h tok822.h trace.h verify.h
verify_clnt.h verp_sender.h virtual8_maps.h xtext.h
[src/dns]
for i in dns.h; \
do \
cmp -s $i ../../include/$i 2>/dev/null || cp $i ../../include; \
done
cd ../../include; chmod 644 dns.h
[src/master]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/mysql/include/mys
ql -DHAS_PCRE -g -O -I. -I../../include -DLINUX2 -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/mysql/lib/mysql -lmysqlclient -lz -lm -L/us
r/lib -lpcre -ldb -lnsl -lresolv
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../../i486-suse-linux/bin/ld:
cannot find -ldb
collect2: ld returned 1 exit status
make: *** [master] Error 1
make: *** [update] Error 1
------------
I'm trying to build postfix with MySQL support, so I used this make:
make -f Makefile.init makefiles \
'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include' \
'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm'
One problem I had was