Subject: pine4.44 will not build under osx10.2/ dev tools 10.2

From: Tom Pratum <[email-masked]>
Date: Sat, 24 Aug 2002 18:29:38 -0700

I can't get pine4.44 to build under osx10.2 with dev tools 10.2 loaded. 
Below is part of the build output which shows the error:

Making Pico and Pilot
make CC=cc -f makefile.osx
rm -f os.h
ln -s osdep/os-osx.h os.h
cc   -g -DDEBUG  -Dbsd -DJOB_CONTROL   -c -o main.o main.c
In file included from headers.h:31,
                  from main.c:38:
os.h:185: conflicting types for `sys_nerr'
/usr/include/stdio.h:265: previous declaration of `sys_nerr'
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:185: 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

A simple minded commenting out of "external int sys_nerr;" in os-osx.h 
seems only to make matters worse. I tried compiling with both cc and 
gcc.
Helpful hints or corrections are welcome.
Thank you.

Tom Pratum

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------