Hi Gang, I am also having trouble getting SMTPAppender working on Linux with the 0.9.8 codebase. Similar to Bruce below, I configured log4cxx with the --with-SMTP=libsmtp flag, but was still forced to manually set LOG4CXX_HAVE_SMTP to 1 in log4cxx_private.h in order to completely compile smtpappender.cpp. I am getting several compile errors related to the _T() macro and other issues. I did some digging and see that the old tchar.h header file that was packaged with 0.9.7 under log4cxx/helpers is no longer supported. However, the current code in smtpappender.cpp wrapped inside the #if LOG4CXX_HAVE_SMTP directive still makes _T() macro calls and is in need of refactoring. Can anyone tell us whether or not SMTPAppender is still slated to be supported in 0.9.8 for Linux?
To replicate the behavior, set LOG4CXX_HAVE_SMTP to 1 in /include/log4cxx/private/log4cxx_private.h and try to make again... log4cxx-0.9.8# make I appreciate any feedback you guys have on this issue! By the way, I am building against the 5/30/06 release of log4cxx-0.9.8 from littletux in a Suse EL 9.3 environment. Thanks a lot, =) Brad Owens -----Original Message----- From: Bruce Riley [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 1:39 PM To: Log4CXX User Subject: SMTPAppender for Log4cxx? Hi, I am trying to use the SMTPAppender on a Linux platform, with log4cxx-0.9.8, and I'm having problems. I installed libsmtp, and built with the --with-SMTP=libsmtp flag, but I still get the following errors: log4cxx: Could not instantiate class [org.apache.log4j.net.SMTPAppender]. log4cxx: Class not found: org.apache.log4j.net.SMTPAppender log4cxx: Could not instantiate appender named "mail". Looking at the code, I found that LOG4CXX_HAVE_SMTP is turned off. I manually turned it on, and am getting compiler errors in smtpappender.cpp. This leads me to believe that SMTPAppender is not supported on Linux. Is this true? Or am I missing a step in my configuration? Thanks in advance Bruce Riley
