Re: [xml] vsnprintf problems on Tru64 UNIX 4.0



On Fri, Oct 28, 2005 at 11:42:56AM -0400, Daniel Veillard wrote:
On Fri, Oct 28, 2005 at 10:18:43AM -0500, Albert Chin wrote:
Some of the tests don't #include "libxml.h" so the trio vsnprintf()
substitute doesn't get used. This causes a linker error on systems
without vsnprintf() (e.g. Tru64 UNIX 4.0).

  Hum ... annoying, because I really wanted to have them
compilable outside of the build tree. See the instructions in
README.tests, if I #include "libxml.h" then they can't be compiled
out of the tree.

  I don't see an easy way to reconciliate both except maybe use the
fact that when compiling in the tree, the -DHAVE_CONFIG_H is passed
and do

#ifdef HAVE_CONFIG_H
#include "libxml.h"
#else
#include <stdio.h>
#endif

I assume this would work even on other toolschain, could you check ?

Also testapi.c in CVS starts with:

#include "config.h"
#ifndef WITH_TRIO
#include <stdio.h>
#else
#define TRIO_REPLACE_STDIO
#include "trio.h"
#endif

  this should cover Tru64 case I think,

Daniel


-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]