Hi,
Environment:
- Intel Xeon 2.8 GHz (HT)
- stock RedHat Enterprise Linux 3 Update 8
- stock gcc (gcc 3.2.3)
- unmodified imap-2006b source
I tried to compile the imap 2006b using:
make lrh
I can successfully compile if I answer "yes" to building with IPv6 support
but if I answer "no", the build process fails with the following results:
------- OUTPUT FROM BUILD -------
Do you want to build with IPv6 anyway? Type y or n please:
n
make[2]: Entering directory `/hdd/sda/s8/imap-2006b'
Removing old processed sources and binaries...
sh -c 'rm -rf an ua OSTYPE SPECIALS c-client mtest imapd ipopd mailutil
mlock dmail tmail || true'
cd tools;make clean
make[3]: Entering directory `/hdd/sda/s8/imap-2006b/tools'
sh -c 'rm -f *.o uahelper || true'
make[3]: Leaving directory `/hdd/sda/s8/imap-2006b/tools'
make[2]: Leaving directory `/hdd/sda/s8/imap-2006b'
make[1]: *** [ip6] Error 1
make[1]: Leaving directory `/hdd/sda/s8/imap-2006b'
make: *** [lrh] Error 2
------- OUTPUT FROM BUILD --------
I've provided the build output for both cases (unsuccessful and
successful) in an attachment. It appears that this issue was discussed on
the list in 26 Sept 2006 but I don't think the two problems are related.
We don't have a need for IPv6 in our environment, so I'm confused as to
why building without IPv6 doesn't work. Any suggestions as to why this is
happening ?
Thanks very much,
Derek
--
Derek Yuen
Computing & Network Services
University of Toronto
[EMAIL PROTECTED] imap-2006b]# make lrh
make[1]: Entering directory `/hdd/sda/s8/imap-2006b'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building in full compliance with RFC 3501 security
+ requirements:
++ TLS/SSL encryption is supported
++ Unencrypted plaintext passwords are prohibited
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
make[1]: Leaving directory `/hdd/sda/s8/imap-2006b'
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 .
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox'
EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd IP=4 EXTRASPECIALS=''
BUILDTYPE=lnp IP=6 \
EXTRACFLAGS=" -I/usr/kerberos/include" \
SPECIALS="SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib
SSLCERTS=/usr/share/ssl/certs SSLKEYS=/usr/share/ssl/private
GSSDIR=/usr/kerberos LOCKPGM=/usr/sbin/mlock"
make[1]: Entering directory `/hdd/sda/s8/imap-2006b'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building with IPv6 support
+
+ NOTE: Some versions of glibc have a bug in the getaddrinfo
+ call which does DNS name resolution. This bug causes host
+ names to be canonicalized incorrectly, as well as doing an
+ unnecessary and performance-sapping reverse DNS call. This
+ problem does not affect the IPv4 gethostbyname call.
+
+ getaddrinfo is known to work properly on Mac OS X and
+ Windows. However, the problem has been observed on some
+ Linux systems.
+
+ If you are not building for Mac OS X or Windows, you may
+ want to build with IP=4 unless you are certain that glibc
+ is fixed on your system.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Do you want to build with IPv6 anyway? Type y or n please:
n
make[2]: Entering directory `/hdd/sda/s8/imap-2006b'
Removing old processed sources and binaries...
sh -c 'rm -rf an ua OSTYPE SPECIALS c-client mtest imapd ipopd mailutil mlock
dmail tmail || true'
cd tools;make clean
make[3]: Entering directory `/hdd/sda/s8/imap-2006b/tools'
sh -c 'rm -f *.o uahelper || true'
make[3]: Leaving directory `/hdd/sda/s8/imap-2006b/tools'
make[2]: Leaving directory `/hdd/sda/s8/imap-2006b'
make[1]: *** [ip6] Error 1
make[1]: Leaving directory `/hdd/sda/s8/imap-2006b'
make: *** [lrh] Error 2
[EMAIL PROTECTED] imap-2006b]# make lrh
make[1]: Entering directory `/hdd/sda/s8/imap-2006b'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building in full compliance with RFC 3501 security
+ requirements:
++ TLS/SSL encryption is supported
++ Unencrypted plaintext passwords are prohibited
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
make[1]: Leaving directory `/hdd/sda/s8/imap-2006b'
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 .
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox'
EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd IP=4 EXTRASPECIALS=''
BUILDTYPE=lnp IP=6 \
EXTRACFLAGS=" -I/usr/kerberos/include" \
SPECIALS="SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib
SSLCERTS=/usr/share/ssl/certs SSLKEYS=/usr/share/ssl/private
GSSDIR=/usr/kerberos LOCKPGM=/usr/sbin/mlock"
make[1]: Entering directory `/hdd/sda/s8/imap-2006b'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building with IPv6 support
+
+ NOTE: Some versions of glibc have a bug in the getaddrinfo
+ call which does DNS name resolution. This bug causes host
+ names to be canonicalized incorrectly, as well as doing an
+ unnecessary and performance-sapping reverse DNS call. This
+ problem does not affect the IPv4 gethostbyname call.
+
+ getaddrinfo is known to work properly on Mac OS X and
+ Windows. However, the problem has been observed on some
+ Linux systems.
+
+ If you are not building for Mac OS X or Windows, you may
+ want to build with IP=4 unless you are certain that glibc
+ is fixed on your system.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Do you want to build with IPv6 anyway? Type y or n please:
y
OK, I will remember that you really want to build with IPv6.
You will not see this message again.
Building c-client for lnp...
echo `cat SPECIALS` > c-client/SPECIALS
cd c-client;make lnp EXTRACFLAGS='-I/usr/kerberos/include'\
EXTRALDFLAGS=''\
EXTRADRIVERS='mbox'\
EXTRAAUTHENTICATORS=''\
PASSWDTYPE=std SSLTYPE=nopwd IP=6\
SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib SSLCERTS=/usr/share/ssl/certs
SSLKEYS=/usr/share/ssl/private GSSDIR=/usr/kerberos LOCKPGM=/usr/sbin/mlock
make[2]: Entering directory `/hdd/sda/s8/imap-2006b/c-client'
make build EXTRACFLAGS='-I/usr/kerberos/include' EXTRALDFLAGS=''
EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd IP=6
`cat SPECIALS` OS=lnx \
SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \
SPOOLDIR=/var/spool \
ACTIVEFILE=/var/lib/news/active \
RSHPATH=/usr/bin/rsh \
BASECFLAGS="-g -O2 -pipe -fno-omit-frame-pointer" \
BASELDFLAGS="-lpam -ldl"
make[3]: Entering directory `/hdd/sda/s8/imap-2006b/c-client'
sh -c 'rm -rf auths.c crexcl.c nfstest.c linkage.[ch] siglocal.c osdep*.[ch]
*.o ARCHIVE *FLAGS *TYPE c-client.a || true'
Once-only environment setup...
echo cc > CCTYPE
echo -g -O2 -pipe -fno-omit-frame-pointer '-I/usr/kerberos/include'
-DCHUNKSIZE=65536 > CFLAGS
echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
-DMD5ENABLE=\""/etc/cram-md5.pwd"\" -DMAILSPOOL=\"/var/spool/mail\" \
-DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \
-DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
-DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/usr/sbin/mlock\" > OSCFLAGS
echo -lpam -ldl > LDFLAGS
echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o
utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o
nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o
mh.o mx.o mix.o;ranlib c-client.a" > ARCHIVE
echo lnx > OSTYPE
./drivers mbox imap nntp pop3 mh mx mix mbx tenex mtx mmdf unix news phile dummy
./mkauths ext md5 pla log
ln -s os_lnx.h osdep.h
ln -s os_lnx.c osdepbas.c
ln -s log_std.c osdeplog.c
ln -s sig_psx.c siglocal.c
ln -s crx_nfs.c crexcl.c
ln -s ip6_unix.c ip_unix.c
sh -c '(test -f /usr/include/sys/statvfs.h -a lnx != sc5 -a lnx != sco) && ln
-s nfstnew.c nfstest.c || ln -s nfstold.c nfstest.c'
Standard password authentication
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=\"/usr/share/ssl/certs\"
-DSSL_KEY_DIRECTORY=\"/usr/share/ssl/private\" >> OSCFLAGS
echo " ssl_onceonlyinit ();" >> linkage.c
echo -L/usr/lib -lssl -lcrypto >> LDFLAGS
Building with SSL and plaintext passwords disabled unless SSL/TLS
echo " mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 2);" >> linkage.c
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 lnx SSLTYPE=none
`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
`cat CCTYPE` -c `cat CFLAGS` mail.c
`cat CCTYPE` -c `cat CFLAGS` misc.c
`cat CCTYPE` -c `cat CFLAGS` newsrc.c
`cat CCTYPE` -c `cat CFLAGS` smanager.c
`cat CCTYPE` -c `cat CFLAGS` utf8.c
`cat CCTYPE` -c `cat CFLAGS` utf8aux.c
`cat CCTYPE` -c `cat CFLAGS` siglocal.c
`cat CCTYPE` -c `cat CFLAGS` dummy.c
`cat CCTYPE` -c `cat CFLAGS` pseudo.c
`cat CCTYPE` -c `cat CFLAGS` netmsg.c
`cat CCTYPE` -c `cat CFLAGS` flstring.c
`cat CCTYPE` -c `cat CFLAGS` fdstring.c
`cat CCTYPE` -c `cat CFLAGS` rfc822.c
`cat CCTYPE` -c `cat CFLAGS` nntp.c
`cat CCTYPE` -c `cat CFLAGS` smtp.c
`cat CCTYPE` -c `cat CFLAGS` imap4r1.c
`cat CCTYPE` -c `cat CFLAGS` pop3.c
`cat CCTYPE` -c `cat CFLAGS` unix.c
`cat CCTYPE` -c `cat CFLAGS` mbx.c
`cat CCTYPE` -c `cat CFLAGS` mmdf.c
`cat CCTYPE` -c `cat CFLAGS` tenex.c
`cat CCTYPE` -c `cat CFLAGS` mtx.c
`cat CCTYPE` -c `cat CFLAGS` news.c
news.c: In function `news_open':
news.c:370: warning: passing arg 3 of `scandir' from incompatible pointer type
`cat CCTYPE` -c `cat CFLAGS` phile.c
`cat CCTYPE` -c `cat CFLAGS` mh.c
mh.c: In function `mh_ping':
mh.c:854: warning: passing arg 3 of `scandir' from incompatible pointer type
mh.c: In function `mh_append':
mh.c:1120: warning: passing arg 3 of `scandir' from incompatible pointer type
`cat CCTYPE` -c `cat CFLAGS` mx.c
mx.c: In function `mx_scan_contents':
mx.c:275: warning: passing arg 3 of `scandir' from incompatible pointer type
mx.c: In function `mx_rename':
mx.c:460: warning: passing arg 3 of `scandir' from incompatible pointer type
mx.c: In function `mx_ping':
mx.c:728: warning: passing arg 3 of `scandir' from incompatible pointer type
`cat CCTYPE` -c `cat CFLAGS` mix.c
mix.c: In function `mix_scan_contents':
mix.c:327: warning: passing arg 3 of `scandir' from incompatible pointer type
mix.c: In function `mix_rename':
mix.c:540: warning: passing arg 3 of `scandir' from incompatible pointer type
mix.c: In function `mix_expunge':
mix.c:1017: warning: passing arg 3 of `scandir' from incompatible pointer type
sh -c 'rm -rf c-client.a || true'
ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o
siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o
smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o
mx.o mix.o;ranlib c-client.a
make[3]: Leaving directory `/hdd/sda/s8/imap-2006b/c-client'
make[2]: Leaving directory `/hdd/sda/s8/imap-2006b/c-client'
echo lnp > OSTYPE
touch rebuild
sh -c 'rm -rf rebuild || true'
Building bundled tools...
cd mtest;make
make[2]: Entering directory `/hdd/sda/s8/imap-2006b/mtest'
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o mtest.o
mtest.c
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mtest
mtest.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`
../c-client/c-client.a(osdep.o)(.text+0x85cf): In function `ssl_onceonlyinit':
/hdd/sda/s8/imap-2006b/c-client/osdep.c:349: the use of `tmpnam' is dangerous,
better use `mkstemp'
mtest.o(.text+0x1fa2): In function `smtptest':
/hdd/sda/s8/imap-2006b/mtest/mtest.c:774: the `gets' function is dangerous and
should not be used.
make[2]: Leaving directory `/hdd/sda/s8/imap-2006b/mtest'
cd ipopd;make
make[2]: Entering directory `/hdd/sda/s8/imap-2006b/ipopd'
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o
ipop2d.o ipop2d.c
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o ipop2d
ipop2d.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`
../c-client/c-client.a(osdep.o)(.text+0x85cf): In function `ssl_onceonlyinit':
/hdd/sda/s8/imap-2006b/c-client/osdep.c:349: the use of `tmpnam' is dangerous,
better use `mkstemp'
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o
ipop3d.o ipop3d.c
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o ipop3d
ipop3d.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`
../c-client/c-client.a(osdep.o)(.text+0x85cf): In function `ssl_onceonlyinit':
/hdd/sda/s8/imap-2006b/c-client/osdep.c:349: the use of `tmpnam' is dangerous,
better use `mkstemp'
make[2]: Leaving directory `/hdd/sda/s8/imap-2006b/ipopd'
cd imapd;make
make[2]: Entering directory `/hdd/sda/s8/imap-2006b/imapd'
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS`
-DANOFILE=\"/etc/anonymous.newsgroups\" -DALERTFILE=\"/etc/imapd.alert\"
-DNNTPFILE=\"/etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\"
-DSHUTDOWNFILE=\"/etc/nologin\" -c -o imapd.o imapd.c
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS`
-DANOFILE=\"/etc/anonymous.newsgroups\" -DALERTFILE=\"/etc/imapd.alert\"
-DNNTPFILE=\"/etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\"
-DSHUTDOWNFILE=\"/etc/nologin\" -o imapd imapd.o ../c-client/c-client.a `cat
../c-client/LDFLAGS`
../c-client/c-client.a(osdep.o)(.text+0x85cf): In function `ssl_onceonlyinit':
/hdd/sda/s8/imap-2006b/c-client/osdep.c:349: the use of `tmpnam' is dangerous,
better use `mkstemp'
make[2]: Leaving directory `/hdd/sda/s8/imap-2006b/imapd'
cd mailutil;make
make[2]: Entering directory `/hdd/sda/s8/imap-2006b/mailutil'
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o
mailutil.o mailutil.c
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mailutil
mailutil.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`
../c-client/c-client.a(osdep.o)(.text+0x85cf): In function `ssl_onceonlyinit':
/hdd/sda/s8/imap-2006b/c-client/osdep.c:349: the use of `tmpnam' is dangerous,
better use `mkstemp'
make[2]: Leaving directory `/hdd/sda/s8/imap-2006b/mailutil'
cd mlock;make || true
make[2]: Entering directory `/hdd/sda/s8/imap-2006b/mlock'
`cat ../c-client/CCTYPE` `cat ../c-client/CFLAGS` -c -o mlock.o mlock.c
`cat ../c-client/CCTYPE` `cat ../c-client/CFLAGS` -o mlock mlock.o
make[2]: Leaving directory `/hdd/sda/s8/imap-2006b/mlock'
cd dmail;make || true
make[2]: Entering directory `/hdd/sda/s8/imap-2006b/dmail'
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o dmail.o
dmail.c
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o dmail
dmail.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`
../c-client/c-client.a(osdep.o)(.text+0x85cf): In function `ssl_onceonlyinit':
/hdd/sda/s8/imap-2006b/c-client/osdep.c:349: the use of `tmpnam' is dangerous,
better use `mkstemp'
make[2]: Leaving directory `/hdd/sda/s8/imap-2006b/dmail'
cd tmail;make || true
make[2]: Entering directory `/hdd/sda/s8/imap-2006b/tmail'
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o tmail.o
tmail.c
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o tmail
tmail.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`
../c-client/c-client.a(osdep.o)(.text+0x85cf): In function `ssl_onceonlyinit':
/hdd/sda/s8/imap-2006b/c-client/osdep.c:349: the use of `tmpnam' is dangerous,
better use `mkstemp'
make[2]: Leaving directory `/hdd/sda/s8/imap-2006b/tmail'
make[1]: Leaving directory `/hdd/sda/s8/imap-2006b'
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw