chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Help debugging windows build


From: Patrick Brannan
Subject: [Chicken-users] Help debugging windows build
Date: Fri, 3 Feb 2006 13:37:25 -0600

This email addresses a problem that is unique to a particular Windows XP installation. If you have no interest in this, then stop reading now. I normally don't submit this kind of stuff, but I am stuck and need some ideas.

My hope is that someone who understands Windows compilation and shared library loading better than I do can give me an idea or two that will help me work through this. If you have any suggestions, links to articles, or whatever, you will have my undying gratitude.

I recently had to switch computers and haven't gotten chicken to build properly since. Whether I use the build script or the makefile the result is the same. The build appears to complete normally, but when I run anything I end up with a windows dialog box (details at bottom) unless I have a few very odd directories in my path.

My suspicion is that one of my library files (with a mingw or vc environment) is incompatible with a dll in the system32 directory on this machine. My reason for that suspicion is that I can make things run if I add certain directories to the path when running. I have had scenarios where the app would run until I eliminated a certain Java bin directory -- oracle 1.8 java if you have to know -- from the path. When I would look in the directory there would be an msvcrt.dll in there. Unfortunately, dropping the mscvrt.dll in the chicken's dir doesn't fix anything.

If I run chicken.exe with PATH1 I get the error listed at the bottom even though this is how it was compiled.

So my theory is that the import libraries being picked during the compilation do not match the dlls being loaded at runtime. I just don't know if there is a quick way to work through the problem.

If I run it with PATH2 it runs fine.

PATH1
set PATH=C:\working\cmake\chicken-2.216;C:\programs\darcs-w32;C:\Programs\CMake_2.2\bin;C:\ProgramFiles\Microsoft Visual C++ Toolkit 2003\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\WINDOWS\SYSTEM32\;C:\Program Files\Microsoft Platform SDK\Bin;C:\Program Files\Microsoft Platform SDK\Bin\WinNT;C:\Program Files\Microsoft Platform SDK\Bin\win64

PATH2
set PATH=C:\working\cmake\chicken-2.216;C:\Program Files\Microsoft Platform SDK\Bin\;C:\Program Files\Microsoft Platform SDK\Bin\WinNT\;C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\Program Files\Microsoft Platform SDK\Bin\win64\;C:\WINDOWS\SYSTEM32\;C:\Program Files\Java\jdk1.5.0_04\bin;C:\Oracle\Ora92\bin;C:\Oracle\Ora92\jre\1.4.2\bin\client;C:\Oracle\Ora92\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\PROGRAM FILES\THINKPAD\UTILITIES;C:\Program Files\Java\j2re1.4.2_01\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;

ERROR DIALOG INFO

Error signature
AppName: chicken.exe     AppVer: 0.0.0.0     ModName: ntdll.dll
ModVer: 5.1.2600.2180     Offset: 0003426d

Error Report
<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="chicken.exe" FILTER="GRABMI_FILTER_PRIVACY">
    <MATCHING_FILE NAME="chicken.dll" SIZE="1806336" CHECKSUM="0xF81C5AD3" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="02/03/2006 17:01:14" UPTO_LINK_DATE="02/03/2006 17:01:14" />
    <MATCHING_FILE NAME="chicken.exe" SIZE="1441792" CHECKSUM="0xA161AEF4" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="02/03/2006 17:01:15" UPTO_LINK_DATE="02/03/2006 17:01:15" />
    <MATCHING_FILE NAME="test\chicken.dll" SIZE="1806336" CHECKSUM="0x71B75D6" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="02/01/2006 22:33:12" UPTO_LINK_DATE="02/01/2006 22:33:12" />
    <MATCHING_FILE NAME="test\foo.exe" SIZE="27136" CHECKSUM="0xCDC6BC44" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="02/01/2006 23:30:36" UPTO_LINK_DATE="02/01/2006 23:30:36" />
</EXE>
<EXE NAME="ntdll.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="ntdll.dll" SIZE="708096" CHECKSUM="0x9D20568" BIN_FILE_VERSION="5.1.2600.2180" BIN_PRODUCT_VERSION="5.1.2600.2180" PRODUCT_VERSION="5.1.2600.2180" FILE_DESCRIPTION="NT Layer DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)" ORIGINAL_FILENAME="ntdll.dll" INTERNAL_NAME="ntdll.dll" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xAF2F7" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.2180" UPTO_BIN_PRODUCT_VERSION="5.1.2600.2180" LINK_DATE="08/04/2004 07:56:36" UPTO_LINK_DATE="08/04/2004 07:56:36" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
<EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="kernel32.dll" SIZE="983552" CHECKSUM="0x4CE79457" BIN_FILE_VERSION="5.1.2600.2180" BIN_PRODUCT_VERSION="5.1.2600.2180" PRODUCT_VERSION="5.1.2600.2180" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xFF848" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.2180" UPTO_BIN_PRODUCT_VERSION="5.1.2600.2180" LINK_DATE="08/04/2004 07:56:36" UPTO_LINK_DATE="08/04/2004 07:56:36" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
</DATABASE>

Thanks,

Patrick

reply via email to

[Prev in Thread] Current Thread [Next in Thread]