On Jul 2, 2008, at 11:02 PM, srkraju wrote:

Dear curt, I tried to commented the calls and getting the following error while I try to compile on Redhat Linux AS4(g++3.4.3). Kindly assist me to
solve this issue.

thanks& regards
srkraju

From my previous message:

~
~I've set up a virtual machine running CentOS 4.0 x86 which comes with
~gcc 3.4.3 and did not have any issues.  There have been no other
~reports of similar catastrophic failures to compile.  It looks very
~much like a local machine issue and would be difficult for anyone to
~diagnose remotely. It almost appears that your header files are empty
~or that you've removed the include directives or using namespace
~directives from the source file.


As far as I can tell, there is something specific to your machine that is causing the problem. If there is another developer who could take a look at the problem, he might track down the issue faster. If not, I would suggest the following:

Download apache-log4cxx-0.10.0.tar.gz. The following assumes it was downloaded to ~/downloads:

$ mkdir newdir
$ cd newdir
$ tar -xvzf ~/downloads/apache-log4cxx-0.10.0.tar.gz
$ cd apache-log4cxx-0.10.0
$ ./configure
$ make

Based on your reports, you should have completed the previous commands without problems,

Then try

$ make check

If that completes successfully, then you have successfully built trivial and you can run it using

$ src/examples/cpp/trivial

If the make succeeded, there is some local change to the original log4cxx source that is responsible for the compile failures.

If "make check" failed with the previously reported compile failures, then try:

$ rm src/examples/trivial.o
$ rm src/examples/trivial
$ make CXXFLAGS=-E check

That should create a trivial.o which is the preprocessor output and not actually an object file. Rename and attempt to compile this file to see if you get the same errors:

$ cd src/examples/cpp
$ mv trivial.o test.cpp
$ gcc -c test.cpp

If that fails, compress test.cpp, create a new JIRA bug report (http://issues.apache.org/JIRA/browse/LOGCXX ) and attach test.cpp.gz.

$ gzip test.cpp

Reply via email to