Subject: pkg/37490: mail/imap-uw doesn't build on Mac OS X 10.5 (Leopard) powerpc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <harenberg@physik.uni-wuppertal.de>
List: pkgsrc-bugs
Date: 12/06/2007 13:25:00
>Number: 37490
>Category: pkg
>Synopsis: mail/imap-uw doesn't build on Mac OS X 10.5 (Leopard) powerpc
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 06 13:25:00 +0000 2007
>Originator: Torsten Harenberg
>Release: Mac OS X 10.5.1
>Organization:
University of Wuppertal
>Environment:
Darwin apfel.physik.uni-wuppertal.de 9.1.0 Darwin Kernel Version 9.1.0: Wed Oct 31 17:48:21 PDT 2007; root:xnu-1228.0.2~1/RELEASE_PPC Power Macintosh
>Description:
When trying to build mail/imap-uw on a PowerPC Mac running 10.5.1, build process stops:
=> Full dependency imap-uw>=2006j2nb1: NOT found
=> Verifying reinstall for ../../mail/imap-uw
=> Bootstrap dependency digest>=20010302: found digest-20070803
/bin/sh: audit-packages: command not found
===> Skipping vulnerability checks.
WARNING: No /pkg-vulnerabilities file found.
WARNING: To fix run: `download-vulnerability-list'.
=> Checksum SHA1 OK for imap-2006j2.tar.Z
=> Checksum RMD160 OK for imap-2006j2.tar.Z
===> Installing dependencies for imap-uw-2006j2nb3
==========================================================================
The supported build options for imap-uw are:
imapuw-cleartextpwd imapuw-whoson inet6 kerberos
ssl
The currently selected options are:
imapuw-cleartextpwd inet6 ssl
You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable. Its current value is shown:
PKG_OPTIONS.imap-uw (not defined)
Deprecated variable USE_INET6 set to YES, use PKG_DEFAULT_OPTIONS+=inet6 instead.
==========================================================================
==========================================================================
The following variables will affect the build process of this package,
imap-uw-2006j2nb3. Their current value is shown below:
* IMAP_UW_CCLIENT_MBOX_FMT = unix
* IMAP_UW_MAILSPOOLHOME (not defined)
* SSLBASE = /usr
* SSLCERTS = /etc/ssl/certs
* SSLDIR = /etc/ssl
* SSLKEYS = /etc/ssl/private
You may want to abort the process now with CTRL-C and change their value
before continuing. Be sure to run `/usr/pkg/bin/bmake clean' after
the changes.
==========================================================================
=> Build dependency libtool-base>=1.5.18nb5: found libtool-base-1.5.24nb5
===> Overriding tools for imap-uw-2006j2nb3
===> Extracting for imap-uw-2006j2nb3
===> Patching for imap-uw-2006j2nb3
=> Applying pkgsrc patches for imap-uw-2006j2nb3
===> Creating toolchain wrappers for imap-uw-2006j2nb3
===> Configuring for imap-uw-2006j2nb3
=> Modifying libtool scripts to use pkgsrc libtool
===> Building for imap-uw-2006j2nb3
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building in PARTIAL compliance with RFC 3501 security
+ requirements:
+ Compliant:
++ TLS/SSL encryption is supported
+ Non-compliant:
++ Unencrypted plaintext passwords are permitted
+
+ In order to rectify this problem, you MUST build with:
++ SSLTYPE=unix.nopwd
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Applying an process to sources...
tools/an "ln -s" src/c-client c-client
tools/an "ln -s" src/ansilib c-client
tools/an "ln -s" src/charset c-client
tools/an "ln -s" src/osdep/unix c-client
tools/an "ln -s" src/mtest mtest
tools/an "ln -s" src/ipopd ipopd
tools/an "ln -s" src/imapd imapd
tools/an "ln -s" src/mailutil mailutil
tools/an "ln -s" src/mlock mlock
tools/an "ln -s" src/dmail dmail
tools/an "ln -s" src/tmail tmail
ln -s tools/an .
touch ip6
make build EXTRACFLAGS='-pipe -O2 -I/usr/include' EXTRALDFLAGS='-flat_namespace -L/usr/lib -L/usr/pkg/lib' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=unix IP=6 EXTRASPECIALS='SSLDIR=/usr SSLCERTS=/etc/ssl/certs SSLKEYS=/etc/ssl/private CREATEPROTO=unixproto' BUILDTYPE=osx IP=6 EXTRAAUTHENTICATORS=" gss" PASSWDTYPE=pam EXTRACFLAGS="-pipe -O2 -I/usr/include -DMAC_OSX_KLUDGE=1" SPECIALS="SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib SSLCERTS=/System/Library/OpenSSL/certs SSLKEYS=/System/Library/OpenSSL/private GSSINCLUDE=/usr/include GSSLIB=/usr/lib LOCKPGM=/usr/sbin/mlock PAMDLFLAGS=-lpam"
`ip6' is up to date.
Building c-client for osx...
echo `cat SPECIALS` SSLDIR=/usr SSLCERTS=/etc/ssl/certs SSLKEYS=/etc/ssl/private CREATEPROTO=unixproto > c-client/SPECIALS
cd c-client;make osx EXTRACFLAGS='-pipe -O2 -I/usr/include -DMAC_OSX_KLUDGE=1' EXTRALDFLAGS='-flat_namespace -L/usr/lib -L/usr/pkg/lib' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='gss' PASSWDTYPE=pam SSLTYPE=unix IP=6 SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib SSLCERTS=/System/Library/OpenSSL/certs SSLKEYS=/System/Library/OpenSSL/private GSSINCLUDE=/usr/include GSSLIB=/usr/lib LOCKPGM=/usr/sbin/mlock PAMDLFLAGS=-lpam SSLDIR=/usr SSLCERTS=/etc/ssl/certs SSLKEYS=/etc/ssl/private CREATEPROTO=unixproto
make build EXTRACFLAGS='-pipe -O2 -I/usr/include -DMAC_OSX_KLUDGE=1' EXTRALDFLAGS='-flat_namespace -L/usr/lib -L/usr/pkg/lib' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='gss' PASSWDTYPE=pam SSLTYPE=unix IP=6 `cat SPECIALS` OS=osx CRXTYPE=nfs SPOOLDIR=/var/spool MAILSPOOL=/var/mail RSHPATH=/usr/bin/rsh BASECFLAGS="-pipe -fno-omit-frame-pointer -Wno-pointer-sign"
sh -c 'rm -rf auths.c crexcl.c ip_unix.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE libc-client.la || true'
Once-only environment setup...
echo cc > CCTYPE
echo -pipe -fno-omit-frame-pointer -Wno-pointer-sign '-pipe -O2 -I/usr/include -DMAC_OSX_KLUDGE=1' -DCHUNKSIZE=65536 > CFLAGS
echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto -DMD5ENABLE=\""/etc/cram-md5.pwd"\" -DMAILSPOOL=\"/var/mail\" -DANONYMOUSHOME=\"/var/mail/anonymous\" -DACTIVEFILE=\"/usr/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/usr/sbin/mlock\" > OSCFLAGS
echo -flat_namespace -L/usr/lib -L/usr/pkg/lib > LDFLAGS
echo "libtool --mode=link cc -o libc-client.la osdep.lo mail.lo misc.lo newsrc.lo smanager.lo utf8.lo utf8aux.lo siglocal.lo dummy.lo pseudo.lo netmsg.lo flstring.lo fdstring.lo rfc822.lo nntp.lo smtp.lo imap4r1.lo pop3.lo unix.lo mbx.lo mmdf.lo tenex.lo mtx.lo news.lo phile.lo mh.lo mx.lo mix.lo -rpath /usr/pkg/lib -version-info 4:4 \`cat LDFLAGS\`" > ARCHIVE
echo osx > OSTYPE
./drivers mbox imap nntp pop3 mix mx mbx tenex mtx mh mmdf unix news phile dummy
./mkauths gss ext md5 pla log
echo -I/usr/include -I/usr/local/include/krb5 -DKRB5_DEPRECATED=1 >> OSCFLAGS
sh -c '(test -f /usr/lib/libk5crypto.a) && echo -L/usr/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err || echo -L/usr/lib -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err' >> LDFLAGS.gss1
sh -c '(test -z "") || --libs gssapi' > LDFLAGS.gss2
sh -c '(test -z "") && cat LDFLAGS.gss1 || cat LDFLAGS.gss2' >> LDFLAGS
echo "#include \"kerb_mit.c\"" >> auths.c
echo " mail_versioncheck (CCLIENTVERSION);" >> linkage.c
ln -s os_osx.h osdep.h
ln -s os_osx.c osdepbas.c
ln -s log_std.c osdeplog.c
ln -s sig_bsd.c siglocal.c
ln -s crx_nfs.c crexcl.c
ln -s ip6_unix.c ip_unix.c
sh -c '(test osx = sc5 -o osx = sco -o ! -f /usr/include/sys/statvfs.h) && echo -DNOFSTATVFS >> OSCFLAGS || fgrep statvfs64 /usr/include/sys/statvfs.h > /dev/null || echo -DNOFSTATVFS64 >> OSCFLAGS'
PAM password authentication
echo -lpam -ldl >> LDFLAGS
ln -s ckp_pam.c osdepckp.c
Building with SSL
ln -s ssl_unix.c osdepssl.c
echo -I/usr/include/openssl -I/usr/include/openssl/openssl -DSSL_CERT_DIRECTORY=\"/etc/ssl/certs\" -DSSL_KEY_DIRECTORY=\"/etc/ssl/private\" >> OSCFLAGS
echo " ssl_onceonlyinit ();" >> linkage.c
echo -L/usr/lib -lssl -lcrypto >> LDFLAGS
cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c
Building OS-dependent module
If you get No such file error messages for files x509.h, ssl.h,
pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
is not installed on your system. Either install OpenSSL first
or build with command: make osx SSLTYPE=none
libtool --mode=compile `cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
mkdir .libs
cc -c -pipe -fno-omit-frame-pointer -Wno-pointer-sign -pipe -O2 -DMAC_OSX_KLUDGE=1 -DCHUNKSIZE=65536 -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto -DMD5ENABLE=\"/etc/cram-md5.pwd\" -DMAILSPOOL=\"/var/mail\" -DANONYMOUSHOME=\"/var/mail/anonymous\" -DACTIVEFILE=\"/usr/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/usr/sbin/mlock\" -DKRB5_DEPRECATED=1 -DNOFSTATVFS64 -I/usr/include/openssl -I/usr/include/openssl/openssl -DSSL_CERT_DIRECTORY=\"/etc/ssl/certs\" -DSSL_KEY_DIRECTORY=\"/etc/ssl/private\" -c osdep.c -fno-common -DPIC -o .libs/osdep.o
In file included from osdep.c:50:
env_unix.c: In function 'dotlock_lock':
env_unix.c:1200: error: too many arguments to function 'setpgrp'
In file included from osdep.c:52:
tcp_unix.c: In function 'tcp_aopen':
tcp_unix.c:408: error: too many arguments to function 'setpgrp'
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/mail/imap-uw/work/imap-2006j/c-client
*** Error code 1
>How-To-Repeat:
Use pkgsrc (HEAD. Nov, 6th, 2007) and build mail/imap-uw
>Fix:
setpgrp doesn't want to have options on Darwin.
SETPGID(2) BSD System Calls Manual SETPGID(2)
NAME
setpgid, setpgrp -- set process group
SYNOPSIS
#include <unistd.h>
int
setpgid(pid_t pid, pid_t pgid);
pid_t
setpgrp(void);