Re: [xml] libxml2-2.4.13 compiled for SunOS 4.1.3 (fwd)



Juergen Weigert wrote:

So I stick to good old SunOS 4.1.3 U1 (which is only a partial posix)

My condolences.

I did not investigate, why an fprintf() prototype is missing, some c-files
give only a warning, other fail without it.
My sprintf returns a pointer to the buffer instead of a length. p +=
strlen(sprintf(...)); would do the trick for me, but you won't like it.

Your suggestion (the added strlen) results in a performance penalty
on all platform, just to please an obsolete platform (which isn't
even C89 compliant). Instead I would really urge you to use the trio
fallback solution, which provides a C89 compliant sprintf function.

The following patch should do the trick (warning: untested)

--- configure.in        Mon Apr  8 18:10:45 2002
+++ configure.in.new    Mon Apr  8 18:18:19 2002
@@ -182,7 +182,7 @@
     *-*-solaris*)
         XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
         ;;
-    hppa*-hp-mpeix)
+    hppa*-hp-mpeix | *-sun-sunos)
         NEED_TRIO=1
        ;;
 esac



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