Subject: Solaris 8 gcc 3.2.2 compile error - c-client.a: No such file or directory

From: mcormie <[email-masked]>
Date: Thu, 1 May 2003 16:22:13 -0700

Greetings,

The UW IMAP c-client is not compiling in my environment ( Solaris 8, 
GCC 3.2.2 ).

I have tried both the current stable 2002cl as well as 
2003.DEV.SNAP-0304281430 with the same result.  Relevant output below.  
Any thoughts?

Many Thanks,

Matthew Cormie
Senior Programmer Analyst
Deans Office, Faculty of Engineering
University of Victoria
mailto:[email-masked]

bash-2.03# make clean
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[1]: Entering directory `/usr/share/src/imap/imap-2002cl/tools'
sh -c 'rm -f *.o uahelper || true'
make[1]: Leaving directory `/usr/share/src/imap/imap-2002cl/tools'
bash-2.03# make gso
make sslnopwd
make[1]: Entering directory `/usr/share/src/imap/imap-2002cl'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Building in full compliance with IESG security requirements:
++ TLS/SSL encryption is supported
++ Unencrypted plaintext passwords are prohibited
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
make[1]: Leaving directory `/usr/share/src/imap/imap-2002cl'
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=gso
make[1]: Entering directory `/usr/share/src/imap/imap-2002cl'
Building c-client for gso...
echo `cat SPECIALS`  > c-client/SPECIALS
cd c-client;make gso EXTRACFLAGS=''\
  EXTRALDFLAGS=''\
  EXTRADRIVERS='mbox'\
  EXTRAAUTHENTICATORS=''\
  PASSWDTYPE=std SSLTYPE=nopwd\

make[2]: Entering directory `/usr/share/src/imap/imap-2002cl/c-client'
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' 
EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=nopwd `cat SPECIALS` 
OS=sol \
  SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs \
  SPOOLDIR=/var/spool MAILSPOOL=/var/mail \
  ACTIVEFILE=/usr/share/news/active \
  RSHPATH=/usr/bin/rsh \
  BASECFLAGS="-g -O2" \
  BASELDFLAGS="-lsocket -lnsl -lgen" \
  RANLIB=true CC=gcc
make[3]: Entering directory `/usr/share/src/imap/imap-2002cl/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 gcc > CCTYPE
echo -g -O2 '' > CFLAGS
echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
  -DMAILSPOOL=\"/var/mail\" \
  -DANONYMOUSHOME=\"/var/mail/anonymous\" \
  -DACTIVEFILE=\"/usr/share/news/active\" 
-DNEWSSPOOL=\"/var/spool/news\" \
  -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/etc/mlock\" > OSCFLAGS
echo -lsocket -lnsl -lgen  > 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;true c-client.a" > ARCHIVE
echo sol > OSTYPE
./drivers mbox imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile 
dummy
./mkauths  md5 pla log
make[4]: Entering directory `/usr/share/src/imap/imap-2002cl/c-client'
echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS
make[4]: Leaving directory `/usr/share/src/imap/imap-2002cl/c-client'
ln -s os_sol.h osdep.h
ln -s os_sol.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 sol != sc5 -a sol != sco) 
&& ln -s nfstnew.c nfstest.c || ln -s nfstold.c nfstest.c'
Standard password authentication
ln -s ckp_psx.c osdepckp.c
Building with SSL
ln -s ssl_unix.c osdepssl.c
echo -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl 
-DSSL_CERT_DIRECTORY=\"/usr/local/ssl/certs\" >> OSCFLAGS
echo "  ssl_onceonlyinit ();" >> linkage.c
echo -L/usr/local/ssl/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 sol 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
`cat CCTYPE` -c `cat CFLAGS` phile.c
`cat CCTYPE` -c `cat CFLAGS` mh.c
`cat CCTYPE` -c `cat CFLAGS` mx.c
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;true c-client.a
ARCHIVE: ar: not found
make[3]: Leaving directory `/usr/share/src/imap/imap-2002cl/c-client'
make[2]: Leaving directory `/usr/share/src/imap/imap-2002cl/c-client'
echo gso > OSTYPE
touch rebuild
sh -c 'rm -rf rebuild || true'
Building bundled tools...
cd mtest;make
make[2]: Entering directory `/usr/share/src/imap/imap-2002cl/mtest'
cd ../c-client;make
make[3]: Entering directory `/usr/share/src/imap/imap-2002cl/c-client'
make all `cat SPECIALS`
make[4]: Entering directory `/usr/share/src/imap/imap-2002cl/c-client'
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;true c-client.a
ARCHIVE: ar: not found
make[4]: Leaving directory `/usr/share/src/imap/imap-2002cl/c-client'
make[3]: Leaving directory `/usr/share/src/imap/imap-2002cl/c-client'
`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`
gcc: ../c-client/c-client.a: No such file or directory
make[2]: *** [mtest] Error 1
make[2]: Leaving directory `/usr/share/src/imap/imap-2002cl/mtest'
make[1]: *** [bundled] Error 2
make[1]: Leaving directory `/usr/share/src/imap/imap-2002cl'
make: *** [gso] Error 2
bash-2.03# uname -a
SunOS web-new.engr.uvic.ca 5.8 Generic_108528-18 sun4u sparc 
SUNW,UltraAX-i2
bash-2.03# gcc -v
Reading specs from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/specs
Configured with: ../configure --disable-nls --with-ld=/usr/ccs/bin/ld 
--with-as=/usr/ccs/bin/as
Thread model: posix
gcc version 3.2.2

-- 
------------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/imap/c-client-list.html
------------------------------------------------------------------

---

From: Mark Crispin <[email-masked]>
Date: Thu, 1 May 2003 16:37:28 -0700 (Pacific Daylight Time)

> ARCHIVE: ar: not found

That's your problem: you don't have ar installed.  ar is a requirement.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.