Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: help compiling mod_jrun22 |
|
Author |
|
russ0519
Joined: 25 Jan 2006 Posts: 7
|
Posted: Wed 29 Nov '06 3:54 Post subject: help compiling mod_jrun22 |
|
|
I am trying to compile mod_jrun22 on windows. Source is available here:http://www.adobe.com/support/coldfusion/ts/documents/8001e97/wsconfig.zip
The compilation instructions provide instructions for compiling on linux. I download visual c++ express, windows sdk, and the apxs from this site. It seems to compile fine except for a bunch of warnings, but when I try to load it into apache, I get:
httpd.exe: Syntax error on line 115 of C:/Apache2/conf/httpd.conf: Cannot load C
:/Apache2/modules/mod_jrun22.so into server: The specified procedure could not b
e found.
Any ideas on how to proceed? |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Wed 29 Nov '06 7:18 Post subject: |
|
|
This apxs command works for me to build mod_jrun22 and run CF7 with Apache 2.2.3 on Windows (one long line): Code: | apxs.bat -c -Wc,-wd4996 mod_jrun22.c jrun_maptable_impl.c jrun_property.c jrun_session.c platform.c jrun_mutex.c jrun_proxy.c jrun_utils.c libhttpd.lib libapr-1.lib wsock32.lib |
Make sure you have the libraries libhttpd.lib and libapr-1.lib in your Apache lib directory, or else in the directory with the mod_jrun22 source code,
and that your PATH, INCLUDE, and LIB environment variables are set up correctly for VC++.
If you don't have apxs - or if it doesn't work for you for some reason -
the straight-up compile & link command to build mod_jrun22.so is (one long line): Code: | CL /LD /MD /O2 /wd4996 /DWIN32 /D_WINDOWS /DNDEBUG /I"{apache_include}" /Femod_jrun22.so mod_jrun22.c jrun_maptable_impl.c jrun_property.c jrun_session.c platform.c jrun_mutex.c jrun_proxy.c jrun_utils.c {apache_lib}\libhttpd.lib {apache_lib}\libapr-1.lib wsock32.lib | Replace {apache_include} and {apache_lib} with your own Apache \include and \lib directories.
-tom- |
|
Back to top |
|
Jura
Joined: 08 Jun 2006 Posts: 12
|
Posted: Wed 29 Nov '06 12:48 Post subject: |
|
|
You don't have to compile it yourself, Adobe actually providing prebuilt Win32 version of mod_jrun22.so. I don't know if it's official release or not but I'm using it for a couple of months without any problem.
Get the latest wsconfig.jar from Adobe (the same hotfix as was claimed "for Unix" only), unzip it and navigate to wsconfig.jar\connectors\apache\intel-win\prebuilt folder inside - voila, mod_jrun22.so is there.
Happy using |
|
Back to top |
|
russ0519
Joined: 25 Jan 2006 Posts: 7
|
Posted: Wed 29 Nov '06 16:44 Post subject: |
|
|
Jura wrote: | You don't have to compile it yourself, Adobe actually providing prebuilt Win32 version of mod_jrun22.so. I don't know if it's official release or not but I'm using it for a couple of months without any problem.
Get the latest wsconfig.jar from Adobe (the same hotfix as was claimed "for Unix" only), unzip it and navigate to wsconfig.jar\connectors\apache\intel-win\prebuilt folder inside - voila, mod_jrun22.so is there.
Happy using |
Actually I'm already using it, but I need to make some small changes to the source, which is why I need to recompilie it. |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Wed 29 Nov '06 18:24 Post subject: |
|
|
Please let us know if you are successful, and anything else you discover about building mod_jrun22 with Visual C++ Express.
thx,
-tom- |
|
Back to top |
|
russ0519
Joined: 25 Jan 2006 Posts: 7
|
Posted: Wed 29 Nov '06 19:13 Post subject: |
|
|
tdonovan wrote: | This apxs command works for me to build mod_jrun22 and run CF7 with Apache 2.2.3 on Windows (one long line): Code: | apxs.bat -c -Wc,-wd4996 mod_jrun22.c jrun_maptable_impl.c jrun_property.c jrun_session.c platform.c jrun_mutex.c jrun_proxy.c jrun_utils.c libhttpd.lib libapr-1.lib wsock32.lib |
Make sure you have the libraries libhttpd.lib and libapr-1.lib in your Apache lib directory, or else in the directory with the mod_jrun22 source code,
and that your PATH, INCLUDE, and LIB environment variables are set up correctly for VC++.
If you don't have apxs - or if it doesn't work for you for some reason -
the straight-up compile & link command to build mod_jrun22.so is (one long line): Code: | CL /LD /MD /O2 /wd4996 /DWIN32 /D_WINDOWS /DNDEBUG /I"{apache_include}" /Femod_jrun22.so mod_jrun22.c jrun_maptable_impl.c jrun_property.c jrun_session.c platform.c jrun_mutex.c jrun_proxy.c jrun_utils.c {apache_lib}\libhttpd.lib {apache_lib}\libapr-1.lib wsock32.lib | Replace {apache_include} and {apache_lib} with your own Apache \include and \lib directories.
-tom- |
Tom,
You are the man... I didn't know where else to turn. Your commands work perfectly (the apxs one gives me this error:
mod_jrun22.lo : error LNK2019: unresolved external symbol _ap_http_scheme referenced in function _setSecure
which is an issue I was having originally as well. The cl command line works flawlessly.
thanks again,
Russ |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Thu 30 Nov '06 4:48 Post subject: |
|
|
Glad to hear you were successful!
The ap_http_scheme thing is puzzling. That should get re-defined to ap_run_http_scheme in Apache's \include\httpd.h file (about line 307)
- so the linker should never look for that name.
apxs on Windows can be tricky. When you configure it with Configure.pl, it puts your Apache directory name into apxs.bat and apxs.pl.
If you later move your copy of Apache these names become incorrect.
Is your change to mod_jrun22 something that others could use? Just curious.
-tom- |
|
Back to top |
|
|
|
|
|
|