www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Chandy <jcha...@alum.mit.edu>
Subject mod_jserv/5534: JServ does not compile when using the IBM version of Apache
Date Tue, 04 Jan 2000 15:49:38 GMT

>Number:         5534
>Category:       mod_jserv
>Synopsis:       JServ does not compile when using the IBM version of Apache
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Jan  4 07:50:01 PST 2000
>Last-Modified:
>Originator:     jchandy@alum.mit.edu
>Organization:
apache
>Release:        IBM HTTP Server 1.3.6, Apache JServ 1.1bc
>Environment:
SuSE 6.1, JDK 1.1.7B, IBM HTTP Server 1.3.6
>Description:
I get the following compilation errors when compiling jserv_ajpv12.c

/bin/sh ../../libtool --mode=compile gcc -DPACKAGE=\"ApacheJServ\" -DVERSION=\"1
.1b3\" -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DSTDC_HEADERS=1 -DHAVE_GETTIMEOF
DAY=1 -DHAVE_HTTPD_H=1 -DHAVE_HTTP_CONFIG_H=1 -DHAVE_HTTP_CORE_H=1 -DHAVE_HTTP_L
OG_H=1 -DHAVE_HTTP_MAIN_H=1 -DHAVE_HTTP_PROTOCOL_H=1 -DHAVE_UTIL_SCRIPT_H=1 -DHA
VE_UTIL_MD5_H=1 -DHAVE_OS_INLINE_C=1  -I. -I.    -I/opt/IBMHTTPServer/include  -
g -O2 -c jserv_ajpv12.c
gcc -DPACKAGE=\"ApacheJServ\" -DVERSION=\"1.1b3\" -DSTDC_HEADERS=1 -DTIME_WITH_S
YS_TIME=1 -DSTDC_HEADERS=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_HTTPD_H=1 -DHAVE_HTTP_CO
NFIG_H=1 -DHAVE_HTTP_CORE_H=1 -DHAVE_HTTP_LOG_H=1 -DHAVE_HTTP_MAIN_H=1 -DHAVE_HT
TP_PROTOCOL_H=1 -DHAVE_UTIL_SCRIPT_H=1 -DHAVE_UTIL_MD5_H=1 -DHAVE_OS_INLINE_C=1
-I. -I. -I/opt/IBMHTTPServer/include -g -O2 -c  -fPIC -DPIC jserv_ajpv12.c -o js
erv_ajpv12.lo
jserv_ajpv12.c: In function `ajpv12_handle_in':
jserv_ajpv12.c:332: structure has no member named `fd_in'
jserv_ajpv12.c:340: structure has no member named `fd_in'
jserv_ajpv12.c:353: structure has no member named `fd_in'
jserv_ajpv12.c:357: structure has no member named `fd'
jserv_ajpv12.c:359: structure has no member named `fd'
make: *** [jserv_ajpv12.lo] Error 1
>How-To-Repeat:

>Fix:
IBM has changed some of the Apache structures slightly and I have managed to fix
it with the following patch.  I havent done any extensive testing on it, but it does run the
limited set of servlets that I use.

--- jserv_ajpv12.c      Sat Jan  1 22:15:48 2000
+++ jserv_ajpv12.c.old  Mon Oct 25 11:01:02 1999
@@ -329,11 +329,7 @@
 static int ajpv12_handle_in(jserv_config *cfg, jserv_request *req, request_rec *r, int *state,
BUFF * buffsocket) {
     int ret;
 
-#ifdef HAVE_APFD
-    if( buffsocket->pfd_in->sd < 0 ) {
-#else
     if( buffsocket->fd_in < 0 ) {
-#endif
        jserv_error(JSERV_LOG_EMERG,cfg,"ajp12: ajpv12_handle_in: input socket non existing");
         return 500;
     }
@@ -341,11 +337,7 @@
     switch( *state ) {
 
         case 0:
-#ifdef HAVE_APFD
-            if( data_available(buffsocket->pfd_in->sd)) {
-#else
             if( data_available(buffsocket->fd_in)) {
-#endif
            
                 ret = ajpv12_pass_headers(cfg,req,r,buffsocket);
                 if( ret==500 ) 
@@ -358,23 +350,13 @@
             break;
 
         case 1:
-#ifdef HAVE_APFD
-            if(data_available(buffsocket->pfd_in->sd)) {
-#else
             if(data_available(buffsocket->fd_in)) {
-#endif
                 char buffer[HUGE_STRING_LEN];
                 int len;
                 len = (int) ap_bread(buffsocket, buffer, HUGE_STRING_LEN);
-#ifdef HAVE_APFD
-                if(r->connection->client->pfd->sd >= 0) {
-                    if(ap_bwrite(r->connection->client, buffer, len) < len) {
-                        r->connection->client->pfd->sd =-1;
-#else
                 if(r->connection->client->fd >= 0) {
                     if(ap_bwrite(r->connection->client, buffer, len) < len) {
                         r->connection->client->fd =-1;
-#endif
                         jserv_error(JSERV_LOG_EMERG,cfg,"ajp12: Connnection reset by peer");
                     }
                 } else {
@@ -745,4 +727,4 @@
     ajpv12_handler,             /* handler() */
     ajpv12_function,            /* function() */
     NULL,                       /* parameter() */
-};
+};
\ No newline at end of file
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]




Mime
View raw message