From: sti@cs.hut.fi (Sami-Jaakko Tikka)
Newsgroups: comp.mail.mh
Subject: Problems in compiling under SunOS 4.1
Date: 6 Sep 92 23:13:12 GMT
Reply-To: Sami.Tikka@hut.fi
Distribution: comp
Organization: Helsinki University of Technology, Finland
X-Md4-Signature: c5c2f96ef1a9d66d05a76083f5bc1add


I haven't been able to compile MH on my system.  The symptoms are
included at the end of this message.  Any help would be greately
appreciated. 

My environment: SunOS Release 4.1.2 (LAPHROAIG) #1: Wed Jul 8 12:48:35 EET DST 1992
We have NFS and YP and would also like to run POP.  I would also like
to use shared libraries to make executables smaller.

This is the file I fed to mhconfig:

# For Sun OS 4.* with SendMail, running Yellow Pages, and /etc/named.
# MH will post mail through an SMTP connection to the localhost's
# SendMail daemon.  Be sure to set "servers" in your mtstailor file.
#
#bin	/usr/new/mh
bin     /v/MH-6.7.2/bin
#etc	/usr/new/lib/mh
etc     /v/MH-6.7.2/mh
mail	/usr/spool/mail
manuals	new
editor	prompter
mts	sendmail/smtp
options	BSD42 BSD43 SUN40 SUN41 TYPESIG=void
options	DBM
options BIND
curses	-lcurses -ltermcap
cc      gcc
ccoptions -O -pipe
ranlib	on
ldoptions -s -O
sharedlib on
slibdir   /usr/lib
#
# include "bbc" support to read NetNews via the NNTP.
#
bboards	nntp
bbdelivery on
bbhome /v/MH-6.7.2/bboards
pop	on
#
# These are optional: 
#
# DUMB	  restricts some address defaulting
# RPATHS  don't throw away UNIX "From " lines
# MHE	  for Emacs/MH interface
# SBACKUP change to "#" instead of ","
# MSGPROT default messages to 0600 protection mode
#
options	DUMB 
options	RPATHS
options	MHE 
options	SBACKUP='"\\043"'
options	MSGPROT='"0600"'
options FOLDPROT='"0700"'
options ATTVIBUG
options ISI
options LOCKF
options MHRC
options POP2
options UK

And this is my mtstailor-file:

servers:	localhost \01localnet

mmdfldir:	@(MHDROPATH)
mmdflfil:	@(MHDROPFIL)
uucpldir:	/usr/spool/mail
uucplfil:	
mmdelim1:	\001\001\001\001\n
mmdelim2:	\001\001\001\001\n
mmailid:	0
umincproc:
lockldir:

hostable:	@(MHETCPATH)/hosts
sendmail:	/usr/lib/sendmail


Make in the main directory goes like this:

for d in config sbr mts zotnet uip support doc; do (cd $d; make DESTDIR=  -k all); done
gcc -DBSD42 -DBSD43 -DSUN40 -DSUN41 -DTYPESIG=void -DDBM -DBIND -DDUMB -DRPATHS -DMHE -DSBACKUP='"\043"' -DMSGPROT='"0600"' -DFOLDPROT='"0700"' -DATTVIBUG -DISI -DLOCKF -DMHRC -DPOP2 -DUK -DSENDMTS -DSMTP -DPOP -DBPOP -DNNTP -O -pipe   -c config.c -o config.o
MH 6.7.2 #6[UCI]
gcc -DBSD42 -DBSD43 -DSUN40 -DSUN41 -DTYPESIG=void -DDBM -DBIND -DDUMB -DRPATHS -DMHE -DSBACKUP='"\043"' -DMSGPROT='"0600"' -DFOLDPROT='"0700"' -DATTVIBUG -DISI -DLOCKF -DMHRC -DPOP2 -DUK -DSENDMTS -DSMTP -DPOP -DBPOP -DNNTP -O -pipe   -c version.c -o version.o
rm -f add.o shared/add.o
gcc -DBSD42 -DBSD43 -DSUN40 -DSUN41 -DTYPESIG=void -DDBM -DBIND -DDUMB -DRPATHS -DMHE -DSBACKUP='"\043"' -DMSGPROT='"0600"' -DFOLDPROT='"0700"' -DATTVIBUG -DISI -DLOCKF -DMHRC -DPOP2 -DUK -DSENDMTS -DSMTP -DPOP -DBPOP -DNNTP -O -pipe -c -pic add.c
gcc: unrecognized option `-pic'
mv add.o shared/add.o
rm -f add.o
gcc -DBSD42 -DBSD43 -DSUN40 -DSUN41 -DTYPESIG=void -DDBM -DBIND -DDUMB -DRPATHS -DMHE -DSBACKUP='"\043"' -DMSGPROT='"0600"' -DFOLDPROT='"0700"' -DATTVIBUG -DISI -DLOCKF -DMHRC -DPOP2 -DUK -DSENDMTS -DSMTP -DPOP -DBPOP -DNNTP -O -pipe -c add.c
ld -x -r add.o
mv a.out add.o

<... a lot of similar successful compilations removed for brevity ... >

rm -f m_msgdef.o shared/m_msgdef.o
gcc -DBSD42 -DBSD43 -DSUN40 -DSUN41 -DTYPESIG=void -DDBM -DBIND -DDUMB -DRPATHS -DMHE -DSBACKUP='"\043"' -DMSGPROT='"0600"' -DFOLDPROT='"0700"' -DATTVIBUG -DISI -DLOCKF -DMHRC -DPOP2 -DUK -DSENDMTS -DSMTP -DPOP -DBPOP -DNNTP -O -pipe -c -pic m_msgdef.c
gcc: unrecognized option `-pic'
mv m_msgdef.o shared/m_msgdef.o
rm -f m_msgdef.o
gcc -DBSD42 -DBSD43 -DSUN40 -DSUN41 -DTYPESIG=void -DDBM -DBIND -DDUMB -DRPATHS -DMHE -DSBACKUP='"\043"' -DMSGPROT='"0600"' -DFOLDPROT='"0700"' -DATTVIBUG -DISI -DLOCKF -DMHRC -DPOP2 -DUK -DSENDMTS -DSMTP -DPOP -DBPOP -DNNTP -O -pipe -c m_msgdef.c
ld -x -r m_msgdef.o
mv a.out m_msgdef.o
mv libmh.a zlibmh.a
mv: libmh.a: No such file or directory
make[1]: *** [libmh.a] Error 1 (ignored)
ar r libmh.a add.o adios.o admonish.o addrsbr.o advertise.o advise.o ambigsw.o atooi.o brkstring.o closefds.o concat.o copy.o copyip.o cpydata.o cpydgst.o discard.o done.o fdcompare.o gans.o getans.o getanswer.o getcpy.o help.o fmtcompile.o formataddr.o formatsbr.o m_atoi.o m_backup.o m_convert.o m_delete.o m_draft.o m_find.o m_fmsg.o m_foil.o m_getdefs.o m_getfld.o m_getfolder.o m_gmprot.o m_gmsg.o m_maildir.o m_name.o m_readefs.o m_remsg.o m_replace.o m_scratch.o m_seq.o m_seqbits.o m_seqflag.o m_seqnew.









