You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andy Wang <aw...@ptc.com> on 2009/06/04 01:33:22 UTC
tomcat-connectors mod_jk.dsp file will not load in Visual Studio
2005
Hi all,
I was able to get mod_jk building fine using Makefile.vc, but couldn't
get the .dsp file loaded into Visual Studio 2005. Anyone know if
there's a trick to this, or should I just not care (it does build and
seem to work fine with the Makefile).
When Visual Studio 2005 tries to convert mod_jk.dsp to the newer format
it complains with a
"Cannot load the project due to a corrupt project file"
popup.
Does anyone really care about this or should I just ignore it?
Thanks,
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio
2005
Posted by Andy Wang <aw...@ptc.com>.
Mladen Turk wrote:
> All higher MSVCRT versions has dependency on MSVCRT.dll so if you
> build against that you have assurance that CRT functions will come
> from the same CRT library regardless of the version used.
> I know that stdio functions have problems, so if like mod_jk the
> module uses them for logging or reading config files you might
> get into trouble. We observed that with mod_jk and it manifested with
> weired looking log files.
> For example we use VS6 for building Tomcat Native, and it can
> work in both JDK5 (compiled with VS6) and JDK6 (compiled with VS2003)
> because it depends on MSVCRT.dll only.
>
> In general MSVCRT.dll + MSVCRTxx.dll is OK, however
> MSVCRTxx.dll + MSVCRTyy.dll is a very bad idea.
>
I just googled what it would take to get VS2005 to link against MSVCRT.dll.
It's doable, but not pretty at all.
I can see why you use VS6 to build stuff.
If only VS6 was still available on MSDN.
Thanks to both you and Rainer for filling in the blanks for me. And I
thought Linux glibc compatibility was confusing but this Microsoft
MSVCRT stuff makes glibc problems look easy to solve :)
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio
2005
Posted by Mladen Turk <mt...@apache.org>.
Andy Wang wrote:
> Rainer Jung wrote:
>>
> Ahh. I see, I think maybe I was misunderstanding Mladen then. I
> thought that just building with VS2005 would result in some level of
> multiple msvcrt library confusion.
> If, we build our own Apache, and our own mod_jk, and our own everything
> else up the toolchain (zlib, openssl, etc etc), we shouldn't have
> problems with multiple msvcrt dependencies right?
>
Exactly.
> But, that brings up a really interesting point, considering that our
> customers may have their own modules and who knows how they build them.
> I'll have to consider that.
>
All higher MSVCRT versions has dependency on MSVCRT.dll so if you
build against that you have assurance that CRT functions will come
from the same CRT library regardless of the version used.
I know that stdio functions have problems, so if like mod_jk the
module uses them for logging or reading config files you might
get into trouble. We observed that with mod_jk and it manifested with
weired looking log files.
For example we use VS6 for building Tomcat Native, and it can
work in both JDK5 (compiled with VS6) and JDK6 (compiled with VS2003)
because it depends on MSVCRT.dll only.
In general MSVCRT.dll + MSVCRTxx.dll is OK, however
MSVCRTxx.dll + MSVCRTyy.dll is a very bad idea.
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio
2005
Posted by Andy Wang <aw...@ptc.com>.
Rainer Jung wrote:
> Mladen might like to elaborate more, but in short: MS binaries need a
> Microsoft Visual C++ Runtime library to run with. Those are called
> msvcrt. The library version used is determined during the dynamic
> linking done with visual studio.
>
> Now if you use an extensible application like Apache, and the web server
> and the modules you want to load are compiled with different Visual
> Studio versions, multiple and possibly incompatible version of the
> msvcrt libs will be loaded during runtime.
>
> Until now, the official downloads of the Apache web server are compiled
> with VS6, so our mod_jk Windows binaries are also compiled with VS6 in
> order to circumvent possible havoc.
>
> I did see mod_jk compiled with newer VS version running in the standard
> Windows Apache from the web server download page, but you *might* run
> into trouble.
>
> Regards,
>
> Rainer
>
>
Ahh. I see, I think maybe I was misunderstanding Mladen then. I
thought that just building with VS2005 would result in some level of
multiple msvcrt library confusion.
If, we build our own Apache, and our own mod_jk, and our own everything
else up the toolchain (zlib, openssl, etc etc), we shouldn't have
problems with multiple msvcrt dependencies right?
But, that brings up a really interesting point, considering that our
customers may have their own modules and who knows how they build them.
I'll have to consider that.
Thanks,
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio
2005
Posted by Rainer Jung <ra...@kippdata.de>.
On 05.06.2009 16:43, Andy Wang wrote:
> Mladen, Rainer,
> Thanks for pointing out the crlf thing, I discovered that myself last
> night and was going to update this thread this morning but you beat me
> to it. :)
>
> I just automatically, use the tarballs since I'm normally a Unix guy. I
> figure this out when I inadvertently used the Apache tarball instead of
> win zip and wondered why I got the same error trying to load the .dsps.
>
> Mladen, I am not anywhere near remotely a Windows guy. This is my first
> experience compiling stuff in a Microsoft world since using Turbo C++
> back in college, and that was DOS :).
> With that in mind, can you elaborate on what the VS2005 MSVCRT71 issues
> might be? The problem is, Visual Studio 6 is not available from MSDN,
> and we don't have it readily available here. It appears to be a product
> circa 1998, so I thought a newer compiler might not be a bad idea.
>
> I don't know if you recall an e-mail from Jess Holle regarding a
> "quieter" logging patch that he asked for comments on. Until we have
> time to look into Rainer's idea of stopping the nodes via the mod_jk
> status worker, we're using our patch for now, thus the need to build our
> own mod_jk.
Mladen might like to elaborate more, but in short: MS binaries need a
Microsoft Visual C++ Runtime library to run with. Those are called
msvcrt. The library version used is determined during the dynamic
linking done with visual studio.
Now if you use an extensible application like Apache, and the web server
and the modules you want to load are compiled with different Visual
Studio versions, multiple and possibly incompatible version of the
msvcrt libs will be loaded during runtime.
Until now, the official downloads of the Apache web server are compiled
with VS6, so our mod_jk Windows binaries are also compiled with VS6 in
order to circumvent possible havoc.
I did see mod_jk compiled with newer VS version running in the standard
Windows Apache from the web server download page, but you *might* run
into trouble.
Regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio
2005
Posted by Andy Wang <aw...@ptc.com>.
Mladen, Rainer,
Thanks for pointing out the crlf thing, I discovered that myself last
night and was going to update this thread this morning but you beat me
to it. :)
I just automatically, use the tarballs since I'm normally a Unix guy. I
figure this out when I inadvertently used the Apache tarball instead of
win zip and wondered why I got the same error trying to load the .dsps.
Mladen, I am not anywhere near remotely a Windows guy. This is my first
experience compiling stuff in a Microsoft world since using Turbo C++
back in college, and that was DOS :).
With that in mind, can you elaborate on what the VS2005 MSVCRT71 issues
might be? The problem is, Visual Studio 6 is not available from MSDN,
and we don't have it readily available here. It appears to be a product
circa 1998, so I thought a newer compiler might not be a bad idea.
I don't know if you recall an e-mail from Jess Holle regarding a
"quieter" logging patch that he asked for comments on. Until we have
time to look into Rainer's idea of stopping the nodes via the mod_jk
status worker, we're using our patch for now, thus the need to build our
own mod_jk.
Thanks,
Andy
Mladen Turk wrote:
> Andy Wang wrote:
>> Hi all,
>> I was able to get mod_jk building fine using Makefile.vc, but
>> couldn't get the .dsp file loaded into Visual Studio 2005.
>
> If you are using HTTPD binaries from ASF use the Visual Studio 6
> and Platform SDK (Windows 2003 R2 inclusive)
>
> VS 2005 will force usage of MSVCRT71 while, so you'll have
> multiple MSVCRT versions compiled in, which might cause
> some nasty logging issues.
>
> BTW, what's wrong with official mod_jk binaries?
>
> Regards
>
> --
> ^TM
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio
2005
Posted by Mladen Turk <mt...@apache.org>.
Andy Wang wrote:
> Hi all,
> I was able to get mod_jk building fine using Makefile.vc, but couldn't
> get the .dsp file loaded into Visual Studio 2005.
If you are using HTTPD binaries from ASF use the Visual Studio 6
and Platform SDK (Windows 2003 R2 inclusive)
VS 2005 will force usage of MSVCRT71 while, so you'll have
multiple MSVCRT versions compiled in, which might cause
some nasty logging issues.
BTW, what's wrong with official mod_jk binaries?
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio
2005
Posted by Mladen Turk <mt...@apache.org>.
Andy Wang wrote:
> Hi all,
> I was able to get mod_jk building fine using Makefile.vc, but couldn't
> get the .dsp file loaded into Visual Studio 2005. Anyone know if
> there's a trick to this, or should I just not care (it does build and
> seem to work fine with the Makefile).
>
> When Visual Studio 2005 tries to convert mod_jk.dsp to the newer format
> it complains with a
> "Cannot load the project due to a corrupt project file"
>
Preferred method is to use the Makefile.vc, However
you probably have Unix line endings (LF).
Convert the .dsp to DOS line endings (CR-LF) by
some editor that can do that or some unix2dos
utility. IMO the .zip source files should have
.dsp's with CRLF line endings.
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: tomcat-connectors mod_jk.dsp file will not load in Visual
Studio 2005
Posted by Martin Gainty <mg...@hotmail.com>.
Andy
try Unix2Dos TextFile
http://www.softpedia.com/get/System/File-Management/Unix2Dos.shtml
--attempt at building mod_jk (libhttpd.dll first)
i cannot get libhttpd.dll to build (dependency to apache2/mod_jk)
--------------------Configuration: libhttpd - Win32 Release--------------------
Creating include/os.h
Generating test_char.h from gen_test_char.exe
'.\server\gen_test_char.exe' is not recognized as an internal or external command,
operable program or batch file.
Error executing c:\windows\system32\cmd.exe.
libhttpd.dll - 1 error(s), 0 warning(s)
gen_test_char.exe location?
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Date: Fri, 5 Jun 2009 15:36:52 +0200
> From: rainer.jung@kippdata.de
> To: users@tomcat.apache.org
> Subject: Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio 2005
>
> On 04.06.2009 01:33, Andy Wang wrote:
> > Hi all,
> > I was able to get mod_jk building fine using Makefile.vc, but couldn't
> > get the .dsp file loaded into Visual Studio 2005. Anyone know if
> > there's a trick to this, or should I just not care (it does build and
> > seem to work fine with the Makefile).
> >
> > When Visual Studio 2005 tries to convert mod_jk.dsp to the newer format
> > it complains with a
> > "Cannot load the project due to a corrupt project file"
> >
> > popup.
> >
> > Does anyone really care about this or should I just ignore it?
>
> Mladen is right :)
>
> - should work when converted to DOS line endings
> I just now tested it again.
> - have a look at the provided binaries
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009
Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio
2005
Posted by Rainer Jung <ra...@kippdata.de>.
On 04.06.2009 01:33, Andy Wang wrote:
> Hi all,
> I was able to get mod_jk building fine using Makefile.vc, but couldn't
> get the .dsp file loaded into Visual Studio 2005. Anyone know if
> there's a trick to this, or should I just not care (it does build and
> seem to work fine with the Makefile).
>
> When Visual Studio 2005 tries to convert mod_jk.dsp to the newer format
> it complains with a
> "Cannot load the project due to a corrupt project file"
>
> popup.
>
> Does anyone really care about this or should I just ignore it?
Mladen is right :)
- should work when converted to DOS line endings
I just now tested it again.
- have a look at the provided binaries
Regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio
2005
Posted by Andy Wang <aw...@ptc.com>.
I had no dependency issues on libhttpd, I was nmake -f Makefile.vc just
worked for me once the proper environment variables were set. I just
can't load the .dsp file and convert it to a vproj file.
libhttpd should have been built with Apache, not the tomcat-connectors,
so I guess I'm not sure what you're running into.
Andy
Martin Gainty wrote:
> Andy
>
> there is a dependency for libhttpd
> but when you try to build libhttpd you are displayed this error
>
> --------------------Configuration: libhttpd - Win32 Release--------------------
> Creating include/os.h
> Generating test_char.h from gen_test_char.exe
> '.\server\gen_test_char.exe' is not recognized as an internal or external command,
> operable program or batch file.
> Error executing c:\windows\system32\cmd.exe.
>
> libhttpd.dll - 1 error(s), 0 warning(s)
>
> it appears we the project libhttpd cannot be built
>
> which prevents mod_jk from building
>
> advice?
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>
>> Date: Wed, 3 Jun 2009 18:33:22 -0500
>> From: awang@ptc.com
>> To: users@tomcat.apache.org
>> Subject: tomcat-connectors mod_jk.dsp file will not load in Visual Studio 2005
>>
>> Hi all,
>> I was able to get mod_jk building fine using Makefile.vc, but couldn't
>> get the .dsp file loaded into Visual Studio 2005. Anyone know if
>> there's a trick to this, or should I just not care (it does build and
>> seem to work fine with the Makefile).
>>
>> When Visual Studio 2005 tries to convert mod_jk.dsp to the newer format
>> it complains with a
>> "Cannot load the project due to a corrupt project file"
>>
>> popup.
>>
>> Does anyone really care about this or should I just ignore it?
>>
>> Thanks,
>> Andy
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
> _________________________________________________________________
> Insert movie times and more without leaving Hotmail®.
> http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
>
RE: tomcat-connectors mod_jk.dsp file will not load in Visual
Studio 2005
Posted by Martin Gainty <mg...@hotmail.com>.
Andy
there is a dependency for libhttpd
but when you try to build libhttpd you are displayed this error
--------------------Configuration: libhttpd - Win32 Release--------------------
Creating include/os.h
Generating test_char.h from gen_test_char.exe
'.\server\gen_test_char.exe' is not recognized as an internal or external command,
operable program or batch file.
Error executing c:\windows\system32\cmd.exe.
libhttpd.dll - 1 error(s), 0 warning(s)
it appears we the project libhttpd cannot be built
which prevents mod_jk from building
advice?
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> Date: Wed, 3 Jun 2009 18:33:22 -0500
> From: awang@ptc.com
> To: users@tomcat.apache.org
> Subject: tomcat-connectors mod_jk.dsp file will not load in Visual Studio 2005
>
> Hi all,
> I was able to get mod_jk building fine using Makefile.vc, but couldn't
> get the .dsp file loaded into Visual Studio 2005. Anyone know if
> there's a trick to this, or should I just not care (it does build and
> seem to work fine with the Makefile).
>
> When Visual Studio 2005 tries to convert mod_jk.dsp to the newer format
> it complains with a
> "Cannot load the project due to a corrupt project file"
>
> popup.
>
> Does anyone really care about this or should I just ignore it?
>
> Thanks,
> Andy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009