Loading ...
Sorry, an error occurred while loading the content.

2859Re: webalizer with special log file format

Expand Messages
  • crawling_weasel
    Aug 1, 2004
      Hello!

      Well I tried ... but I never worked with C before, did not have an
      compiler etc. I installed Borland, downloaded gdwin and zlib as dlls
      and lpng (no dll available) ... but I did not succeed, simply did not
      understand what to do.

      Is there anywhere a simple step-by-step tutorial how to compile
      webalizer on Windows (XP)? Including all downloads and a
      recommendation which compiler to use?

      Or a way to solve my problem without changing the webalizer source code?

      Thanks a lot in advance

      Hans


      > Hello & Thanks for your answer.
      >
      > So, the only way to do it is to edit the source code? Well, I'll try,
      > but got to get a C-compiler. If anybody has another idea, please
      tell me.
      >
      > As I never worked with C before allow me to ask further questions to
      > make sure:
      >
      > > ------------- CUT HERE -------------
      > > --- parser.c.orig Sat Jul 31 09:33:57 2004
      > > +++ parser.c Sat Jul 31 09:36:12 2004
      >
      > So I edit parser.c ...
      >
      > > @@ -339,6 +339,9 @@
      > > /* done with CLF record */
      >
      > Look for this line ...
      >
      > > if (cp1>=eob) return 1;
      > >
      >
      > and after it I insert the following three lines ...
      >
      > > + while ( (*cp1 != '\0') && (cp1 < eob) ) cp1++; /* skip host id */
      > > + if (cp1 < eob) cp1++;
      > > +
      >
      > ... and leave everthing else the way it is ...
      >
      > > while ( (*cp1 != '\0') && (*cp1 != '\n') && (cp1 < eob) ) cp1++;
      > > if (cp1 < eob) cp1++;
      > > /* get referrer if present */
      > > ------------- CUT HERE -------------
      >
      > ... and compile webalizer.c .... that's it ... (?)
      >
      > If I understood right no answer is necessary.
      >
      > Thanks a lot
      >
      > Hans
    • Show all 5 messages in this topic