Subject: Pine 4.50 build problems on RedHat Linux 7.2

From: Lilla <[email-masked]>
Date: Sun, 24 Nov 2002 13:39:31 +0100

Hi,

Building Pine 4.50 on RedHat Linux 7.3 and 7.1 works for me. But when 
trying to build it on RedHat Linux 7.2 it doesn't work, anyone got an 
idea what may be wrong? The output from

     ./build SSLDIR=/pkg-local/openssl/0.9.6g DEBUG=-O lnp

looks like this when using gcc 3.2:

make args are CC=cc  'SSLDIR=/pkg-local/openssl/0.9.6g' 'DEBUG=-O' lnp

   Directory /pkg-local/openssl/0.9.6g/certs is missing

Including SSL functionality
Making c-client library, imapd, and ipopd
eval make CC=cc SSLDIR=/pkg-local/openssl/0.9.6g DEBUG=-O SSLTYPE=nopwd 
SPECIALS=SSLDIR=/pkg-local/openssl/0.9.6g lnp
make sslnopwd
make[1]: Entering directory `/nfs/build/ior/pine-4.50/imap'
make[1]: `sslnopwd' is up to date.
make[1]: Leaving directory `/nfs/build/ior/pine-4.50/imap'
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 EXTRASPECIALS='' 
BUILDTYPE=lnp
make[1]: Entering directory `/nfs/build/ior/pine-4.50/imap'
Building c-client for lnp...
echo `cat SPECIALS`  > c-client/SPECIALS
cd c-client;make lnp EXTRACFLAGS=''\
  EXTRALDFLAGS=''\
  EXTRADRIVERS='mbox'\
  EXTRAAUTHENTICATORS=''\
  PASSWDTYPE=std SSLTYPE=nopwd\
  SSLDIR=/pkg-local/openssl/0.9.6g
make[2]: Entering directory `/nfs/build/ior/pine-4.50/imap/c-client'
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' 
EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd `cat SPECIALS` OS=lnx \
  SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \
  SPOOLDIR=/var/spool \
  ACTIVEFILE=/var/lib/news/active \
  RSHPATH=/usr/bin/rsh \
  BASECFLAGS="-g -fno-omit-frame-pointer -O6" \
  BASELDFLAGS="-lpam -ldl"
make[3]: Entering directory `/nfs/build/ior/pine-4.50/imap/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 -fno-omit-frame-pointer -O6 '' > CFLAGS
echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
  -DMAILSPOOL=\"/var/spool/mail\" \
  -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \
  -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
  -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/etc/mlock\" > OSCFLAGS
echo -lpam -ldl  > LDFLAGS
echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.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 mbox.o mbx.o mmdf.o tenex.o mtx.o 
news.o phile.o mh.o mx.o;ranlib c-client.a" > ARCHIVE
echo lnx > OSTYPE
./drivers mbox imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile dummy
./mkauths  md5 pla log
make[4]: Entering directory `/nfs/build/ior/pine-4.50/imap/c-client'
echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS
make[4]: Leaving directory `/nfs/build/ior/pine-4.50/imap/c-client'
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
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/pkg-local/openssl/0.9.6g/include 
-I/pkg-local/openssl/0.9.6g/include/openssl 
-DSSL_CERT_DIRECTORY=\"/pkg-local/openssl/0.9.6g/certs\" >> OSCFLAGS
echo "  ssl_onceonlyinit ();" >> linkage.c
echo -L/pkg-local/openssl/0.9.6g/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` 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` mbox.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:309: 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:638: warning: passing arg 3 of `scandir' from incompatible pointer type
mh.c: In function `mh_append':
mh.c:895: warning: passing arg 3 of `scandir' from incompatible pointer type
`cat CCTYPE` -c `cat CFLAGS` mx.c
mx.c: In function `mx_ping':
mx.c:592: 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 
siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o 
nntp.o smtp.o imap4r1.o pop3.o unix.o mbox.o mbx.o mmdf.o tenex.o mtx.o 
news.o phile.o mh.o mx.o;ranlib c-client.a
make[3]: Leaving directory `/nfs/build/ior/pine-4.50/imap/c-client'
make[2]: Leaving directory `/nfs/build/ior/pine-4.50/imap/c-client'
echo lnp > OSTYPE
touch rebuild
sh -c 'rm -rf rebuild || true'
Building bundled tools...
cd mtest;make
make[2]: Entering directory `/nfs/build/ior/pine-4.50/imap/mtest'
cc -I../c-client `cat ../c-client/CFLAGS`   -c -o mtest.o mtest.c
cc -I../c-client `cat ../c-client/CFLAGS` -o mtest mtest.o 
../c-client/c-client.a `cat ../c-client/LDFLAGS`
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
../c-client/c-client.a(osdep.o): In function `ssl_server_init':
:287: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
mtest.o: In function `smtptest':
:697: the `gets' function is dangerous and should not be used.
collect2: ld returned 1 exit status
make[2]: *** [mtest] Error 1
make[2]: Leaving directory `/nfs/build/ior/pine-4.50/imap/mtest'
make[1]: *** [bundled] Error 2
make[1]: Leaving directory `/nfs/build/ior/pine-4.50/imap'
make: *** [lnp] Error 2
+---------------------------------------------+
| Problems building c-client                  |
|                                             |
| Please check the output above for a         |
| possible explanation for this failure       |
+---------------------------------------------+

The first part is exactly the same for the RedHat 7.3 successful build, 
but the lines with "/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM 
value: 14." are not in the RedHat 7.3 successful build.

-- 
Cheers,
Lilla

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------