o m_setcur.o m_setseq.o m_setvis.o m_sync.o m_tmpfil.o m_update.o m_whatnow.o makedir.o path.o peekc.o pidwait.o pidstatus.o printsw.o push.o putenv.o pwd.o refile.o remdir.o r1bindex.o showfile.o smatch.o sprintb.o ssequal.o strindex.o trimcpy.o uleq.o uprf.o vfgets.o formatdef.o m_msgdef.o; ranlib libmh.a
Creating archive file `libmh.a'
-rw-r--r--   1 sti      other      115114 Sep  7 01:41 libmh.a
MH library built normally
mv -f libmh.so zlibmh.so
mv: libmh.so: No such file or directory
make[1]: *** [libmh.so] Error 1 (ignored)
(cd shared; ld -o ../libmh.so -assert pure-text add.o adios.o admonish.o addrsbr.o advertise.o advise.o ambigsw.o atooi.o brkstring.o closefds.o concat.o copy.o copyip.o cpydata.o cpydgst.o discard.o done.o fdcompare.o gans.o getans.o getanswer.o getcpy.o help.o fmtcompile.o formataddr.o formatsbr.o m_atoi.o m_backup.o m_convert.o m_delete.o m_draft.o m_find.o m_fmsg.o m_foil.o m_getdefs.o m_getfld.o m_getfolder.o m_gmprot.o m_gmsg.o m_maildir.o m_name.o m_readefs.o m_remsg.o m_replace.o m_scratch.o m_seq.









o m_seqbits.o m_seqflag.o m_seqnew.o m_setcur.o m_setseq.o m_setvis.o m_sync.o m_tmpfil.o m_update.o m_whatnow.o makedir.o path.o peekc.o pidwait.o pidstatus.o printsw.o push.o putenv.o pwd.o refile.o remdir.o r1bindex.o showfile.o smatch.o sprintb.o ssequal.o strindex.o trimcpy.o uleq.o uprf.o vfgets.o formatdef.o m_msgdef.o)
ld: add.o: assert pure-text failed: reference to _free at e8 in add.o

ld: add.o: assert pure-text failed: reference to _sprintf at d0 in add.o

ld: add.o: assert pure-text failed: reference to [offset] at c8 in add.o

ld: add.o: assert pure-text failed: reference to [offset] at c4 in add.o

ld: add.o: assert pure-text failed: reference to [offset] at bc in add.o

ld: add.o: assert pure-text failed: reference to _adios at b8 in add.o

ld: add.o: assert pure-text failed: reference to [offset] at b4 in add.o

ld: add.o: assert pure-text failed: reference to _malloc at 9c in add.o

ld: add.o: assert pure-text failed: reference to _strlen at 90 in add.o

ld: add.o: assert pure-text failed: reference to _strlen at 84 in add.o

ld: add.o: assert pure-text failed: reference to [offset] at 80 in add.o

ld: add.o: assert pure-text failed: reference to [offset] at 7c in add.o

ld: add.o: assert pure-text failed: reference to [offset] at 6c in add.o

ld: add.o: assert pure-text failed: reference to [offset] at 68 in add.o

ld: adios.o: assert pure-text failed: reference to _done at 134 in adios.o

ld: adios.o: assert pure-text failed: reference to _advise at 12c in adios.o

ld: admonish.o: assert pure-text failed: reference to _advertise at 18c in admonish.o


.... and so on ad infinitum.

Any clues?  This is my first MH installation and the instructions said
'complain if you have problems as there should be none'.  :)
--
Sami.Tikka@hut.fi                                  "Live Long and Prosper!"
---------------------------------------------------------------------------
"I think there's a world market for about 5 computers."
        - Thomas J. Watson, Chairman of the Board, IBM (around 1948)
Newsgroups: comp.mail.mh