On Mon, 20 Jun 2011 12:49:30 -0700
James Richard Tyrer <[email protected]> wrote:

> Using BLFS  - Version svn-20110417
> 
> Attempt to configure exiv2-0.21.1 ends with:
> 
> checking whether to enable XMP support (requires expat)... yes
> checking expat.h usability... no
> checking expat.h presence... yes
> configure: WARNING: expat.h: present but cannot be compiled
> configure: WARNING: expat.h:     check for missing prerequisite headers?
> configure: WARNING: expat.h: see the Autoconf documentation
> configure: WARNING: expat.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: expat.h: proceeding with the compiler's result
> configure: WARNING:     ## ------------------------------ ##
> configure: WARNING:     ## Report this to [email protected] ##
> configure: WARNING:     ## ------------------------------ ##
> checking for expat.h... no
> 
> I checked and: "expat.h" is in: "/usr/include".
> 
> I have expat-2.0.1 installed.
> 

Works for me on x86_64:

checking whether to enable XMP support (requires expat)... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ParserCreate in -lexpat... yes

Looking at configure, it's not easy to work out what's going on but I
think it creates a small file conftest.h with a single line in it:

#include <expat.h>

And then it tries to compile it with gcc. config.log doesn't have very
much to say for me as the test succeeds but I suspect yours may say a
little more. What does config.log say?

Does it work if you do it manually:

echo "#include <expat.h>" > conftest.h
gcc -O2 conftest.h
echo ${?}

The gcc bit should create a file conftest.h.gch and the last echo
should reply with a 0.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to