[CentOS] expat packages

Fri Dec 16 14:32:45 UTC 2005
Tony Schreiner <schreian at bc.edu>

>>>>> I am trying to compile an application which needs expat.
>>>>> I have installed the "expat" and "expat-devel" packages with  
>>>>> yum but
>>>>> when I try to compile my application, I have the following  
>>>>> problem :
>>>>> expat_external.h is not found.
>>>>>
>>>> Which application? Might help us either resolve the problem or  
>>>> suggest
>>>> a workaround, e.g. $app is available in Extras or from Dag, use  
>>>> that
>>>> instead.
>>>>
>>> This application is rfdump.
>>> available at www.rfdump.org
>>> This is for radio frequency identification (RFID) tag reading and  
>>> is not
>>> available with CentOS.
>>>
>>> There is a precompiled binary which is given but I would like to  
>>> compile
>>> it by myself.....
>>>
>>
>> Personally, I'd stick with pre-compiled binaries for reasons exactly
>> like this. :)
>>
>> There's a considerably modified expat.h included with rfdump in ./ 
>> src/
>> which appears to override the default OS /usr/include/expat.h header
>> file.
>>
>> There's an #include "expat_external.h" in the ./src/ header file. I
>> don't know if expat_external is deprecated or what. You could try
>> grabbing the CentOS expat SRPM and see if it's in there then copy it
>> out to /usr/include though I don't know what the knock-on effects of
>> that could be. IANADeveloper. :)
>>
>> http://www.google.co.uk/search? 
>> hl=en&q=expat_external.h&btnG=Search&meta=
>>
>> http://www.google.co.uk/search?hl=en&q=expat_external.h+redhat&meta=
>>
>> Will.
> Thank you for your support,
>
> I downloaded the SRPMS but didn't find any expat_external.h in the  
> sources.
> I think that I will try with the precompiled binary...
>

For what it's worth; if you rename the ./src/expat.h, the makefile  
finds /usr/include/expat.h and at least that source file compiles.

However, further down in the build process, you get an error
gcc  -g -O2  -o rfdump  main.o support.o interface.o callbacks.o  
settings.o xml.o tagtypes.o rfid.o -Wl,--export-dynamic -lgtk-x11-2.0  
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 - 
lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
/usr/lib/libfontconfig.so.1: undefined reference to  
`FT_Get_BDF_Property'

and I didn't pursue it any further.
Tony