logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srkraju <rama...@cmcltd.com>
Subject RE: MAKE error : While compiling trivial.cpp:Urgent
Date Fri, 20 Jun 2008 11:48:51 GMT
Dear Curt,
Thanks for your response.
Do you mean: commenting all LOG4CXX_XXXX calls in trivial.cpp.
And adding :: log4cxx::helpers::MessageBuffer oss; in trivial.cpp

I did the above steps. But it is giving like
trivial.cpp:30: error: `BasicConfigurator' has not been declared
trivial.cpp:30: error: `configure' undeclared (first use this function)
trivial.cpp:30: error: (Each undeclared identifier is reported only once for
each function it appears in.)
trivial.cpp:33: error: `NDC' has not been declared
trivial.cpp:33: error: `push' undeclared (first use this function)
trivial.cpp:41: error: `NDC' has not been declared
trivial.cpp:41: error: `pop' undeclared (first use this function)

if I comment the above lines then it is giving same errors in other files.
Shall I continue in the same way. If so, what happens if any LOG4CXX_XXXX
call made in our programs. Awaiting your response. 

thanks& regards
srkraju

~-----Original Message-----
~From: Curt Arnold [mailto:carnold@apache.org]
~Sent: Friday, June 20, 2008 11:34 AM
~To: Log4CXX User
~Subject: Re: MAKE error : While compiling trivial.cpp:Urgent
~
~
~On Jun 19, 2008, at 10:56 PM, srkraju wrote:
~
~>
~> Still I am unable to solve this make error. Please suggest any
~> modifications required in trivial.cpp
~> Can use the libraries(like log4cxx,apr-1.2.2, aprutil-1.2.2) which
~> are built in g++4.x  in 3.x .
~>
~>
~> thanks& regards
~> srkraju
~
~I had no problems on CentOS 4.5 (gcc 3.4.6) which is my closest
~approximation to your environment.  I am using apr 1.2.12 and apr-
~util-1.2.12, but that should have no impact on a compile error.
~
~Have you made any local modifications, particularly to log4cxx/helpers/
~messagebuffer.h?  That file had been a concern when you were
~attempting to build with gcc 2.96.
~
~As far as I can tell, gcc 3.4.3 was in the original RHEL 4 but was
~upgraded to gcc 3.4.4 in "Update 2".
~
~If you are still seeing the issue, time for some experimentation.  The
~error is indicating that log4cxx::helpers::MessageBuffer is not
~defined, this class is referenced by an expansion of the LOG4CXX_DEBUG
~and similar macros.
~
~Try the following experiments:
~
~1. #if 0 out all the LOG4CXX_DEBUG and similar macros removing all the
~logging requests.  Run make.  Would expect no compile issues.
~
~2. Add the following line to trivial.cpp at the same place as the #if
~0'd logging requests
~
~      ::log4cxx::helpers::MessageBuffer oss;
~
~Attempt to build.  This should fail with the same type of warning.
~
~3. Try removing the leading :: in the preceding line.  If that
~compiles while the previous line fails, then remove the leading ::
~from the macro definitions in logger.h.
~
~If anyone has similar reports or wants to report no problems with gcc
~3.4.3 please speak up.  From what I can tell, it is either a compiler
~specific issue or a local modification.


DISCLAIMER

“The information contained in this e-mail message and/or attachments to it may contain confidential
or privileged information. If you are not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the information contained in this e-mail message
and/or attachments to it are strictly prohibited. If you have received this communication
in error, please notify us by reply e-mail or telephone and immediately and permanently delete
the message and any attachments. Thank you"

Mime
View raw message