X-Mailer: exmh version 1.6.4 10/10/95
X-Face: x7OynEM*dB$e.2'7pigelLk>5:Nu:%r*iV96{F2XIT.apbrc-vOFSi{yI$3=nJ-Qi)allj4
 =)4cWlX@IQ1Dsmk}T4qX~{XI5Z01>PV^cYR'~cL]&ma<{rYg~Ao-:~:sM%z}^M65`;1TZ}Tze"4/=F
 ~o&8;"SKHwB?%"xpP/=pkhdZVP$rQQ{"{QT`#kcx7!\/y+crQa4^nLEms6_k4O*o#fo[WBs~~&.%jf
 |;W@E2K#{U~%vhvth^uDLWD`<OLQ;48T].laq_}3abY7nO5
X-Uri: http://www.milkyway.com/People/Michael_Richardson/Bio.html
To: Paul A Vixie <paul@vix.com>
Subject: Re: bind's compat/lib 
References: <9601170026.AA01573@wisdom.home.vix.com> 
In-reply-to: Your message of "Tue, 16 Jan 1996 16:26:04 PST."
             <9601170026.AA01573@wisdom.home.vix.com> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 17 Jan 1996 09:35:39 -0500
From: Michael Richardson <mcr@metis.milkyway.com>

In a galaxy far, far away, : Tue, 16 Jan 1996 16:26:04 PST
> yes please

  Okay, details. It is based on BSD44-lite's vfprintf() call. I didn't replace
the vfprintf()/fprintf()/etc. 

  It needs internal routines from the 4.4 strtod (included).
  And I threw strtoul in as well. 
  (You already include that in your compat/lib). 
  The 4.4 syslog(3) client code is there, using the snprintf().
  The problem is that it supports %q. This requires long long support, so
this has to compiled with gcc. You then need libgcc.a to link. I considered removing the long long support, but since libgcc.a is explicitely non-encumbered, I didn't worry about it.

  I've linked this in with sendmail 8.6.12. I sent it to Eric Allman, but I
don't know if he included it in 8.7.
  Do what you like with this code, but leave my name somewhere.

  The code is at ftp://ftp.milkyway.com/pub/mcr/snp.tar.gz





From: Mike Nolan <nolan@naic.edu>
Date: Thu, 10 Oct 2002 16:53:43 -0400 (AST) (21:53 IST)
To: jm@jmason.org

Hi,
You asked for a summary of building spamc on SunOS4, here it is:


I built SpamAssassin under Sunos 4.1.3

I had to do several little things to build spamc (snprintf).
First, it needs sys/cdefs.h. A short version with the necessary
things is below.

Second, there was an initialization error in vsnprintf, so that
the return value was random. The result was that spamc always just
bailed out as if it couldn't get a connection to spamd.

% cd contrib
% gtar xzf snp.tar.gz
% cd snp

[Oct 15 2002 jm: new "cdefs.h" file included into source]
[Oct 15 2002 jm: error in snprintf.c already patched into source]

% gmake libsnp.a


OK, now go to the spamassassin directory, and compile

% gcc -g -O2 spamd/spamc.c spamd/libspamc.c spamd/utils.c -o spamd/spamc -ldl -lnsl contrib/snp/libsnp.a -lm

% gmake

Now you have spamc and spamd.



-Mike

---------------------------
Mike Nolan <nolan@naic.edu>
+1 787 878 2612x334  Fax: +1 787 878 1861
Arecibo Observatory / Cornell University
HC03 Box 53995, Arecibo, PR 00612  USA


