[gdal-dev] GDAL 1.6.0 DLL Hell problem on Windows Vista?
Jason Roberts
jason.roberts at duke.edu
Mon Dec 15 17:20:40 EST 2008
FYI, here is the output from running sxstrace.exe and attempting to execute
gdalinfo.exe. I haven't tried to determine what this means yet. (At first
glance, I am wondering why Windows is trying to probe for .NET assemblies in
the first place, since I expected that GDAL would not contain any. But then
this is Vista, so all bets are off.)
=================
Begin Activation Context Generation.
Input Parameter:
Flags = 0
ProcessorArchitecture = x86
CultureFallBacks = en-US;en
ManifestPath = C:\gdalwin32-1.6\bin\geos_c.dll
AssemblyDirectory = C:\gdalwin32-1.6\bin\
Application Config File =
-----------------
INFO: Parsing Manifest File C:\gdalwin32-1.6\bin\geos_c.dll.
INFO: Manifest Definition Identity is (null).
INFO: Reference:
Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18
e3b",type="win32",version="9.0.21022.8"
INFO: Resolving reference
Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18
e3b",type="win32",version="9.0.21022.8".
INFO: Resolving reference for ProcessorArchitecture x86.
INFO: Resolving reference for culture Neutral.
INFO: Applying Binding Policy.
INFO: No publisher policy found.
INFO: No binding policy redirect found.
INFO: Begin assembly probing.
INFO: Did not find the assembly in WinSxS.
INFO: Attempt to probe manifest at
C:\Windows\assembly\GAC_32\Microsoft.VC90.CRT\9.0.21022.8__1fc8b3b9a1e18e3b\
Microsoft.VC90.CRT.DLL.
INFO: Attempt to probe manifest at
C:\gdalwin32-1.6\bin\Microsoft.VC90.CRT.DLL.
INFO: Attempt to probe manifest at
C:\gdalwin32-1.6\bin\Microsoft.VC90.CRT.MANIFEST.
INFO: Attempt to probe manifest at
C:\gdalwin32-1.6\bin\Microsoft.VC90.CRT\Microsoft.VC90.CRT.DLL.
INFO: Attempt to probe manifest at
C:\gdalwin32-1.6\bin\Microsoft.VC90.CRT\Microsoft.VC90.CRT.MANIFEST.
INFO: Did not find manifest for culture Neutral.
INFO: End assembly probing.
ERROR: Cannot resolve reference
Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18
e3b",type="win32",version="9.0.21022.8".
ERROR: Activation Context generation failed.
End Activation Context Generation.
From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Jason Roberts
Sent: Monday, December 15, 2008 5:12 PM
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] GDAL 1.6.0 DLL Hell problem on Windows Vista?
Greetings GDAL developers,
I cannot get GDAL 1.6.0 to work on Windows Vista SP1. It appears that there
is a DLL Hell problem that does not appear on XP SP3, at least with my
machines.
Repro steps on Vista SP1:
1. Download
ftp://ftp.remotesensing.org/gdal/win32/1.6/gdalwin32exe160.zip and
decompress to C:\gdalwin32-1.6
2. From cmd.exe shell:
a. SET PATH=C:\gdalwin32-1.6\bin;%PATH%
b. SET GDAL_DATA=C:\gdalwin32-1.6\data
c. C:\gdalwin32-1.6\bin\gdalinfo.exe
3. Receive the following dialog box:
---------------------------
gdalinfo.exe - Application Error
---------------------------
The application failed to initialize properly (0xc0150002). Click OK to
terminate the application.
---------------------------
OK
---------------------------
The event log contains a new event: Source = SideBySide, Event ID = 33,
Description = Activation context generation failed for
"C:\gdalwin32-1.6\bin\geos_c.dll". Dependent Assembly
Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18
e3b",type="win32",version="9.0.21022.8" could not be found. Please use
sxstrace.exe for detailed diagnosis.
Running depends.exe on C:\gdalwin32-1.6\bin\geos_c.dll gives the error "
Error: The Side-by-Side configuration information for
"c:\gdalwin32-1.6\bin\GEOS_C.DLL" contains errors. The application has
failed to start because its side-by-side configuration is incorrect. Please
see the application event log for more detail (14001)." Looking in the event
log again, we have another instance of the event above.
This looks like a classic DLL Hell problem, with Vista thrown in just to
make it more confusing. Please let me know if I've somehow messed up the
install or am missing something obvious. Apologies if I am.
I will investigate a bit further, but not being a GDAL developer, I do not
know which compilers you use, how you intend to link to MSVCRT, etc. If the
GDAL "build guy" could look at this, I'd really appreciate it. If you send
private builds, I can try them out with quick turnaround.
Thanks for your help,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20081215/2709481a/attachment-0001.html
More information about the gdal-dev
mailing list