[Boxbackup-dev] openssl link error "error LNK2026: module unsafe for SAFESEH image".

Arnaud Grandville bb at grandville.net
Sun Sep 1 08:52:55 BST 2013


When I compile my project with VS2012 I get several errors about my OpenSSL
libs:

2>------ Build started: Project: bbackupd, Configuration: Debug Win32 ------

2>autogen_ClientException.obj : warning LNK4075: ignoring '/EDITANDCONTINUE'
due to '/SAFESEH' specification

2>common.lib(md5-586.obj) : error LNK2026: module unsafe for SAFESEH image.

2>common.lib(x86cpuid.obj) : error LNK2026: module unsafe for SAFESEH image.

2>common.lib(bf-586.obj) : error LNK2026: module unsafe for SAFESEH image.

.

 

How to compile OpenSSL libraries with the SAFESEH flag enable ?

You must edit two lines in your openssl make files

< LFLAGS=/nologo /subsystem:console /opt:ref /debug

> LFLAGS=/nologo /subsystem:console /opt:ref /debug /safeseh

and

< ASM=ml /nologo /Cp /coff /c /Cx /Zi

> ASM=ml /nologo /Cp /coff /c /Cx /Zi /safeseh

 

Clean and Rebuild

 

Arnaud

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.boxbackup.org/pipermail/boxbackup-dev/attachments/20130901/35a0ada5/attachment.html>


More information about the Boxbackup-dev mailing list