While I can build ok using VisualStudio 2003, I have build problems now on VisualStudio 2008.
> [exec] cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS > -FIsehmap.h -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WIN95 -D_WIN32_WINDOWS=0x0400 > /D_WIN32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Zi -Od -WX -GF -Gs -MD > -Zm400 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS > -D_SCL_SECURE_NO_DEPRECATE -D_DLL -D_ > MT -D_WINSOCKAPI_ /ID:\java6\working_classlib\deploy\include > /ID:\java6\working_classlib\deploy\jdk\include /I. /I..\shared\ > -Fohelpers.obj helpers.c > [exec] helpers.c > [exec] helpers.c(65) : error C2365: 'IFTYPE' : redefinition; previous > definition was 'typedef' > [exec] C:\Program Files\Microsoft > SDKs\Windows\v6.0A\include\ipifcons.h(238) : see declaration of 'IFTYPE' > [exec] helpers.c(65) : error C2086: 'IFTYPE' : redefinition > [exec] helpers.c(65) : see declaration of 'IFTYPE' > [exec] helpers.c(737) : error C2275: 'IFTYPE' : illegal use of this type > as an expression > [exec] C:\Program Files\Microsoft > SDKs\Windows\v6.0A\include\ipifcons.h(238) : see declaration of 'IFTYPE' > [exec] helpers.c(737) : error C2046: illegal case > [exec] helpers.c(772) : error C2275: 'IFTYPE' : illegal use of this type > as an expression > [exec] C:\Program Files\Microsoft > SDKs\Windows\v6.0A\include\ipifcons.h(238) : see declaration of 'IFTYPE' > [exec] helpers.c(772) : error C2198: > 'getPlatformNetworkInterfaceAttribute' : too few arguments for call > [exec] helpers.c(777) : error C2275: 'IFTYPE' : illegal use of this type > as an expression > [exec] C:\Program Files\Microsoft > SDKs\Windows\v6.0A\include\ipifcons.h(238) : see declaration of 'IFTYPE' > [exec] helpers.c(777) : error C2198: > 'getPlatformNetworkInterfaceAttribute' : too few arguments for call > [exec] NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual > Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2' > [exec] Stop. Anyone else see this? Regards, Tim On 18/Dec/2009 11:21, Ray Chen wrote: > Hi All, > > I run the java6 test on windows platform, 27059 tests ran, and I see > 18 failures and 15 errors > Failures: > *javax.swing.plaf.basic.BasicScrollBarUITest.testGetThumbBounds > expected: 16, actual: 0 > javax.swing.text.html.HTMLDocument_Reader_ActionsTest.testHarmony_4615 > null expected:<[line4 line4]> but was:<[ line4 line]> > org.apache.harmony.luni.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testUsingProxy2 > should throw ConnectException > org.apache.harmony.luni.tests.java.net.MulticastSocketTest.test_setInterfaceLjava_net_InetAddress > Exception during test : null > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getName > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getInetAddresses > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getDisplayName > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getByNameLjava_lang_String > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getByInetAddressLjava_net_InetAddress > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getNetworkInterfaces > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_equalsLjava_lang_Object > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_hashCode > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_toString > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getInterfaceAddresses > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_isLoopback > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getHardwareAddress > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getMTU > Exception occurred getting network interfaces : > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.URLConnectionTest.test_getInputStream > null expected:<[zyxwvuts]> but was:<[]> > > Errors: > javax.swing.text.html.HTMLDocument_Reader_ActionsTest.testHarmony_4582 > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.io.OutputStreamWriterTest.testHandleEarlyEOFChar_1 > java.nio.BufferOverflowException > org.apache.harmony.luni.tests.java.io.OutputStreamWriterTest.testHandleEarlyEOFChar_2 > java.nio.BufferOverflowException > org.apache.harmony.luni.tests.java.io.WriterTesterTest$FileWriterCharSinkTester:sinkTestWriteLargeArray > java.nio.BufferOverflowException > org.apache.harmony.luni.tests.java.net.InetAddressTest.test_isReachableLjava_net_NetworkInterfaceII > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.InetAddressTest.test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_hashCode > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_equals_LObject > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_toString > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_getAddress > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_getBroadcast > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_getNetworkPrefixLength > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.MulticastSocketTest.test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.MulticastSocketTest.test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface > java.lang.NullPointerException > org.apache.harmony.luni.tests.java.net.WinNetworkInterfaceTest.test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface > java.lang.NullPointerException > > > > I think the test failures of network interface related to JIRA6369 > which means there are bugs in our portlib code on windows platform. > And the test case start with"*" sucess when I ran it standalone. > >