how to compile Pine in 10.2

emck

Registered
I am trying to compile Pine in 10.2 and I am getting some error since I am a little new at this I could use some help. I did compile Pine befaure in 10.1 and it worked OK.

here is the error that I am getting

make: *** [main.o] Error 1

Making Pine and rpload/rpdump.
make CC=cc -f makefile.osx
rm -f os.h
ln -s osdep/os-osx.h os.h
./cmplhlp2.sh < pine.hlp helptext.h
cc -g -DDEBUG -Dconst= -DSYSTYPE=\"OSX\" -c -o addrbook.o addrbook.c
/usr/include/sys/cdefs.h:84: warning: redefinition of macro const
In file included from ../pico/headers.h:31,
from headers.h:59,
from addrbook.c:48:
../pico/os.h:184: conflicting types for `sys_nerr'
/usr/include/stdio.h:265: previous declaration of `sys_nerr'
make: *** [addrbook.o] Error 1

Links to executables are in bin directory:
__TEXT __DATA __OBJC others dec hex
size: can't open file: bin/pine (No such file or directory)
634880 12288 0 651264 1298432 13d000 bin/mtest
671744 20480 0 688128 1380352 151000 bin/imapd
size: can't open file: bin/pico (No such file or directory)
size: can't open file: bin/pilot (No such file or directory)
size: can't open file: bin/rpdump (No such file or directory)
size: can't open file: bin/rpload (No such file or directory)
630784 12288 0 647168 1290240 13b000 bin/ipop2d
638976 12288 0 651264 1302528 13e000 bin/ipop3d
Done

thanks for your help

Edward
 
have you tried grabbing a readymade package from macosx.forked.net? it's not the latest version, but almost...server seems to be down ATM
 
No I have not tried to get a precompiled version, I would rather complile it my self but if all else fail that is what I will do.

thanks

edward
 
(www.osxgnu.org)
edit the file /usr/share/autoconf/autoconf.m4f line 7294 to read:

exit (setpgrp (0,0) == -1);])],
instead of
exit (setpgrp (1,1) == -1);])],

and set these environment variables: (either setenv or export, depends on shell you use)
CFLAGS=-no-cpp-precomp
LDFLAGS=-ltinfo -lgcc

(homepage.mac.com/samchops/MACOSX/list.html#pine)
Edit pico/osdep/os-osx.h
Delete the following line:
extern int sys_nerr;

Edit pico/makefile.osx
Change the line
LIBS= $(EXTRALDFLAGS)
to
LIBS= $(EXTRALDFLAGS) -lncurses

Edit pine/makefile.osx
Change the line
STDLIBS=
to
STDLIBS= -lncurses

Edit both pine/rpdump.c and pine/rpload.c:
Find occurrences of F_OK and, aside from the line #define F_OK 00,
change F_OK to 00.
Find occurrences of R_OK and, aside from the line #define R_OK 04,
change R_OK to 04.
Find occurrences of W_OK and, aside from the line #define W_OK 02,
change W_OK to 02.

./build osx SSLLIB=/usr/lib SSLINCLUDE=/usr/include/openssl SSLCERTS=/usr/local/certs (on one line)

This will compile pine and pico, you'll get redefining macro const errors quite a bunch, but they seem to work...
 
Back
Top