On 20 Mar 2001 22:48:03 -0600, Steven Fines wrote:
> All,
> What version of libxml should I be linking against when I build scrollkeeper-0.1.4? Currently I have libxml symlinked to libxml2.so.2.3.4. I ask because when I attempt to compile, i get several errors that look like:
>
> preinstall.c: In function `update_doc_url_in_omf_file':
> preinstall.c:46: structure has no member named `childs'
> preinstall.c: In function `main':
> preinstall.c:81: structure has no member named `root'
>
> I checked the header file <tree.h> and noticed that none of the structures defined in that library, which is where the xmlNode is defined have a childs member. I went into the code and changed all references from childs to children. That seemed like a fairly safe assumption for me to make. The root member was another problem entirely. I finally settled on using the parent member as the root. I don't think that was correct, but that's not at issue yet. I got the code in the cl/src directory to build and then ran into trouble later on in the process with this error:
>
> make[3]: Entering directory `/home/steve/eazel_inst/step4/scrollkeeper-0.1.4-fixed/toc/src'
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/libxml -I/usr/include -g -O2 -c toc.c
> toc.c: In function `toc_internalSubset':
> toc.c:309: too few arguments to function `xmlDetectCharEncoding'
> make[3]: *** [toc.o] Error 1
>
> So I'm stumped and left to assume that I have a the incorrect library version. Since 2.3.4 is all that apt-get will give me, I was pondering wether or not it is the correct one and if I need to rustle up the libxml sources and compile them.
Currently, Scrollkeeper is being developed against libxml 1, and not
libxml 2. I don't know what the plans are, but I don't expect a move to
libxml until mid-summer, at the earliest (December at the latest).
Greg
|