Subject: Command line patched pine 4.58 compile fails for Mac OSX

From: Gedaliah Wolosh <[email-masked]>
Date: Wed, 17 Sep 2003 13:47:17 -0400 (EDT)

Hi,

I am running Mac OSX 10.2.6

gwolosh% patch -p1 < ../pine4.58.outgoing.patch

gwolosh% ./build SSLDIR=/System/Library/OpenSSL
SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib osx

Making Pine and rpload/rpdump.
make CC=cc SSLDIR=/System/Library/OpenSSL
SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib LDAPLIBS=-lldap
LDAPCFLAGS=-DENABLE_LDAP -f makefile.osx
cc   -g -DDEBUG -DDEBUGJOURNAL  -DENABLE_LDAP -Dconst= -DSYSTYPE=\"OSX\"
-c -o filter.o filter.c
/usr/include/sys/cdefs.h:84: warning: redefinition of macro const
filter.c: In function `so_get':
filter.c:209: `EXIT_FAILURE' undeclared (first use in this function)
filter.c:209: (Each undeclared identifier is reported only once
filter.c:209: for each function it appears in.)
make: *** [filter.o] Error 1

Suggestions anyone??

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

---

From: Eduardo Chappa <[email-masked]>
Date: Wed, 17 Sep 2003 11:06:36 -0700 (PDT)

*** Gedaliah Wolosh ([email-masked]) wrote in the pine-info list today:

:) /usr/include/sys/cdefs.h:84: warning: redefinition of macro const
:) filter.c: In function `so_get':
:) filter.c:209: `EXIT_FAILURE' undeclared (first use in this function)
:) filter.c:209: (Each undeclared identifier is reported only once
:) filter.c:209: for each function it appears in.)
:) make: *** [filter.o] Error 1

EXIT_FAILURE is supposed to be defined in the file /usr/include/stdlib.h,
since it is not, you will have to define it for yourself.

Edit the file pine4.58/pine.h and after the line

#define PINE_VERSION            "4.58"

add the following line

#define EXIT_FAILURE	(1)

Then rebuild Pine. Thank you for letting me know. I will fix the patch so
that this define will always appear.

Eduardo
http://www.math.washington.edu/~chappa/pine/