patchGNU Libtool - Patches: patch #8843, Include _CRTIMP in _putenv()...


You are not allowed to post comments on this tracker with your current authentication level.

patch #8843: Include _CRTIMP in _putenv() declaration in EXE wrapper sources

Submitted by:  Vadim Zeitlin <zeitlin>
Submitted on:  Thu 31 Dec 2015 02:12:26 AM UTC  
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Fri 27 Mar 2020 11:21:10 PM UTC, comment #2: 

It looks like every 5 years or so I return to this problem, only to confirm that it's still there and still not fixed. I understand the need to be patient, but, still, a single word patch languishing for almost 9 years must be some kind of a record.

Vadim Zeitlin <zeitlin>
Wed 10 Feb 2016 08:14:49 PM UTC, comment #1: 

Here is the updated version of the patch for the latest master:

diff --git a/build-aux/ b/build-aux/
index 2a5aaad..0217828 100644
--- a/build-aux/
+++ b/build-aux/
@@ -3663,7 +3663,7 @@ EOF
 /* declarations of non-ANSI functions */
 #if defined _MINGW32_
 # ifdef _STRICT_ANSI_
-int _putenv (const char *);
+_CRTIMP int _putenv (const char *);
 # endif
 #elif defined _CYGWIN_
 # ifdef _STRICT_ANSI_

Vadim Zeitlin <zeitlin>
Thu 31 Dec 2015 02:12:26 AM UTC, original submission:  

Please see for the patch submitted 4.5 years ago but which is still relevant today. The solution there is not perfect, as discussed on the list, but at least it does solve the problem and would allow me to build my project without hacking libtool.

Please consider applying it, TIA!

Vadim Zeitlin <zeitlin>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by zeitlin (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.5