We have some code which started behaving strange after going to log4cxx for logging... I've isolated it down to the fact that log4cxx obliterates the TZ settings in timezone.cpp and dailyrollingfileappender.cpp

Questions:
        Instead of changing to GMT to calculate the diff, why not use gmtime() or gmtime_r()?
                - I've done this in our code that had to calculate this difference for a LogFile class that dates back almost 8 years...
                - This way there is not "side-effect"...
        *IF* I change the code to work that way, any chance of having it included in the 'official' package?

I also noticed that on Solaris using CC, if I compile the whole thing after a "make clean", it works.  But then if I go change a file & recompile... it doesn't work.  Looks like the problem is in the 'cache' files that Sun's CC uses for templates.... somehow during the build process, those files are either deleted or overwritten... and the next time, when you change a single file & compile... the linker cannot file a bunch of templates...

Regards

Renny Koshy
President & CEO

--------------------------------------------
RUBIX Information Technologies, Inc.
www.rubixinfotech.com

Reply via email to