Re: spreadlogd 1.4.2, spread 3.16.2, FreeBSD 4.6-RELEASE

Theo Schlossnagle <[email protected]> Thu, 05 Sep 2002 10:30:09 -0400
Newsgroups gmane.comp.apache.mod-log-spread.user
Message-ID <[email protected]>
As one can apparently see.  This desperately calls for autoconf.  And, I 
would gladly accept a patch to bring spreadlogd into the autoconf world. 
:-)  It is a pretty substantial code addition (though not very 
complicated) and requires a lot of testing on different systems.  I just 
don't have the time right now.

Mike Parson wrote:

>On Thu, Sep 05, 2002 at 08:05:03AM -0500, Jay West wrote:
>  
>
>>I too was trying to get the exact same thing working yesterday, and would
>>like to work on it today. I'm not getting as far as Mike is though.... I
>>can't even get spreadlogd to compile. I'm using FreeBSD 4.6.2 and spreadlogd
>>1.4.2. Below is what I get when I try to compile, but from what I'm reading
>>on the list even if I get it to compile it looks like there's problems
>>running it on FreeBSD. Any thoughts that would help me get around both
>>compiling and running?
>>
>>Jay West
>>
>>On initial make I get this.....
>>    
>>
>
><snip>
>
>Same errors I was getting, try this (rather ugly) patch (I'm using the spread out of ports-current):
>
>== cut here ==
>diff -c spreadlogd-1.4.2/config.c spreadlogd-1.4.2-mparson/config.c
>*** spreadlogd-1.4.2/config.c	Wed Jul  4 12:01:46 2001
>--- spreadlogd-1.4.2-mparson/config.c	Tue Aug  6 16:09:59 2002
>***************
>*** 18,23 ****
>--- 18,24 ----
>  #include <sys/param.h>
>  #include <unistd.h>
>  #include <signal.h>
>+ #include <gnuregex.h>
>  
>  #include "config.h"
>  #include "skiplist.h"
>diff -c spreadlogd-1.4.2/config.h spreadlogd-1.4.2-mparson/config.h
>*** spreadlogd-1.4.2/config.h	Mon Jan  1 12:08:46 2001
>--- spreadlogd-1.4.2-mparson/config.h	Tue Aug  6 16:10:17 2002
>***************
>*** 13,20 ****
>  
>  #include <stdlib.h>
>  #include <sys/file.h>
>- #include <regex.h>
>  #include <sp.h>
>  
>  #include "hash.h"
>  #include "skiplist.h"
>--- 13,20 ----
>  
>  #include <stdlib.h>
>  #include <sys/file.h>
>  #include <sp.h>
>+ #include <gnuregex.h>
>  
>  #include "hash.h"
>  #include "skiplist.h"
>diff -c spreadlogd-1.4.2/config_gram.y spreadlogd-1.4.2-mparson/config_gram.y
>*** spreadlogd-1.4.2/config_gram.y	Sun Nov 12 19:43:19 2000
>--- spreadlogd-1.4.2-mparson/config_gram.y	Tue Aug  6 15:36:57 2002
>***************
>*** 10,15 ****
>--- 10,16 ----
>  */
>  
>  #include "config.h"
>+ #include <stdio.h>
>  
>  extern int line_num, semantic_errors;
>  extern int buffsize;
>diff -c spreadlogd-1.4.2/makefile spreadlogd-1.4.2-mparson/makefile
>*** spreadlogd-1.4.2/makefile	Sun Nov 12 19:43:19 2000
>--- spreadlogd-1.4.2-mparson/makefile	Tue Aug  6 16:11:50 2002
>***************
>*** 1,10 ****
>  CC=gcc
>! CFLAGS=-g -D__USE_LARGEFILE64 -Wall
>  INCLUDES=-I/usr/local/include
>  
>  #### BEGIN ARCH DEPENDANT SECTION ####
>  # For Linux
>! LDFLAGS=-L/usr/local/lib -L.
>  LIBS=-lsp -lskiplist
>  
>  # For Solaris
>--- 1,10 ----
>  CC=gcc
>! CFLAGS=-g -Wall
>  INCLUDES=-I/usr/local/include
>  
>  #### BEGIN ARCH DEPENDANT SECTION ####
>  # For Linux
>! LDFLAGS=-L/usr/local/lib -lgnuregex -L.
>  LIBS=-lsp -lskiplist
>  
>  # For Solaris
>***************
>*** 14,19 ****
>--- 14,20 ----
>  #### END ARCH DEPENDANT SECTION ####
>  
>  YACC=bison -y
>+ #YACC=yacc
>  LEX=flex
>  
>  OBJS=spreadlogd.o lex.yy.o y.tab.o config.o hash.o timefuncs.o
>== end patch ==
>
>  
>


-- 
Theo Schlossnagle
1024D/82844984/95FD 30F1 489E 4613 F22E  491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA  3D 90 B9 9F BE 27 24 E7