DG/UX

Matthias Andree matthias.andree at gmx.de
Wed Dec 17 01:56:49 CET 2003


Dave Lovelace <dave at firstcomp.biz> writes:

>> 2. using the known CFLAGS modification scheme, please try these four
>>    commands in shown order until either one succeeds or the list is exhausted:
>> 
>>    rm -f config.cache ; env CFLAGS="-O2 -g" ./configure && make
>> 
>>    rm -f config.cache ; env CFLAGS="-O -g" ./configure && make
>> 
>>    rm -f config.cache ; env CFLAGS="-O2" ./configure && make
>> 
>>    rm -f config.cache ; env CFLAGS="-O" ./configure && make
>> 
> OK, I did this.  None of them actually got through a complete make, but
> the last two seem to have produced a (maybe-) working bogofilter executable
> and then died trying to build bogogrep.  I'm appending a tarball.  The
> screen listings correspond to the order given above.

So -g in all variants is evil on DG/UX. I don't expect someone to repair
gcc 2.7.2 for us, so we'll just nuke any option that starts with -g on DG/UX.

As to bogogrep, apparently DG/UX doesn't define MAP_FAILED. Does this
patch help?

Index: contrib/bogogrep.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/contrib/bogogrep.c,v
retrieving revision 1.2
diff -u -c -r1.2 bogogrep.c
*** contrib/bogogrep.c	29 Jan 2003 01:02:14 -0000	1.2
--- contrib/bogogrep.c	17 Dec 2003 00:56:01 -0000
***************
*** 17,22 ****
--- 17,26 ----
  #include <unistd.h>
  #include <fcntl.h>
  
+ #ifdef __DGUX__
+ #define MAP_FAILED (-1)
+ #endif
+ 
  #define ALPHABET 256
  
  /* vanilla Boyer-Moore-Horspool */

-- 
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95




More information about the Bogofilter mailing list