primax: compile error primaxd-0.5


Previous by date: 24 Feb 2002 18:32:46 -0000 Re: compile error primaxd-0.5, Michal Kostrzewa
Next by date: 24 Feb 2002 18:32:46 -0000 Re: Primax Colorado Direct 9600, Adriano Freitas
Previous in thread: 24 Feb 2002 18:32:46 -0000 Re: compile error primaxd-0.5, Michal Kostrzewa
Next in thread:

Subject: Re: compile error primaxd-0.5
From: Ed Kapitein ####@####.####
Date: 24 Feb 2002 18:32:46 -0000
Message-Id: <02022419201400.00944@pced>

Thanks,

The entry 
int             xmlSaveFormatFile       (const char *filename,
                                          xmlDocPtr cur, int format);

Is completly missing in my (2.3.6) version !
/usr/include/libxml/tree.h     

So upgrading seems to be the way to go.

Il; try that later. thanks a lot and keep on mailing.
Kind regards,
@


On Sunday 24 February 2002 18:32, Michal Kostrzewa wrote:
> Hello,
>
> > Thanks for the advice, but the problem stays the same.
> > I have:
> >
> > ed@pced:~ > ls -l /usr/lib/libxml2*.*
> > /usr/lib/libxml2.so.2 -> libxml2.so.2.3.6
> > /usr/lib/libxml2.so.2.3.6
>
> I think, that your problem is not about dynamic libraries. You've said,
> that you have compilation error saying that there is no function like
>
> xmlSaveFormatFile Your error is:
> > > /SOURCES/primaxd-0.5/primaxd/config_file.c:125: undefined reference to
> > > `xmlSaveFormatFile'
>
> so, the problem is, that you have broken/invalid header files of libxml.
> Check if in header file tree.h, from libxml (for me its
> /usr/include/libxml2/libxml/tree.h) there is a declaration of
> xmlSaveFormatFile (I have that, it looks like that:)
>
> int             xmlSaveFormatFile       (const char *filename,
>                                          xmlDocPtr cur,
>                                          int format);
>
> I think, that you have header files of libxml (because compiler didn't say
> "can't open parser.h" or something like that), but you have too old version
> of libxml, or your header files versions don't match library (it could
> happen if you have Mandrake/Redhat and install different versions of
> libxml2 and libxml2-devel). I have version 2.4.16, it has xmlSaveFormatFile
> and it's working for me :-)
>
> If you have Mandrake/Redhat, run
> rpm -qa | grep libxml2
>
> My results are:
> libxml2-devel-2.4.16-1mdk
> libxml2-2.4.16-1mdk
> libxml2-utils-2.4.16-1mdk
>
>
> hope this helps
> best regards
> Michal Kostrzewa
> ####@####.####

-- 
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="GENERATOR" content="Mozilla/4.74 [en] (X11; U; Linux 
2.2.16-SMP i686) [Netscape]">
</head>
<body>

<hr WIDTH="100%">
<br>Ed Kapitein
<br><a ####@####.####
<br><a href="http://www.ed.kapitein.net">www.ed.kapitein.net</a>
</body>
</html>

Previous by date: 24 Feb 2002 18:32:46 -0000 Re: compile error primaxd-0.5, Michal Kostrzewa
Next by date: 24 Feb 2002 18:32:46 -0000 Re: Primax Colorado Direct 9600, Adriano Freitas
Previous in thread: 24 Feb 2002 18:32:46 -0000 Re: compile error primaxd-0.5, Michal Kostrzewa
Next in thread:


Powered by ezmlm-browse 0.20.