primax: compile error primaxd-0.5


Previous by date: 24 Feb 2002 17:40:31 -0000 Re: compile error primaxd-0.5, Ed Kapitein
Next by date: 24 Feb 2002 17:40:31 -0000 Re: compile error primaxd-0.5, Ed Kapitein
Previous in thread: 24 Feb 2002 17:40:31 -0000 Re: compile error primaxd-0.5, Ed Kapitein
Next in thread: 24 Feb 2002 17:40:31 -0000 Re: compile error primaxd-0.5, Ed Kapitein

Subject: Re: compile error primaxd-0.5
From: Michal Kostrzewa ####@####.####
Date: 24 Feb 2002 17:40:31 -0000
Message-Id: <20020224173529.E4F6FD1DAD@mail.astercity.net>

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
####@####.####


Previous by date: 24 Feb 2002 17:40:31 -0000 Re: compile error primaxd-0.5, Ed Kapitein
Next by date: 24 Feb 2002 17:40:31 -0000 Re: compile error primaxd-0.5, Ed Kapitein
Previous in thread: 24 Feb 2002 17:40:31 -0000 Re: compile error primaxd-0.5, Ed Kapitein
Next in thread: 24 Feb 2002 17:40:31 -0000 Re: compile error primaxd-0.5, Ed Kapitein


Powered by ezmlm-browse 0.20.