In gcc 4.3 some bugs were fixed, unfortunately they can cause compile errors with code that would compile with older versions.
In particular this is the case with log4cpp 1.0 which fails with the following message: BasicLayout.cpp:37:5: error: ‘auto_ptr’ in namespace ‘std’ does not name a type
Luckily the fix is very simple; all that is required to get a clean compile is add an #include <memory> in src/BasicLayout.cpp.
Thanks! Helped me when I was trying to compile my code using new version of gcc..