2 Replies Latest reply on Jul 19, 2010 7:12 PM by gnome

    Setting up mod_cluster with apache httpd in Visual Studio

    gnome

      Hi All,

       

      I am a newbie so apologies if the question turns out naive. I have the solution of apache httpd(downloaded from apache website) imported in visual studio 2008 and that is working and building fine. Are there any instructions that I can follow to integrate mod_cluster with this solution in visual studio 2008. I want to build the httpd with mod_cluster modules from visual studio if that is possible.

       

      I tried this:

       

      I guess the following 5 files of apache httpd were changed in mod_cluster modules. Rest are either new or same.

      mod_proxy.c,

      mod_proxy.h,

      mod_proxy.ajp.c,

      mod_proxy_http.c,

      proxy_util.c

       

      So, I copied the above files to their counterparts in the existing modules of apache. Then I created separate projects for jboss_mod_slotmem, jboss_mod_advertise, jboss_mod_cluster, jboss_mod_manager and copied in them their respective files. The projects were created as .dll projects and the properties for the projects were set same as the other projects in the apache httpd like mod_alias etc....

       

      But now I cant get the solution to build. I am getting this error:

       

      error LNK2019: unresolved external symbol _cluster_send_interim_response referenced in function _ap_proxy_http_process_response

      error LNK2019: unresolved external symbol _cluster_timeout_parameter_parse referenced in function _set_worker_param

       

      I guess the above error makes sense as the functions of cluster_util.c are getting called from other projects and cluster_util.c has no corresponding header file which we could have included in them.

       

      Can anyone give any input on how to get the mod_cluster set up in Visual studio 2008 or may be any other version of visual studio ?  Also any pointers on how to overcome the above error?

       

      Thanks a lot. I would really appreciate any inputs. (If it is helpful I can also attach the dump of the error I am getting in visual studio.)

        • 1. Re: Setting up mod_cluster with apache httpd in Visual Studio
          jfclere

          I guess the following 5 files of apache httpd were changed in  mod_cluster modules. Rest are either new or same.

          mod_proxy.c,

          mod_proxy.h,

          mod_proxy.ajp.c,

          mod_proxy_http.c,

          proxy_util.c

           

          You only need to do that if you are using httpd-2.2.x where x < 8.

          error LNK2019: unresolved external symbol  _cluster_send_interim_response referenced in function  _ap_proxy_http_process_response

          error LNK2019: unresolved external  symbol _cluster_timeout_parameter_parse referenced in function  _set_worker_param

          You have to link with httpd libraries.

          See https://svn.jboss.org/repos/jbossnative/trunk/httpd/httpd-2.2/modules (look to the NMAKE* files).

          1 of 1 people found this helpful
          • 2. Re: Setting up mod_cluster with apache httpd in Visual Studio
            gnome

            Hi

             

            Thanks for the reply. I am using httpd 2.2.15 version as that is the latest stable release and I guess that is the release included in the mod_cluster distribution as well.

             

            I got the thing to compile. I created a cluster_util.h file and then included it in projects which were throwing errors. I though had to modify makefile.win a little to get it to work.  I can now build the entire solution using visual studio. This will just make the debugging a little easier now.

             

            Thanks