[ 
https://issues.apache.org/jira/browse/XERCESC-2114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roger Leigh reopened XERCESC-2114:
----------------------------------

This is still reproducible with 3.2.1rc3

 

Creating library 
D:\FILES-merge\af9fc46c\build\xalan-source\c\Build\Win64\VC14\Release\\Xalan-C_1.lib
 and object 
D:\FILES-merge\af9fc46c\build\xalan-source\c\Build\Win64\VC14\Release\\Xalan-C_1.exp
 2>XalanDiagnosticMemoryManager.obj : error LNK2001: unresolved external symbol 
"__declspec(dllimport) unsigned __int64 const `public: static unsigned __int64 
__cdecl 
xercesc_3_2::XMLPlatformUtils::alignPointerForNewBlockAllocation(unsigned 
__int64)'::`2'::alignment" 
(__imp_?alignment@?1??alignPointerForNewBlockAllocation@XMLPlatformUtils@xercesc_3_2@@SA_K_K@Z@4_KB)
 
[D:\FILES-merge\af9fc46c\build\xalan-source\c\Projects\Win32\VC14\AllInOne\AllInOne.vcxproj]
 2>..\..\..\..\Build\Win64\VC14\Release\Xalan-C_1_11.dll : fatal error LNK1120: 
1 unresolved externals 
[D:\FILES-merge\af9fc46c\build\xalan-source\c\Projects\Win32\VC14\AllInOne\AllInOne.vcxproj]

 

"D:\FILES-merge\af9fc46c\build\xalan-source\c\Projects\Win32\VC14\Xalan.sln" 
(AllInOne target) (1) -> 
"D:\FILES-merge\af9fc46c\build\xalan-source\c\Projects\Win32\VC14\AllInOne\AllInOne.vcxproj"
 (default target) (2) -> (DoLinkOutputFilesMatch target) -> C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1189,5): 
warning MSB8012: 
TargetPath(D:\FILES-merge\af9fc46c\build\xalan-source\c\Projects\Win32\VC14\AllInOne\..\..\..\..\Build\Win64\VC14\Release\AllInOne.dll)
 does not match the Linker's OutputFile property value 
(D:\FILES-merge\af9fc46c\build\xalan-source\c\Build\Win64\VC14\Release\Xalan-C_1_11.dll).
 This may cause your project to build incorrectly. To correct this, please make 
sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the 
value specified in %(Link.OutputFile). 
[D:\FILES-merge\af9fc46c\build\xalan-source\c\Projects\Win32\VC14\AllInOne\AllInOne.vcxproj]
 C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1191,5): 
warning MSB8012: TargetName(AllInOne) does not match the Linker's OutputFile 
property value (Xalan-C_1_11). This may cause your project to build 
incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) 
and $(TargetExt) property values match the value specified in 
%(Link.OutputFile). 
[D:\FILES-merge\af9fc46c\build\xalan-source\c\Projects\Win32\VC14\AllInOne\AllInOne.vcxproj]
 "D:\FILES-merge\af9fc46c\build\xalan-source\c\Projects\Win32\VC14\Xalan.sln" 
(AllInOne target) (1) -> 
"D:\FILES-merge\af9fc46c\build\xalan-source\c\Projects\Win32\VC14\AllInOne\AllInOne.vcxproj"
 (default target) (2) -> (Link target) -> XalanDiagnosticMemoryManager.obj : 
error LNK2001: unresolved external symbol "__declspec(dllimport) unsigned 
__int64 const `public: static unsigned __int64 __cdecl 
xercesc_3_2::XMLPlatformUtils::alignPointerForNewBlockAllocation(unsigned 
__int64)'::`2'::alignment" 
(__imp_?alignment@?1??alignPointerForNewBlockAllocation@XMLPlatformUtils@xercesc_3_2@@SA_K_K@Z@4_KB)
 
[D:\FILES-merge\af9fc46c\build\xalan-source\c\Projects\Win32\VC14\AllInOne\AllInOne.vcxproj]
 ..\..\..\..\Build\Win64\VC14\Release\Xalan-C_1_11.dll : fatal error LNK1120: 1 
unresolved externals 
[D:\FILES-merge\af9fc46c\build\xalan-source\c\Projects\Win32\VC14\AllInOne\AllInOne.vcxproj]

 

I would be interested to know if anyone else can reproduce the failure with 
3.2.1rc3 on Windows with current Xalan-C.  It's not unlikely that the fault is 
with the Xalan build with VS2015, but it's potentially the case that there's 
something up with the Xerces-C symbol exports?

> Link failure with Xalan-C
> -------------------------
>
>                 Key: XERCESC-2114
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2114
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.2.0
>         Environment: VS2013 on Windows Server 2012R2
>            Reporter: Roger Leigh
>            Assignee: Roger Leigh
>            Priority: Major
>
> Testing latest rc1 with xalan and VS2013:
> [Build 
> log|https://ci.openmicroscopy.org/view/Files/job/OME-FILES-CPP-DEV-merge-win-superbuild/VSARCH=x64,VSCONFIG=Release,VSVERSION=12,label=maxquant-ome/714/console]
> Using [this 
> patch|https://raw.githubusercontent.com/ome/ome-cmake-superbuild/master/packages/xalan/patches/win-vc12.diff]
>  to build Xalan with VS2013 (it's just the upgraded project files).
> {noformat}
> 12:29:32        (Link target) -> 
> 12:29:32          XalanDiagnosticMemoryManager.obj : error LNK2001: 
> unresolved external symbol "__declspec(dllimport) unsigned __int64 const 
> `public: static unsigned __int64 __cdecl 
> xercesc_3_2::XMLPlatformUtils::alignPointerForNewBlockAllocation(unsigned 
> __int64)'::`2'::alignment" 
> (__imp_?alignment@?1??alignPointerForNewBlockAllocation@XMLPlatformUtils@xercesc_3_2@@SA_K_K@Z@4_KB)
>  
> [D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xalan-source\c\Projects\Win32\VC12\AllInOne\AllInOne.vcxproj]
> 12:29:32          ..\..\..\..\Build\Win64\VC12\Release\Xalan-C_1_11.dll : 
> fatal error LNK1120: 1 unresolved externals 
> [D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xalan-source\c\Projects\Win32\VC12\AllInOne\AllInOne.vcxproj]
> {noformat}
> Is there any incompatible change expected here?  Could potentially be missing 
> symbol exports or anything of that nature?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to