cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3304789 ] Binding to wrong MS CRT when building MS VC++ with SP/hotfix

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 17 Jun 2011 22:43:48 +0200

Bugs item #3304789, was opened at 2011-05-19 22:56
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3304789&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: portability problem
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Didier LIROULET (dliroulet)
Assigned to: Daniel Stenberg (bagder)
Summary: Binding to wrong MS CRT when building MS VC++ with SP/hotfix

Initial Comment:
Hello,

We uses libcurl DLL in OCS Inventory NG, an open source inventory and deployement tool, and we build it using MS Visual C++ 2008 for use with our Windows agent (we are including MS CRT/MFC with our client, but not using vcredist_x86.exe).

All is fine if we build libcurl using MS VC++ 2008 RTM.

However, if we setup MS VC++ 2008 SP1 (or hotfixes) which update MS CRT version, the default makefile.vc9 does not bind libcurl DLL to the latest MS CRT installed on development computer.

In libcurl.dll.manifest file, binding to MS CRT is always 9.0.21022.8. Today, we currently have 9.0.30729.5570, and this produce error on computers where we install our client. All other DLL and exe uses version 9.0.30729.5570 of MS CRT, and only libcurl use version 9.0.21022.8. So we have to redistribute both release of CRT.

To allow binding to the lastest CRT installed on dev computer, you must use _BIND_TO_CURRENT_VCLIBS_VERSION preprocessor define (see http://blog.kalmbach-software.de/2009/05/27/deployment-of-vc2008-apps-without-installing-anything/ for more explanation).

In libcurl makefile.vc9, you just have to add in the CFLAGS line 95 /D_BIND_TO_CURRENT_VCLIBS_VERSION and DLL will be automatically bind to the current CRT installed on dev computer.

If you can fix this for a future release, we will be very happy !

Thanks a lot for this wonderfull peace of software.

Regards

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2011-06-17 22:43

Message:
Then see my response just posted to the list. I've not received any
patch/change from anyone and I don't build on Windows myself so I can't
test/verify any changes.

----------------------------------------------------------------------

Comment By: Didier LIROULET (dliroulet)
Date: 2011-06-15 00:44

Message:
Hello,

I see libcurl mailing list archive that Josue Andrade Gomes confirmed this
problem and the workaround.

Are you planning to include this fix in future release ?

Thanks by advance

Regards

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3304789&group_id=976
Received on 2011-06-17

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET