On Jan 16, 2007, at 3:51 PM, Jostein Tveit wrote:

Hello log4cxx developers!

Latest log4cxx from trunk fails unit testing with the error
messages below.

Last time I compiled and tested from trunk (~May 2006) all unit
tests passed.

Do you have any idea why the class and method elements of the XML
are missing? Any recent changes that could possibly affect this
part of log4cxx?

System is Solaris 8 with Sun Studio 11 compiler (32 bit
compilation).

Regards,
Jostein Tveit.


The offending code is very likely the tail end of include/log4cxx/spi/ location/locationinfo.h. That fragment attempts to detect Microsoft C ++ and use its __FUNCSIG__ predefined macro or gcc and use its __PRETTY_FUNCTION__ macro. Any other compiler will get blank class and method names. Likely using __func__ in the fallback case would be better, but it would likely give you a mangled name and not a clearly distinguishable class and method name. See http:// durgaprasad.wordpress.com/2006/11/

I don't think the locationinfo.h file has changed in the period that you mentioned, but maybe those tests were enabled since then.

I'll take a shot at making the code behave okay with __func__ tomorrow (using gcc as a test bed). I have OpenSolaris (nvd49) and Sun Studio 11 on a VM, but haven't installed Subversion any other tools or gotten a build going yet. So any hints would be appreciated.



Reply via email to