[hashcash] Re: 0.29 rc portability test

Adam Back wrote:

> So I incorporated changes for mac OSX, freeBSD and solaris 9 (they
> removed setenv(3)/unsetenv(3) which was there in solaris 8 would you
> believe).
> 
> Could someone on BSD, mac OSX and freeBSD check this unreleased 0.29 to
> check that changing setenv/unsetenv for putenv still compiles clean on
> those platforms?
> 
>       http://www.hashcash.org/source/current/
> 
> (Cc Jeff who reported solaris 9 problem).

I also encountered a problem compiling under MacOS X.  For some reason 
the gnu tool chain did not generate the unix symbol for conditional 
compilation.  I needed to add it in manually.

Another problem is that you do not lock your double spending database 
files!  Granted, it won't be a problem for another few weeks what with 
all these antispam tools adopting the technology but we really should 
take care of it now even at the very simple level like making a 
directory and if it exists, somebody else has the lock.  I have some 
patches from one of the camram contributors with traditional locking.  I 
will test them out and send them on.

---eric



-- 
Speech recognition in use.  Incorrect endings, words, and case is
closer than it appears

Other related posts: