Subject: Compiling Pine 3.91 on Linux 1.3.95

From: [email-masked] (Robert Hart)
Date: 5 May 1996 02:33:56 GMT

I need to recompile pine to "allow changed from" lines.

I am working on a (Red Hat) 1.3.95 Linux kernel with the following
compiler/libraries

gcc-c++-2.7.2-2
gcc-2.7.2-2       

libc-profile-5.2.18-1
libc-debug-5.2.18-1
libc-static-5.2.18-1
libc-5.2.18-1
libc-devel-5.2.18-1
libc-include-5.2.18-1

When compiling I get

cd ANSI/c-client; make lnx
make[2]: Entering directory
`/usr/src/redhat/BUILD/pine3.91/imap/ANSI/c-client'
make mtest OS=lnx EXTRADRIVERS="" \
        STDPROTO=bezerkproto \
        RSHPATH=/usr/bin/rsh CFLAGS=" -O2 "\
        LDFLAGS=" -lbsd"
make[3]: Entering directory
`/usr/src/redhat/BUILD/pine3.91/imap/ANSI/c-client'
/drivers  imap nntp pop3 mh mtx tenex mmdf bezerk news phile dummy
rm -f OSTYPE CFLAGS LDFLAGS osdep.h
echo lnx > OSTYPE
echo -O2  > CFLAGS
echo -lbsd  > LDFLAGS
ln -s os_lnx.h osdep.h
cc -O2  -DSTDPROTO=bezerkproto \
-DRSH=\"rsh\" -DRSHPATH=\"/usr/bin/rsh\" \
 -c os_lnx.c
In file included from /usr/include/linux/socket.h:6,
                 from /usr/include/sys/socket.h:5,
                 from os_lnx.c:42:
/usr/include/linux/uio.h:18: redefinition of `struct iovec'
env_unix.c: In function `env_init':
In file included from os_lnx.c:56:
env_unix.c:206: warning: passing arg 1 of `cpystr' discards `const' from
pointer
 target type
tcp_unix.c: In function `tcp_open':
In file included from os_lnx.c:57:
tcp_unix.c:162: warning: passing arg 1 of `cpystr' discards `const' from
pointer
 target type
tcp_unix.c: In function `tcp_aopen':
tcp_unix.c:225: warning: passing arg 1 of `cpystr' discards `const' from
pointer
 target type
make[3]: *** [osdep.o] Error 1
make[3]: Leaving directory
`/usr/src/redhat/BUILD/pine3.91/imap/ANSI/c-client'
make[2]: *** [lnx] Error 2
make[2]: Leaving directory
`/usr/src/redhat/BUILD/pine3.91/imap/ANSI/c-client'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/pine3.91/imap'
make: *** [lnx] Error 2                                                 

Can someone help me sort this one out please?

--

Robert Hart                                  [email-masked]
Voice: +61 (0)91 72 0429                     Fax:   +61 (0)91 72 3560
Hedland College, PMB 1, South Hedland WA 6722 Australia

---

From: [email-masked] (John Ladwig)
Date: 7 May 1996 09:04:45 GMT

>/usr/include/linux/uio.h:18: redefinition of `struct iovec'

This did it for me on 1.3.91, though the conditional is, um, not optimal... 

     -jml

*** os_lnx.h    1996/05/05 23:21:08     1.1
--- os_lnx.h    1996/05/05 23:20:32
***************
*** 38,44 ****
--- 38,48 ----
  #include <string.h>
  #include <unistd.h>
  #include <sys/types.h>                /* iovec is broken here */
+ #if 0
  #include <sys/uio.h>          /* but fixed in some versions */
+ #else
+ #include <linux/uio.h>                /* and here in later versions */
+ #endif
  #include <sys/dir.h>
  #include <fcntl.h>
  #include <syslog.h>

--
UMN Dept. of Soil, Water, and Climate; St. Paul, MN | [email-masked]
<URL:http://www.soils.umn.edu/People/jladwig.html>  |   MIME/PGP welcomed
 That inline better be worth at least a thousand    |   Finger for geek code
 words - it takes up twenty thousand words' space.  |    and PGP public key