Issue 88568

Summary: build fails in python module
Product: utilities Reporter: kyoshida
Component: codeAssignee: Martin Hollmichel <nesshof>
Status: CLOSED FIXED QA Contact: Unknown <non-migrated>
Severity: Trivial    
Priority: P3 CC: issues
Version: DEV300m9   
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
full build log of python module none

Description kyoshida 2008-04-22 03:33:21 UTC
When building DEV300_m10 (this version doesn't exist yet in IZ), the build fails
in the python module.  I'm using VS2005 Professional edition.

Here is the output of where it fails.

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd "."
        cd "."
        if not exist ".\x86-temp-release\_socket/" mkdir
".\x86-temp-release\_socket"
        cl.exe /nologo /MD /W3 /EHa /Zc:wchar_t- /D _CRT_SECURE_NO_DEPRECATE /Zi
/O2 /I "..\Include" /I "..\PC" /D "NDEB
UG" /D "WIN32" /D "_WINDOWS" /Fp".\x86-temp-release\_socket\_socket.pch"
/Fo".\x86-temp-release\_socket\\" /Fd".\x86-tem
p-release\_socket\\" /FD /c ..\Modules\socketmodule.c
socketmodule.c
        link.exe @c:\DOCUME~1\Kohei\LOCALS~1\Temp\nm1D4.tmp
   Creating library .\.\_socket.lib and object .\.\_socket.exp
socketmodule.obj : error LNK2019: unresolved external symbol
__imp__freeaddrinfo@4 referenced in function _setipaddr
socketmodule.obj : error LNK2019: unresolved external symbol
__imp__getaddrinfo@16 referenced in function _setipaddr
socketmodule.obj : error LNK2019: unresolved external symbol
__imp__getnameinfo@28 referenced in function _makeipaddr
.\.\_socket.pyd : fatal error LNK1120: 3 unresolved externals
NMAKE : fatal error U1077: 'c:\PROGRA~1\MICROS~4\VC\bin\link.exe' : return code
'0x460'
Stop.
dmake:  Error code 2, while making './wntmsci11.pro/misc/build/so_built_so_python'

ERROR: Error 65280 occurred while making /cygdrive/e/DEV300_m10/python
Comment 1 kyoshida 2008-04-22 03:34:47 UTC
Created attachment 53100 [details]
full build log of python module
Comment 2 kyoshida 2008-04-22 03:43:19 UTC
These are the configure options I used:

./configure --with-win32 \
    --with-cl-home="/cygdrive/c/Program Files/Microsoft Visual Studio 8/VC" \
    --with-csc-path="/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v2.0.50727" \
    --with-frame-home="/cygdrive/c/Program Files/Microsoft SDKs/Windows/V6.1" \
    --with-psdk-home="/cygdrive/c/Program Files/Microsoft SDKs/Windows/V6.1" \
    --disable-build-mozilla --with-use-shell=bash \
    --disable-atl \
    --with-nsis-path="/cygdrive/c/Program Files/NSIS" \
    --with-jdk-home="/cygdrive/c/Program Files/Java/jdk1.5.0_14" \
    --with-ant-home="/cygdrive/c/apache-ant-1.7.0" \
    --disable-activex \
    --with-lang="en-US"
Comment 3 kyoshida 2008-04-22 03:46:23 UTC
This, and many other build problems on Windows I just started getting all of a
sudden prevents me from providing a QA install set for koheiformula01 CWS.  It's
very frustrating that my CWS be delayed because of build issues in areas outside
of where I modified.

I didn't have any major issues up until DEV300_m2.  Then I started having all
sorts of issues starting with DEV300_m5.  Please help.
Comment 4 oliver.bolte 2008-04-22 08:26:48 UTC
Hi Kohei,

configure isn't perfect for .Net 2008 yet,
use /cygdrive/c/Program Files/Microsoft SDKs/Windows/v6.1 (lower case v6.1). I'm
not sure if the --disable-atl switch has been implemented yet. It helps if you
have a look into the winenv.set.sh, the settings WINDOWS_VISTA_PSDK  and
DISABLE_ATL settings have to be set 'TRUE'.

HTH
Oliver
Comment 5 kyoshida 2008-04-22 15:35:30 UTC
Hi Oliver,

Lower-casing the v6.1 helped me get past the python module.  It's still building
so no guarantee yet for the final install set, but at least this problem is now
solved.

Thanks a lot.
Comment 6 kyoshida 2008-04-22 15:55:43 UTC
closing it.