Paul,

even the configure script is not able to locate expat headers. It is 
wrong. Try to set CPPFLAGS and C_IMCLUDE_PATH

Here is an excerpt from the INSTALL file :)

CPLUS_INCLUDE_DIR: is needed if you didn't install Sablotron (and
mainly Expat) into system directories and you're going compile new
version against older version of Expat. (see "Preinstalled Expat")

On some systems (UnixWare, NetBSD...) the compiler is unable to find
headers in /usr/local/include. Consequently the 'configure' script
doesn't find the expat header and compilation fails. To avoid this
problem, set CPPFLAGS environment to
'-I/usr/local/include'. CPLUS_INCLUDE_DIR is not enough.

HTH

Paul Mindeman wrote:

> Tom Kaiser wrote:
> 
>> 
>> Paul,
>> what does the configure output say about expat, has it been found? The 
>> first error is a reference to a type (XML_Encoding) defined in 
>> expat.h. So my guess is that expat wasn't found, hence expat.h didn't 
>> get included. From your reference to configuring expat I gather you 
>> have the required expat 1.95 installed, is that right?
>> 
>> Tom
>> 
> 
> Yes, expat 1.95.1 is installed.  The libraries (libexpat.a, libexpat.so, 
> etc) are located in /usr/local/lib, expat.h is located in 
> /usr/local/include.
> 
> The LD_LIBRARY_PATH environment variable was set to 
> /usr/lib:/usr/local/lib before running configure.  configure was ran as 
> follows:
> $ LDFLAGS=-L/usr/local/lib CXXFLAGS=-I/usr/local/include ./configure
> 
> The output follows:
> 
> creating cache ./config.cache
> checking for a BSD compatible install... tools/install-sh -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking host system type... sparc-sun-solaris2.8
> checking build system type... sparc-sun-solaris2.8
> checking for ranlib... ranlib
> checking for gcc... gcc
> checking whether the C compiler (gcc  -L/usr/local/lib) works... yes
> checking whether the C compiler (gcc  -L/usr/local/lib) is a 
> cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking for ld used by GCC... /usr/ccs/bin/ld
> checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
> checking for BSD-compatible nm... /usr/local/bin/nm -B
> checking whether ln -s works... yes
> updating cache ./config.cache
> checking for object suffix... o
> checking for executable suffix... no
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.lo... yes
> checking if gcc supports -fno-rtti -fno-exceptions ... yes
> checking if gcc static flag -static works... -static
> checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
> checking whether the linker (/usr/ccs/bin/ld) supports shared 
> libraries... yes
> checking command to parse /usr/local/bin/nm -B output... ok
> checking how to hardcode library paths into programs... immediate
> checking for /usr/ccs/bin/ld option to reload object files... -r
> checking dynamic linker characteristics... solaris2.8 ld.so
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yeschecking for objdir... 
> .libs
> creating libtool
> loading cache ./config.cache
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc -g -O2 -L/usr/local/lib) works... yes
> checking whether the C compiler (gcc -g -O2 -L/usr/local/lib) is a 
> cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking how to run the C preprocessor... gcc -E
> checking for c++... c++
> checking whether the C++ compiler (c++ -I/usr/local/include 
> -L/usr/local/lib) works... yes
> checking whether the C++ compiler (c++ -I/usr/local/include 
> -L/usr/local/lib) is a cross-compiler.
> .. no
> checking whether we are using GNU C++... yes
> checking whether c++ accepts -g... yes
> checking how to run the C++ preprocessor... c++ -E
> checking where to find xml parser... expat (new)
> checking for expat.h... no
> checking for xmlparse.h... no
> checking for xmltok/xmlparse.h... no
> checking for timeb.h... no
> checking for sys/timeb.h... yes
> checking for sys/time.h... yes
> checking for sys/types.h... yes
> checking for unistd.h... yes
> checking for ieeefp.h... yes
> checking for iconv.h... yes
> checking where to find iconv_open... libc
> checking whether to typecast in iconv... no
> checking whether to force -lm switch... no
> checking for ftime... yes
> checking for mtrace... no
> checking for isnan... yes
> checking for isinf... no
> checking for finite... yes
> checking for macro isinf... no
> checking for wchar.h... yes
> checking for wcsxfrm... yesupdating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating Sablot/Makefile
> creating Sablot/engine/Makefile
> creating Sablot/command/Makefile
> creating autocfg/autocfg.h


Reply via email to