Hi , I have somewhat modified the rotatlogs utility to support compression . Although it creates files in compressed format (.gz) and rotates them properly the issue that i am facing is that when apache is restarted (graceful or stop/start way ) the last created compressed file doesn't seem to get closed . Is there a way to rectify this ? For compression I am using zlib .
Please help and thanks in advance. -Paras On Fri, Jan 23, 2009 at 1:41 PM, Paras Fadte <plf...@gmail.com> wrote: > Thanks Rainer, > > yeah.. me not a pro at development . > > On Fri, Jan 23, 2009 at 1:30 PM, Rainer Jung <rainer.j...@kippdata.de> wrote: >> On 23.01.2009 08:45, Paras Fadte wrote: >>> >>> Can you please tell me in which file ? >> >> I assume you are building rotatelogs from within the httpd sources. >> >> There is a file support/Makefile, which contains a line >> >> $(LINK) $(rotatelogs_LTFLAGS) $(rotatelogs_OBJECTS) $(PROGRAM_LDADD) >> >> Simply add "-lz" at the end of the line: >> >> $(LINK) $(rotatelogs_LTFLAGS) $(rotatelogs_OBJECTS) $(PROGRAM_LDADD) -lz >> >> In case you don't know what a Makefile is and how it basically works, you >> need to read about how to do C software development. >> >> Regards, >> >> Rainer >> >>> On Fri, Jan 23, 2009 at 1:09 PM, Rainer Jung<rainer.j...@kippdata.de> >>> wrote: >>>> >>>> On 23.01.2009 07:55, Paras Fadte wrote: >>>>> >>>>> Hi, >>>>> >>>>> I get following error when I try to use "compress" function of zlib in >>>>> "rotatelogs.c" . I have included "zlib.h" in rotatelogs.c . >>>>> >>>>> /home/paras/httpd-2.0.55/support/rotatelogs.c:294: undefined reference >>>>> to `compress' >>>>> collect2: ld returned 1 exit status >>>>> >>>>> Is it linking error ? where should I make the changes to eliminate this >>>>> error? >>>> >>>> Add -lz to the linking flags. >> >