Subject: Re: qpopper 4.0.3 under netbsd/amiga 1.5.1
To: Hubert Feyrer <>
From: None <>
List: tech-pkg
Date: 08/24/2001 01:46:10
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

> [moved to the right list]

so what is the right list ? tech-pkg or tech-userlevel ?

> On Thu, 23 Aug 2001 wrote:
> > i have problems with qpopper from pkgsrc as of yesterday, it compiles
> > without problems but refuses to work:
> > telnet localhost pop3
> > Trying
> > Connected to localhost.
> > Escape character is '^]'.
> > /usr/libexec/ Undefined symbol "_net_write" in qpopper:/usr/lib/
> > 
> > Connection closed by foreign host.
> > 
> > is this a known problem and already fixed in beyond 1.5.1 ?
> It seems you have KERBEROS defined. The missing symbol is in libroken,
> seems that's not being linked in... Seems our libkrb is not linked against
> that when it should be. :(

no, i didn't fiddle around with kerberos, e.g. didn't define it in
/etc/mk.conf or anywhere else
this is a fresh install of netbsd/amiga 1.5.1 and i didn't hardly edit
a config file beyond /etc/rc.conf

> I suggest you try latest pkgsrc (via CVS or so), which should work fine
> for NetBSD 1.5.1. If that does not help, please post the output of "make
> clean ; make".

as i wrote, the pkgsrc was up to date as of (meanwhile) the day before
supping pkgsrc last night didn't change anything in qpopper, i attached
the log of make (without changes to the Makefile or other files)

the strange thing is that if i delete the .if defined(KERBEROS) lines
from Makfile.common, popper also gets linked against libkrb and i get the
same error when telnetting to it
and if i hardcore set the kerberos stuff to 'no' in configure before doing
a make configure it's still the same

Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="qpopper_build.log"

Script started on Thu Aug 23 04:09:09 2001
astral# make
=> Checksum OK for qpopper4.0.3.tar.gz.
=> Checksum OK for qpopper4.0.3-ipv6-20010504.diff.gz.
===> Extracting for qpopper-4.0.3
===> Patching for qpopper-4.0.3
===> Applying distribution patches for qpopper-4.0.3
===> Applying NetBSD patches for qpopper-4.0.3
===> Configuring for qpopper-4.0.3
Linking openssl files into /usr/pkgsrc/mail/qpopper/work/.buildlink.
creating cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... cc
checking whether the C compiler (cc -DINET6 -L/usr/pkgsrc/mail/qpopper/work/.buildlink/lib  -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib) works... yes
checking whether the C compiler (cc -DINET6 -L/usr/pkgsrc/mail/qpopper/work/.buildlink/lib  -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for POSIXized ISC... no
checking for bison... yacc
checking for flex... flex
checking for yywrap in -lfl... yes
checking for ar... ar
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking for gperf... no
checking for cperf... no
warning:: not found
checking for gcc version no
checking if gcc supports __attribute__ (format) ... yes
checking if ar chokes on -r... no
checking for getspnam... no
checking for getspnam in -lshadow... no
Will NOT compile in debugging code
APOP is enabled.
Will log using pop
Attempting to use OpenSSL in /usr/pkgsrc/mail/qpopper/work/.buildlink
checking for getaddrinfo... yes
checking for iruserok_sa... yes
checking whether you have ss_family in struct sockaddr_storage... yes
System name: NetBSD; System version: 1.5.1
Logging to facility: LOG_LOCAL1
Set AR_FLAG = " -r "; RANLIB_CMD = ""
checking size of unsigned long int... 4
checking for sendmail program... found at /usr/sbin/sendmail
checking for mail spool directory... found at /var/mail
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys_siglist declaration in signal.h or unistd.h... yes
checking for prot.h... no
checking for fcntl.h... yes
checking for limits.h... yes
checking for strings.h... yes
checking for sys/param.h... yes
checking for sys/file.h... yes
checking for sys/security.h... no
checking for sys/syslog.h... yes
checking for sys/types.h... yes
checking for sys/fcntl.h... yes
checking for sys/select.h... yes
checking for sys/stat.h... yes
checking for sys/unistd.h... yes
checking for sys/netinet/in.h... no
checking for sys/time.h... yes
checking for syslog.h... yes
checking for net/errno.h... no
checking for unistd.h... yes
checking for netinet/in.h... yes
checking for maillock.h... no
checking for select.h... no
checking for shadow.h... no
checking for security/pam_appl.h... no
checking for ndbm.h... yes
checking for gdbm.h... no
checking for dbm.h... no
checking for t_accept in -lnsl... no
checking for socket in -lsocket... no
checking for res_init in -lresolv... yes
checking for maillock in -lmail... no
checking for krb_recvauth in -lkrb... yes
checking for clock_gettime in -lposix4... no
checking for set_auth_parameters in -lsecurity... no
checking for crypt in -lcrypt... yes
checking which database manager to use ... checking ndbm ... checking for dbm_open in -lndbm... no
found ndbm header file but not library 
checking if BSD DBM... yes
checking dbm ... checking for dbm_open in -ldbm... no
didn't find dbm 
checking for working const... yes
checking for uid_t in sys/types.h... yes
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking for sys_siglist declaration in signal.h or unistd.h... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for 8-bit clean memcmp... yes
checking return type of signal handlers... void
checking whether utime accepts a null argument... yes
checking for vprintf... yes
checking for wait3 that fills in rusage... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for getusershell... yes
checking for mkdir... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for bcopy... yes
checking for index... yes
checking for flock... yes
checking for set_auth_parameters... no
checking for pw_encrypt... no
checking for hstrerror... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for srandom... yes
checking for srand... yes
checking for usleep... yes
checking for setproctitle... yes
checking for /dev/urandom ... yes 
updating cache ./config.cache
creating ./config.status
creating Makefile
creating common/Makefile
creating popper/Makefile
creating mmangle/Makefile
creating password/Makefile
creating config.h
===> Building for qpopper-4.0.3
/usr/bin/sed 's"/usr/local/lib"/usr/pkg/libexec"'  /usr/pkgsrc/mail/qpopper/work/qpopper4.0.3/man/popper.8 > /usr/pkgsrc/mail/qpopper/work/qpopper4.0.3/man/popper.8.$ &&  /bin/mv -f /usr/pkgsrc/mail/qpopper/work/qpopper4.0.3/man/popper.8.$ /usr/pkgsrc/mail/qpopper/work/qpopper4.0.3/man/popper.8
cd ./popper  && make all
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_dele.c -o pop_dele.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_dropcopy.c -o pop_dropcopy.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_get_command.c -o pop_get_command.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_get_subcommand.c -o pop_get_subcommand.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_init.c -o pop_init.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_last.c -o pop_last.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_list.c -o pop_list.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_log.c -o pop_log.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_lower.c -o pop_lower.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_msg.c -o pop_msg.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_parse.c -o pop_parse.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_pass.c -o pop_pass.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_quit.c -o pop_quit.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_rset.c -o pop_rset.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_send.c -o pop_send.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_stat.c -o pop_stat.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_updt.c -o pop_updt.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_user.c -o pop_user.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_xtnd.c -o pop_xtnd.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_xmit.c -o pop_xmit.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX popper.c -o popper.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_bull.c -o pop_bull.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX xtnd_xlst.c -o xtnd_xlst.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_uidl.c -o pop_uidl.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX mktemp.c -o mktemp.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_rpop.c -o pop_rpop.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_apop.c -o pop_apop.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX md5.c -o md5.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_auth.c -o pop_auth.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_pope.c -o pop_pope.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_extend.c -o pop_extend.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX scram.c -o scram.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX hmac.c -o hmac.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX base64.c -o base64.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_util.c -o pop_util.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX get_sub_opt.c -o get_sub_opt.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX msg_ptr.c -o msg_ptr.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX drac.c -o drac.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_config.c -o pop_config.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_tls.c -o pop_tls.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_tls_openssl.c -o pop_tls_openssl.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_tls_sslplus.c -o pop_tls_sslplus.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX sslplus_utils.c -o sslplus_utils.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX main.c -o main.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX pop_cache.c -o pop_cache.o
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX genpath.c -o genpath.o
cd ../mmangle && make all
cc -c -I.. -I. -I.. -I../popper  -I../common -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX mime.c -o mime.o
cc -c -I.. -I. -I.. -I../popper  -I../common -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX mangle.c -o mangle.o
cc -c -I.. -I. -I.. -I../popper  -I../common -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX enriched.c -o enriched.o
cc -c -I.. -I. -I.. -I../popper  -I../common -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX striphtml.c -o striphtml.o
cc -c -I.. -I. -I.. -I../popper  -I../common -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX lineend.c -o lineend.o
cc -c -I.. -I. -I.. -I../popper  -I../common -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX etags.c -o etags.o
cc -c -I.. -I. -I.. -I../popper  -I../common -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX charmangle.c -o charmangle.o
ar -r libmangle.a mime.o mangle.o enriched.o striphtml.o  lineend.o etags.o charmangle.o
cd ../common && make all
cc -c -I.. -I. -I.. -I../popper  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX flock.c -o flock.o
cc -c -I.. -I. -I.. -I../popper  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX maillock.c -o maillock.o
cc -c -I.. -I. -I.. -I../popper  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX logit.c -o logit.o
cc -c -I.. -I. -I.. -I../popper  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX snprintf.c -o snprintf.o
cc -c -I.. -I. -I.. -I../popper  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX string_util.c -o string_util.o
cc -c -I.. -I. -I.. -I../popper  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX check_group.c -o check_group.o
cc -c -I.. -I. -I.. -I../popper  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX utils.c -o utils.o
ar -r libcommon.a flock.o maillock.o logit.o snprintf.o  string_util.o check_group.o utils.o
cc   pop_dele.o pop_dropcopy.o  pop_get_command.o pop_get_subcommand.o pop_init.o  pop_last.o pop_list.o pop_log.o pop_lower.o  pop_msg.o pop_parse.o pop_pass.o pop_quit.o  pop_rset.o pop_send.o pop_stat.o pop_updt.o  pop_user.o pop_xtnd.o pop_xmit.o popper.o  pop_bull.o xtnd_xlst.o pop_uidl.o mktemp.o  pop_rpop.o pop_apop.o md5.o pop_auth.o pop_pope.o  pop_extend.o scram.o hmac.o base64.o pop_util.o  get_sub_opt.o msg_ptr.o drac.o pop_config.o pop_tls.o  pop_tls_openssl.o pop_tls_sslplus.o sslplus_utils.o  main.o pop_cache.o genpath.o -o popper ../mmangle/libmangle.a  -I../common ../common/libcommon.a  -lresolv  -lkrb   -lcrypt -L/usr/pkgsrc/mail/qpopper/work/.buildlink/lib -lssl -lcrypto
maillock.o: warning: tempnam() possibly used unsafely, use mkstemp() or mkdtemp()
cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/pkgsrc/mail/qpopper/work/.buildlink/include  -DINET6 -DHAVE_CONFIG_H  -DNETBSD -DUNIX popauth.c -o popauth.o
cc  -o popauth base64.o scram.o md5.o  hmac.o popauth.o -lresolv   ../common/libcommon.a
for FILE in DEINSTALL INSTALL; do  /usr/bin/sed -e 's|@BINGRP@|wheel|g'  -e 's|@CHGRP@|/usr/bin/chgrp|g'  -e 's|@CHOWN@|/usr/sbin/chown|g'  -e 's|@DB_SUFFIX@|db|g'  -e 's|@USER_CMD@|/usr/sbin/user|g'  -e 's|@QPOPPER_USER@|pop|g'  -e 's|@PKG_PREFIX@|/usr/pkg|g'  -e 's|@QPOPPER_APOP_AUTH@|/etc/apop.auth|g'  -e 's|@INSTALL_DATA@|install -c -o root -g wheel -m 444|g'  < /usr/pkgsrc/mail/qpopper/pkg/${FILE} > /usr/pkgsrc/mail/qpopper/work/${FILE};  done
astral# exit
Script done on Thu Aug 23 04:17:17 2001