Subject: pine 3.90 doesn't build under HP-UX with +O3 optimisation

From: [email-masked] (Richard Lloyd)
Date: Wed, 31 Aug 1994 15:54:12 GMT

Just thought folks might like to know that the pine directory in
pine-3.90 contains source code that doesn't build correctly with +O3
under HP-UX 9.X and HP's ANSI C compiler (Revision A.09.66). I haven't yet
narrowed it down to an individual file, but I suggest HP-UX users reduce
the optimisation to +O2 +Onolimit if they've tried +O3.

Also, a couple of makefile.hpp's (in pico and pine) mention -Dhpp and -DHPP,
but a quick grep for the use of these turns up nothing, so they seem to be
irrelevant now.

Plus, the files imap/ANSI/c-client/strstr.c and imap/ANSI/c-client/strol.c
attempt to redefine strstr() and strtol(), both of which are available under
HP-UX :-(

BTW, there's an uninitialised variable in the pine-3.90 source code:

pine/filter.c (line 681) - the c character is not given a value, so I used
char c='\0'; to initialise it.

If you want a version of pine 3.90 that compiles OK with HP-UX and the ANSI C
compiler, then check out /hpux9/Users/pine-3.90.tar.gz on one of our official
sites below. It also comes with an "elm-to-pine" alias converter script, some-
thing the pine folks deliberately omitted !

HP-UX Archive Librarian,    E-mail queries: [email-masked]
Computer Science Dept.,     Official anonymous FTP sites (get /README first):
Liverpool University,       United Kingdom: hpux.csc.liv.ac.uk  [NEW NAME !!!]
United Kingdom.             Germany:        hpux.ask.uni-karlsruhe.de
                            United States:  ftp.cae.wisc.edu
Not got xbrowser 1.4 yet ?  France:         hpux.cict.fr
You'll find it in           Official World Wide Web sites:
/hpux9/X11R5/Networking     United Kingdom: http://hpux.csc.liv.ac.uk/intro.html
                            Unisted States: http://www.cae.wisc.edu/

---

From: Barry Cornelius <[email-masked]>
Date: Wed, 31 Aug 1994 18:31:44 +0100 (BST)

On Wed, 31 Aug 1994, Richard Lloyd wrote:

> the optimisation to +O2 +Onolimit if they've tried +O3. ...

Although what you have written is actually technically correct, readers of
your message may get the impression that the Pine distribution does not
build OK as distributed.  It does build straight out of the box by typing: 
   build hpp
If you do this, you will get the following options:
   cc -DHPP   -g -DDEBUG -DSYSTYPE=\"HPP\" -c filename.c

> ... an "elm-to-pine" alias converter script, some- 

The Pine folks provide a contributed one at:
   http://www.cac.washington.edu/pine/faq/conversion.html

--
Barry Cornelius                      Telephone: (0191 or +44 191) 374 4717
IT Service, Science Site,    IT Service Office: (0191 or +44 191) 374 2892   
University of Durham,                      Fax: (0191 or +44 191) 374 3741
Durham, DH1 3LE, UK                   E-mail: [email-masked]