All,

I'm stuck on trying to get tcnative to build for x86_64.

When I run nmake with BUILD_CPU=x86_64, I get a bunch of compiler
warnings followed by a linker failure like this (apologies for the lack
of formatting).

One problem may be that I am running a 32-bit OS: is it possible to
build 64-bit binaries from 32-bit OS? Given the build instructions for
x86_64 for tcnative, I would have imagined that MSVC++ was a
cross-compiler and that I would be able to build IA32, IA64, and x86_64
all from the same machine.

Here's the command that I actually ran from my script:
  nmake -f NMAKEMakefile BUILD_CPU=%TARGET_ARCH%
                         "WITH_APR=%MYTEMP%\build\apr"
                         "WITH_OPENSSL=%MYTEMP%\build\openssl"
                          APR_DECLARE_STATIC=1
                          %TCNATIVE_ENABLE_OCSP%

This command works when TARGET_ARCH=x86 but fails when TARGET_ARCH=x86_64.

Any ideas?

Thanks,
-chris

        cl -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -DWINNT -D_WINNT
-D_WIN32_WINN
T=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -EHsc -D_MBCS -DMBCS
-D_AMD64_=1
 -DWIN64 -D_WIN64 -O2 -Ob2 -Zi -DNDEBUG -D_MT -MD -DAPR_DECLARE_STATIC
-DZLIB_WI
NAPI -DNO_IDEA -DNO_RC5 -DNO_MDC2 -DOPENSSL_NO_IDEA  -DOPENSSL_NO_RC5
-DOPENSSL_
NO_MDC2 -DHAVE_OPENSSL -DHAVE_SSL_SET_STATE=1 -I.\include -I "C:\Program
Files\J
ava\jdk1.7.0_60\include" -I "C:\Program
Files\Java\jdk1.7.0_60\include\win32" -I
C:\Users\IEUser\AppData\Local\Temp\build-tcnative\build\apr\include
-IC:\Users\I
EUser\AppData\Local\Temp\build-tcnative\build\apr\include\arch\win32
-IC:\Users\
IEUser\AppData\Local\Temp\build-tcnative\build\openssl\include
-FoWINXP_X64_DLL_
RELEASE\ -FdWINXP_X64_DLL_RELEASE\tcnative-1-src .\os\win32\system.c
system.c
C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(112) :
warning
 C4391: 'size_t strlen(const char *)' : incorrect return type for
intrinsic function, expected 'unsigned int'
C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(285) :
warning
 C4391: 'size_t wcslen(const wchar_t *)' : incorrect return type for
intrinsic f
unction, expected 'unsigned int'
        rc /l 0x409 /d "NDEBUG" /i ".\include" /fo
WINXP_X64_DLL_RELEASE\tcnativ
e-1.res .\os\win32\libtcnative.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
Copyright (C) Microsoft Corporation.  All rights reserved.

        link.exe /NOLOGO /DLL /SUBSYSTEM:WINDOWS /MACHINE:AMD64 /OPT:REF
/version:1.1 user32.lib psapi.lib gdi32.lib shlwapi.lib wldap32.lib
ole32.lib apr-1.lib
 libeay32.lib ssleay32.lib WINXP_X64_DLL_RELEASE\address.obj
WINXP_X64_DLL_RELE
ASE\bb.obj  WINXP_X64_DLL_RELEASE\dir.obj
WINXP_X64_DLL_RELEASE\error.obj  WINX
P_X64_DLL_RELEASE\file.obj  WINXP_X64_DLL_RELEASE\info.obj
WINXP_X64_DLL_RELEAS
E\jnilib.obj  WINXP_X64_DLL_RELEASE\lock.obj
WINXP_X64_DLL_RELEASE\misc.obj  WI
NXP_X64_DLL_RELEASE\mmap.obj  WINXP_X64_DLL_RELEASE\multicast.obj
WINXP_X64_DLL
_RELEASE\network.obj  WINXP_X64_DLL_RELEASE\os.obj
WINXP_X64_DLL_RELEASE\poll.o
bj  WINXP_X64_DLL_RELEASE\pool.obj  WINXP_X64_DLL_RELEASE\proc.obj
WINXP_X64_DL
L_RELEASE\shm.obj  WINXP_X64_DLL_RELEASE\ssl.obj
WINXP_X64_DLL_RELEASE\sslconte
xt.obj  WINXP_X64_DLL_RELEASE\sslinfo.obj
WINXP_X64_DLL_RELEASE\sslnetwork.obj
 WINXP_X64_DLL_RELEASE\sslutils.obj  WINXP_X64_DLL_RELEASE\stdlib.obj
WINXP_X64
_DLL_RELEASE\user.obj  WINXP_X64_DLL_RELEASE\thread.obj
WINXP_X64_DLL_RELEASE\n
tpipe.obj  WINXP_X64_DLL_RELEASE\registry.obj
WINXP_X64_DLL_RELEASE\system.obj
WINXP_X64_DLL_RELEASE\tcnative-1.res kernel32.lib advapi32.lib
ws2_32.lib mswsock.lib ole32.lib shell32.lib rpcrt4.lib
/libpath:"C:\Users\IEUser\AppData\Local\Temp\build-tcnative\build\apr\lib"
/libpath:"C:\Users\IEUser\AppData\Local\Temp\build-tcnative\build\openssl\lib"
/pdb:WINXP_X64_DLL_RELEASE\tcnative-1.pdb /out:
WINXP_X64_DLL_RELEASE\tcnative-1.dll
WINXP_X64_DLL_RELEASE\address.obj : fatal error LNK1112: module machine
type 'X86' conflicts with target machine type 'x64'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
10.0\VC\Bin\link.exe"' : return code '0x458'
Stop.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to