Hello, 

look into the .DEF file, there is the information, which
type of dynamic library should be generated; 

it is very probable, that
your .DEF file is for 32-bit only; 

Walter 

Am 08.07.2013 10:59,
schrieb Andrew MARLOW: 

> Hello gentlemen,
> 
> I am trying to build
openssl 1.0.1e on windows and am running into a few problems. I hope
someone will be able to help/advise.
> 
> Following the instructions in
INSTALL.W32 seems to work for 32 bit release mode but not for other
combinations. Switching from Release to Debug does not result in the pdb
files being installed via the command nmake -f msntdll.mak install.
> 
>
I tried to build in 64 bit by running vcvarsall amd64 then following the
build steps. The compilations were successful, with a few warnings about
conversions, but I got a linktime error:
> 
> rc
/fo"tmp32dlllibeay32.res" /d CRYPTO msversion32.rc
> link /nologo
/subsystem:console /opt:ref /debug /dll /out:out32dlllibeay32.dll
/def:ms/LIBEAY32.def @C:UsersmarlowaAppDataLocalTempnmEFE4.tmp
>
mp32dllx86cpuid.obj : fatal error LNK1112: module machine type 'X86'
conflicts with target machine type 'x64'
> MAKE : fatal error U1077:
'"C:Program Files (x86)Microsoft Visual Studio 8VCBINamd64link.EXE"' :
return code '0x458'
> Stop.
> 
> I am on windows 7 (64 bit) using the
Visual Studio 2005 compiler.
> 
> Googling, I see that others have hit
this problem as well:
> 
>
http://comments.gmane.org/gmane.comp.encryption.openssl.devel/16256
[1]
>
http://stackoverflow.com/questions/2559358/fatal-error-lnk1112-module-machine-type-x86-conflicts-with-target-machine-typ
[2]
>
http://stackoverflow.com/questions/14704592/fatal-error-lnk1112-module-machine-type-x86-conflicts-with-target-machine-typ
[3]
> 
> It looks to me like the 64 bit build is using some components
that came out of the 32 bit build, but I am not sure.
> 
> Regards,
> 
>
Andrew Marlow

 

Links:
------
[1]
http://comments.gmane.org/gmane.comp.encryption.openssl.devel/16256
[2]
http://stackoverflow.com/questions/2559358/fatal-error-lnk1112-module-machine-type-x86-conflicts-with-target-machine-typ
[3]
http://stackoverflow.com/questions/14704592/fatal-error-lnk1112-module-machine-type-x86-conflicts-with-target-machine-typ

Reply via email to