Login 
 
 Pref   Your subscriptions   Home   Help 
users@ml.mod-xslt2.com
mod-xslt2 - Users Mailing List
   
 
List info
 
 
 
Subscribe
 
 
Unsubscribe
 
 
Archive
 
 
Post
 



Advanced search
2004 01 02 03 04 05 06 07 08 09 10 11 12
2005 01 02 03 04 05 06 07 08 09 10 11 12
2006 01 02 03 04 05 06 07 08 09 10 11 12
2007 01 02 03 04 05 06 07 08 09 10 11 12
2008 01 02 03 04 05 06 07 08 09 10 11 12
2010 01 02 03 04 05 06 07 08 09 10 11 12
2011 01 02 03 04 05 06 07 08 09 10 11 12

  previous   Chronological   next       previous   Thread   next  

Re: [mod-xslt users] History?; Sun Solaris? Peter Svanberg
  • From: Peter Svanberg <psv@xxxxxxxxxxx>
  • To: Carlo Contavalli <ccontavalli@xxxxxxxxxxx>
  • Cc: users@xxxxxxxxxxxxxxxx
  • Subject: Re: [mod-xslt users] History?; Sun Solaris?
  • Date: Thu, 17 Mar 2005 14:27:07 +0100
  • References: <17B724DA3C6154B28F2B83D1@max.nt.nada.kth.se> <20041112152134.GA8872@commedia.it> <052C775D04A8C24F3C20924D@h210n2fls33o1111.telia.com> <20041112203635.GA31987@commedia.it> <7BA26C4A9E798D8C30B3412E@max.nt.nada.kth.se> <20050311172440.GA21209@commedia.it> <20050311173436.GA22472@commedia.it> <4E15FA5B9D6EF33C7FFFA6AA@max.nt.nada.kth.se> <7B26657E4DA602DF371E882E@max.nt.nada.kth.se>


  • The patches: I attach my versions of two of the patches to 2.6.16 of libxml. The setglobalstate patch seems to be unnecessary if you use their setglobalstate function - maybe you could look at that? (I skipped that for the moment.)

    Peter

    -- Peter Svanberg <psv@xxxxxxxxxxx> skrev, den 17 mars 2005 kl 13.12 +0100:

    Now I've build Apache 2.0.53 and mod_xslt2 referring to that
    can be built OK!

    One strange problem, though: When I do "make install" some
    makefiles use a helper-sh script, but use options (i.e. -D and
    also some long as --mode) which is not supported in that
    script. How could that ever work...? (I changed by hand two
    Makefiles to use "install" and had gnu-install in my PATH.)

    I havn't tested anything yet...

    Peter

    -- Peter Svanberg <psv@xxxxxxxxxxx> skrev, den 14 mars 2005 kl
    11.43 +0100:

    > I can't find info on how the apache was built but we must
    > probably anyhow use a later version of Apache for other
    > purposes so I guess it's better that I build a new. Would you
    > advise me to use gcc instead of cc then?



    *** include/libxml/nanohttp.h.ORIG Mon Sep 20 22:01:05 2004
    --- include/libxml/nanohttp.h Mon Mar 7 14:16:04 2005
    ***************
    *** 15,20 ****
    --- 15,44 ----

    #ifdef LIBXML_HTTP_ENABLED

    + typedef struct xmlNanoHTTPCtxt {
    + char *protocol; /* the protocol name */
    + char *hostname; /* the host name */
    + int port; /* the port */
    + char *path; /* the path within the URL */
    + SOCKET fd; /* the file descriptor for the socket */
    + int state; /* WRITE / READ / CLOSED */
    + char *out; /* buffer sent (zero terminated) */
    + char *outptr; /* index within the buffer sent */
    + char *in; /* the receiving buffer */
    + char *content; /* the start of the content */
    + char *inptr; /* the next byte to read from network */
    + char *inrptr; /* the next byte to give back to the client */
    + int inlen; /* len of the input buffer */
    + int last; /* return code for last operation */
    + int returnValue; /* the protocol return value */
    + int ContentLength; /* specified content length from HTTP header */
    + char *contentType; /* the MIME type for the input */
    + char *location; /* the new URL in case of redirect */
    + char *authHeader; /* contents of {WWW,Proxy}-Authenticate header */
    + char *encoding; /* encoding extracted from the contentType */
    + char *mimeType; /* Mime-Type extracted from the contentType */
    + } xmlNanoHTTPCtxt, *xmlNanoHTTPCtxtPtr;
    +
    #ifdef __cplusplus
    extern "C" {
    #endif
    *** nanohttp.c.ORIG Wed Oct 27 11:42:38 2004
    --- nanohttp.c Mon Mar 7 14:11:50 2005
    ***************
    *** 82,87 ****
    --- 82,90 ----
    #define SOCKLEN_T unsigned int
    #endif

    + #ifndef SOCKET
    + #define SOCKET int
    + #endif

    #include <libxml/globals.h>
    #include <libxml/xmlerror.h>
    ***************
    *** 110,118 ****
    #ifndef SOCKLEN_T
    #define SOCKLEN_T unsigned int
    #endif
    - #ifndef SOCKET
    - #define SOCKET int
    - #endif

    #ifdef STANDALONE
    #define DEBUG_HTTP
    --- 113,118 ----
    ***************
    *** 129,158 ****
    #define XML_NANO_HTTP_READ 2
    #define XML_NANO_HTTP_NONE 4

    - typedef struct xmlNanoHTTPCtxt {
    - char *protocol; /* the protocol name */
    - char *hostname; /* the host name */
    - int port; /* the port */
    - char *path; /* the path within the URL */
    - SOCKET fd; /* the file descriptor for the socket */
    - int state; /* WRITE / READ / CLOSED */
    - char *out; /* buffer sent (zero terminated) */
    - char *outptr; /* index within the buffer sent */
    - char *in; /* the receiving buffer */
    - char *content; /* the start of the content */
    - char *inptr; /* the next byte to read from network */
    - char *inrptr; /* the next byte to give back to the client */
    - int inlen; /* len of the input buffer */
    - int last; /* return code for last operation */
    - int returnValue; /* the protocol return value */
    - int ContentLength; /* specified content length from HTTP header */
    - char *contentType; /* the MIME type for the input */
    - char *location; /* the new URL in case of redirect */
    - char *authHeader; /* contents of {WWW,Proxy}-Authenticate header */
    - char *encoding; /* encoding extracted from the contentType */
    - char *mimeType; /* Mime-Type extracted from the contentType */
    - } xmlNanoHTTPCtxt, *xmlNanoHTTPCtxtPtr;
    -
    static int initialized = 0;
    static char *proxy = NULL; /* the proxy name if any */
    static int proxyPort; /* the proxy port if any */
    --- 129,134 ----
    *** nanohttp.c.~3~ Mon Mar 7 14:11:50 2005
    --- nanohttp.c Thu Mar 17 13:33:35 2005
    ***************
    *** 1453,1458 ****
    --- 1453,1467 ----
    return(NULL);
    }

    + if(ctxt->returnValue != 200) {
    + #ifdef DEBUG_HTTP
    + xmlGenericError(xmlGenericErrorContext,
    + "xmlNanoHTTPMethodRedir: Skipping document, since status != 200 (%d)...\n", c
    txt->returnValue);
    + #endif
    + xmlNanoHTTPFreeCtxt(ctxt);
    + return NULL;
    + }
    +
    if (contentType != NULL) {
    if (ctxt->contentType != NULL)
    *contentType = xmlMemStrdup(ctxt->contentType);
      Powered by Sympa