tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Burton" <>
Subject RE: Rebuilding isapi_redirect.dll
Date Thu, 01 Nov 2007 14:39:37 GMT
Tim - 

One of my colleagues got the build working on his machine.  I still
couldn't get it working on mine, but at least we've got our new DLL now,
which seems to work like a charm.

Thanks for your help.


-----Original Message-----
From: Tim Whittington [] 
Sent: Sunday, October 28, 2007 15:15
To: 'Tomcat Developers List'
Subject: RE: Rebuilding isapi_redirect.dll

The errors you're getting are classic Runtime Library mismatches -
everything you're linking together needs to be compiled with the same
setting (you've got the right location).
If you're getting these errors in a single project (e.g. with no other
libraries etc.), then you need to do a Clean/Rebuild to clean out the
object files compiled with the old setting.

If you're still getting problems, seek help from the one of the VC

The project I provided builds out of the box on a clean machine with
VC2005, so if it's failing for you it may be something wrong with your
environment (I couldn't begin to guess what that is though).

The VC runtime re-distributable files are usually in your VC install
directory (something like C:\Program Files\Microsoft Visual Studio
8\VC\redist), and a quick Google should locate the installers for them.


-----Original Message-----
From: Dan Burton [] 
Sent: Sunday, 28 October 2007 10:36 a.m.
To: Tomcat Developers List;
Subject: RE: Rebuilding isapi_redirect.dll

Tim -

Thanks very much for the response and the project file.  Unfortunately,
this doesn't seem to get me any further.  The DLL that gets built
the same as the one I was building before.  Are you referring to the
settings under project properties -> Configuration Properties -> C/C++
Code Generation -> Runtime Library? It's set to "Multi-threaded Debug
(/MDd)".  Is that right?  I also tried setting it to just
(/MT)", but then I see the following errors when I try to build:

1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _memmove already defined in
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _strncmp already defined in

Also, not sure if this is related, but I also see the following warning
(even when the build succeeds):

3>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of
other libs; use /NODEFAULTLIB:library

I tried setting this via the project properties under Configuration
Properties -> Linker -> Input -> Ignore Specific Library = "library",
I still see the warning.  The command line as shown in the properties
panel shows /NODEFAULTLIB:"library" (with the quotes).
Should that matter?

Would another course be to install the VC8 runtime you mentioned on the
IIS server machine?  How would I go about doing that?  I apologize in
advance if this is a dumb question.  I'm mostly a Java guy, and have
little experience building things with Visual Studio.

Also, I've noticed that even with the release version of the DLL, even
though I'm setting the log level to 'debug' or 'trace', it only
a log file when it has a problem loading the file
when I intentionally point it to the wrong path).  It doesn't generate a
log file at all when things are running normally.  It behaves this way
whether I use the registry keys for the bootstrap config or if I use the file.  I was hoping I might be able to get
more info about what's going wrong through the log, but my built version
of the DLL doesn't log anything regardless of the configuration.

Thanks again for any help,


-----Original Message-----
From: Tim Whittington []
Sent: Saturday, October 27, 2007 01:38
To: 'Tomcat Developers List'
Subject: RE: Rebuilding isapi_redirect.dll

The errors sound like what you get when you build with VC2005 with the
C runtime, but don't install the VC8 runtime on the IIS server.
Changing your runtime settings (to Multithread) should fix that.

I've attached the project I use to build the ISAPI DLL - it might help.


-----Original Message-----
From: Dan Burton []
Sent: Saturday, 27 October 2007 9:35 a.m.
Subject: Rebuilding isapi_redirect.dll

Hi all,


We've run into the issue as described in this bug:  I'm trying to
rebuild the dll myself using Visual Studio to incorporate this change,
the dll I build doesn't seem to work at all when I use it in IIS (all
users just get a 500 error instead of actually making it through into
app hosted in Tomcat).  We've got the 1.2.25 release version of the dll
there now, and it works fine (except for this bug, which affects users
have inordinately many group memberships).


Also, I can't figure out how to get the Visual Studio project to build a
'release' version, as opposed to a 'debug' version, and as a result, my
dll is about twice the size of the latest release version.  I'm not sure
if that's causing the problem or not.  Is there anything else I should
need to do besides open up the isapi.dws workspace in Visual Studio and
build it?


Any help would be greatly appreciated.  If anyone has a built dll with
this fix in that you could share, that would be fantastic.


Thanks very much,


- Dan


Dan Burton
Solution Architect 

Information Access Solutions


(512) 469-9300 x150
(512) 692-1958
(512) 657-1414 


"committed to client elation"


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message