* Michal Trojnara wrote:
I have released version 5.75 of stunnel.
### Version 5.75, 2025.05.26, urgency: MEDIUM
Hello,
why does the Windows release include "libgcc_s_seh-1.dll"?
I cannot find anything that uses it, and a basic configuration works without any attempts to load it. I went to some lengths to find indications it might be loaded dynamically, but found nothing.
Thanks,
On 27 May 2025 at 7:55, Christian Ullrich via stunnel-users wrote:
To: "[email protected]" [email protected] Date sent: Tue, 27 May 2025 07:55:05 +0000 Subject: [stunnel-users] Re: stunnel 5.75 released patches" <stunnel-users.stunnel.org> From: Christian Ullrich via stunnel-users [email protected] Send reply to: Christian Ullrich [email protected]
- Michal Trojnara wrote:
I have released version 5.75 of stunnel.
### Version 5.75, 2025.05.26, urgency: MEDIUM
Hello,
why does the Windows release include "libgcc_s_seh-1.dll"?
I cannot find anything that uses it, and a basic configuration works without any attempts to load it. I went to some lengths to find indications it might be loaded dynamically, but found nothing.
Can't say for stunnel, but my experience making programs with ming compiler for windows exe programs.
Have programs that use calls that require linux calls that windows doesn't include. So for me that requires this 3 dlls to be included individually or to be statically compiled into the exe.
82432 Jun 24 2022 libgcc_s_seh-1.dll 1681408 Jun 24 2022 libstdc++-6.dll 56320 Jun 24 2022 libwinpthread-1.dll
If you have a number of these programs all compiled statically, the size is much larger than just having the dll files in path.
Example. 28026 May 28 20:23 fixzzallbz.cpp Source 181318 May 28 20:24 fixzzallbz.exe Regular Compile 14849533 May 28 20:24 fixzzallbzs.exe Static Compile
The size of the Static compiled exe is much larger, since it statically compiles everything into exe. 3 dll files are like 1.7 to 1.8M 81K Jun 24 2022 libgcc_s_seh-1.dll 1.7M Jun 24 2022 libstdc++-6.dll 55K Jun 24 2022 libwinpthread-1.dll
Maybe that stunnel source does need that dll, but it is only 81k. If I try to run the regular compiled version get. ./fixzzallbz.exe 0460:err:module:import_dll Library libgcc_s_seh-1.dll (which is needed by L"Z:\home\msetzerii\staffx19\CONTACTD\win\fixzzallbz.exe") not found 0460:err:module:import_dll Library libstdc++-6.dll (which is needed by L"Z:\home\msetzerii\staffx19\CONTACTD\win\fixzzallbz.exe") not found 0460:err:module:loader_init Importing dlls for L"Z:\home\msetzerii\staffx19\CONTACTD\win\fixzzallbz.exe" failed, status c0000135
If I put the dll files in directory, the regular compiled version works fine. 28K May 28 20:23 fixzzallbz.cpp 55K May 28 20:35 libwinpthread-1.dll 81K May 28 20:35 libgcc_s_seh-1.dll 178K May 28 20:24 fixzzallbz.exe 1.7M May 28 20:35 libstdc++-6.dll 15M May 28 20:24 fixzzallbzs.exe
Using the ming compiler allows one to use the same cpp source code to build linux and windows programs. Otherwise one has to have different code for windows to do the same things.
Again, this is from my experience. Don't know if that answers question. Had to look at it myself. Don't do a lot of windows exe programming, but that is one.
Thanks,
-- Christian
stunnel-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
+------------------------------------------------------------+ Michael D. Setzer II - Computer Science Instructor (Retired) mailto:[email protected] mailto:[email protected] mailto:[email protected] Guam - Where America's Day Begins G4L Disk Imaging Project maintainer http://sourceforge.net/projects/g4l/ +------------------------------------------------------------+