You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Ambarish Mitra <am...@persistent.co.in> on 2005/09/01 11:04:10 UTC

RE: Apache Log4cxx - problem with make on Solaris

I could figure out the cause of the error. In the file gnomexml.h, I added
the following line:

#include <libxml/parser.h>    // added later. Ambarish. Sept 1, 2005

and it fixed the error. The error was that the function  `xmlParseFile'  was
declared in /usr/include/libxml/parser.h, but this was #included.

Is this a bug with configure script?

Thanks to anyone who may have spent some time on this.



-----Original Message-----
From: Ambarish Mitra [mailto:ambarish_mitra@persistent.co.in]
Sent: Wednesday, August 31, 2005 5:30 PM
To: log4cxx-user@logging.apache.org
Subject: Apache Log4cxx - problem with make on Solaris

Hi,

I am using Apache Log4cxx 0.9.7 on Solaris 8. I have been able to generate
the Makefile using the autogen script, but I am having problems in "make".

When I do 'make', I get the following error. [gnomexml.cpp:94: error:
`::xmlParseFile' undeclared]
I had run ./configure -prefix = /some/path/for/log4cxx/local/

If anyone can tell me what went wrong, that would be helpful. Do I need to
set some parameters before this?

Regards,
Ambarish.


g++ -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -I/usr/include
/libxml2/libxml -I/usr/include/libxml2 -D_REENTRANT -g -O2 -MT
gnomexml.lo -MD -MP -MF .deps/gnomexml.Tpo -c gnomexml.cpp  -fPIC -DPIC -o
.libs/gnomexml.o
gnomexml.cpp: In member function `virtual void
   log4cxx::helpers::GnomeXMLDOMDocument::load(const log4cxx::String&)':
gnomexml.cpp:94: error: `::xmlParseFile' undeclared (first use here)
*** Error code 1
make: Fatal error: Command failed for target `gnomexml.lo'
Current working directory
/export/home/proserv/installers/log4cxx/log4cxx-0.9.7/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
bash-2.05$