Subject: Re: Help me compile PINE 3.92 for Linux

From: [email-masked] (Martin Wickman)
Date: 6 Apr 1996 11:58:24 GMT

On Thu, 04 Apr 1996 06:40:57 GMT, Martin Wickman <[email-masked]> wrote:

Sorry for replying to my own post, but now I have returned to my beloved
Linux box at home :-). Here's the errors that make produces. I hope it makes
sense to anyone. Again, please help me:

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'
writev.c: In function `safe_writev':
In file included from env_unix.c:68,
                 from os_lnx.c:56:
writev.c:63: warning: passing arg 2 of `writev' from incompatible pointer type
env_unix.c: In function `env_init':
In file included from os_lnx.c:56:
env_unix.c:258: 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:58:
tcp_unix.c:215: warning: passing arg 1 of `cpystr' discards `const' from pointer target type
tcp_unix.c: In function `tcp_aopen':
tcp_unix.c:292: warning: passing arg 1 of `cpystr' discards `const' from pointer target type
make[3]: *** [osdep.o] Error 1
make[3]: Leaving directory `/incoming/pine3.92/imap/ANSI/c-client'
make[2]: *** [lnx] Error 2
make[2]: Leaving directory `/incoming/pine3.92/imap/ANSI/c-client'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/incoming/pine3.92/imap'
make: *** [lnx] Error 2

Making Pico and Pilot
make: Nothing to be done for `all'.

Making Pine.
make: *** No rule to make target `../c-client/c-client.a', needed by `pine'.  Stop.

-- 
DOOM Multiplayer Games Server - http://www-und.ida.liu.se/~m92jesha/gamepal.html
-- SIGSIG -- bad signature file (core dumped) --

---

From: [email-masked] (Al Sparks)
Date: 06 Apr 1996 01:49:11 GMT

Here's the last part of my build, with errors.  Thank god for emacs.
*******************************************************************************

cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c helptext.c -o helptext.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c imap.c -o imap.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c init.c -o init.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c mailcap.c -o mailcap.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c mailcmd.c -o mailcmd.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c mailindx.c -o mailindx.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c mailpart.c -o mailpart.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c mailview.c -o mailview.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c newmail.c -o newmail.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c other.c -o other.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c pine.c -o pine.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c reply.c -o reply.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c screen.c -o screen.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c send.c -o send.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c signals.c -o signals.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c status.c -o status.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c strings.c -o strings.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c ttyin.c -o ttyin.o
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c ttyout.c -o ttyout.o
cd osdep; make includer os-lnx.c; cd ..
make[1]: Entering directory `/usr/local/src/pine3.92/pine/osdep'
cc -o includer includer.c
./includer < os-lnx.ic > os-lnx.c
make[1]: Leaving directory `/usr/local/src/pine3.92/pine/osdep'
rm -f os.c
ln -s osdep/os-lnx.c os.c
cc   -g -DDEBUG  -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c os.c -o os.o
os.c: In function `canonical_name':
os.c:970: warning: return discards `const' from pointer target type
make: *** No rule to make target `../c-client/c-client.a', needed by `pine'.  Stop.

Links to executables are in bin directory:
size: bin/pine: No such file or directory
size: bin/mtest: No such file or directory
size: bin/imapd: No such file or directory
text	data	bss	dec	hex	filename
152100 	22329  	2228   	176657 	2b211  	bin/pico
151028 	22210  	2228   	175466 	2ad6a  	bin/pilot
Done
bash#

---

From: Mark Crispin <[email-masked]>
Date: Sat, 6 Apr 1996 16:35:11 -0800

It looks like you have an unusually broken variant of Linux that doesn't
prevent multiple includes of <sys/uio.h>.  Since there are almost as many
variants of Linux as there are Linux systems, I recommend that you either
run our prebuilt binaries or fix your /usr/include/sys/uio.h to have a
wrapper to prevent it from being included more than once.

We define iovec ourselves in the Linux port because older versions of
Linux have the wrong definition (a void * instead of a caddr_t).

> make: *** No rule to make target `../c-client/c-client.a', needed by `pine'.  Stop.

-- Mark --

DoD #0105, R90/6 pilot, FAX: (206) 685-4045  ICBM: N 47 39'35" W 122 18'39"
Science does not emerge from voting, party politics, or public debate.