[comp.archives] [comp.os.coherent] A guide to port WMAIL 3.63 to Coherent

joachim@jrix.radig.de (Joachim Riedel) (04/19/91)

Archive-name: mail/readers/wmail/1991-04-18
Archive: vax.ph-cip.uni-koeln.de:minix/net/wmail-3.63+.tar.Z [134.95.64.1]
Original-posting-by: joachim@jrix.radig.de (Joachim Riedel)
Original-subject: A guide to port WMAIL 3.63 to Coherent
Reposted-by: emv@msen.com (Edward Vielmetti, MSEN)

Hi,

Someone told me that he has problems to port WMAIL 3.63 to COherent.
WMAIL 3.63 is a mailx-clone, very good and I used it for several weeks
for mailing. In the mean time I'm back again on my 386/ix with ELM and
sendmail but everyone who works with Coherent should have WMAIL.
I was told it is available by FTP from plains.nodak.edu.

The most difficult problem is to unshar the sources but that should be
solvable.

You need:   the unshared files, about 20 minutes time (depends on how fast
            you can use your editor)

File wmail.h:
-------------
add the following line:

#define	off_t	long

delete all stuff between:
#ifdef MSDOS
...
...
#endif MSDOS

write a macro called _PROTOTYPE

#define _PROTOTYPE( function, params )   function () 
(I never tried that but it should work)
or be too lazy to think and edit the function prototyping as I did:

Example: (I was told that this is the most difficult problem)
--------

old code:    _PROTOTYPE ( void clr_exit, (int num) );
new code:    void clr_exit ();

-----------------------------------------------------------------------
Makefile:
---------
use the Makefile supplied for standard unix.
add -lndir
-----------------------------------------------------------------------
???.c:
------

delete all #include-lines with unknown Headerfiles (unistd.h,stdlib.h)
add/delete  sys/ in these lines where needed.
------------------------------------------------------------------------
wmmain.c:
---------
replace function   getcwd   with  getwd
------------------------------------------------------------------------
make
make install
------------------------------------------------------------------------
I hope that I didn't forget something

Nevertheless I will try to get WMAIL 3.63/Coherent ftped to piggy, I think
in about 10 days to two weeks it should be there.

Joachim

+---------------------------------------+-------+-------------------+-------+
|    Joachim Riedel                     | @   @ |    Don't worry,   | @   @ |
|    Geschwister-Scholl-Strasse 48      |  \_/  |    keep smiling   |  \_/  |
|    D-6050 Offenbach am Main           +-------+-------------------+-------+
|    Tel. +49 69 85 62 25               |       joachim@jrix.radig.de       |  
+---------------------------------------+-----------------------------------+

-- comp.archives file verification
vax.ph-cip.uni-koeln.de
-rw-r--r--  1 5027     2010        60865 Dec 10 23:29 minix/net/wmail-3.63+.tar.Z
found wmail ok
vax.ph-cip.uni-koeln.de:minix/net/wmail-3.63+.tar.Z