Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.2.15
    • Fix Version/s: 2.0.6
    • Component/s: Builds
    • Labels:
    • Environment:
      win7 x64
    • Flags:
      Important

      Description

      E:\lib\log4net-1.2.15>rem

      E:\lib\log4net-1.2.15>rem

      E:\lib\log4net-1.2.15>rem Licensed to the Apache Software Foundation (ASF) under one

      E:\lib\log4net-1.2.15>rem or more contributor license agreements. See the NOTICE file

      E:\lib\log4net-1.2.15>rem distributed with this work for additional information

      E:\lib\log4net-1.2.15>rem regarding copyright ownership. The ASF licenses this file

      E:\lib\log4net-1.2.15>rem to you under the Apache License, Version 2.0 (the

      E:\lib\log4net-1.2.15>rem "License"); you may not use this file except in compliance

      E:\lib\log4net-1.2.15>rem with the License. You may obtain a copy of the License at

      E:\lib\log4net-1.2.15>rem

      E:\lib\log4net-1.2.15>rem http://www.apache.org/licenses/LICENSE-2.0

      E:\lib\log4net-1.2.15>rem

      E:\lib\log4net-1.2.15>rem Unless required by applicable law or agreed to in writing,

      E:\lib\log4net-1.2.15>rem software distributed under the License is distributed on an

      E:\lib\log4net-1.2.15>rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

      E:\lib\log4net-1.2.15>rem KIND, either express or implied. See the License for the

      E:\lib\log4net-1.2.15>rem specific language governing permissions and limitations

      E:\lib\log4net-1.2.15>rem under the License.

      E:\lib\log4net-1.2.15>rem

      E:\lib\log4net-1.2.15>rem
      LOG4NET_DIR is E:\lib\log4net-1.2.15
      NANTEXE_PATH is E:\tools\nant-0.92\bin\nant.exe
      BUILD_FILE is E:\lib\log4net-1.2.15\log4net.build
      NAnt 0.92 (Build 0.92.4543.0; release; 2012-06-09)
      Copyright (C) 2001-2012 Gerry Shaw
      http://nant.sourceforge.net

      Buildfile: file:///E:/lib/log4net-1.2.15/log4net.build
      Target framework: Microsoft .NET Framework 4.0
      Target(s) specified: compile-all

      check-current-build-config:

      set-build-configuration:

      set-debug-build-configuration:

      check-current-build-config:

      set-build-configuration-flags:

      check-current-build-config:

      set-framework-configuration:

      check-bin-dir:

      check-doc-dir:

      check-sdkdoc-dir:

      check-sdkdoc-debug:

      check-current-build-config:

      check-build-debug:

      check-build-defines:

      set-net-4.0-runtime-configuration:

      generate-assembly-description:

      [delete] Deleting file E:\lib\log4net-1.2.15\src\GeneratedAssemblyInfo.cs.
      [asminfo] Generated file 'E:\lib\log4net-1.2.15\src\GeneratedAssemblyInfo.cs'.

      compile-all:

      [echo] Compiling all build configurations for all runtime configurations.

      set-debug-build-configuration:

      check-current-build-config:

      set-build-configuration-flags:

      compile-build:

      [echo] Compiling all framework versions for the debug build configuration.

      check-bin-dir:

      check-doc-dir:

      check-sdkdoc-dir:

      check-sdkdoc-debug:

      check-current-build-config:

      check-build-debug:

      check-build-defines:

      set-netcf-2.0-runtime-configuration:

      [property] Target framework changed to "Microsoft .NET Compact Framework 2.0".

      check-log4net-basedir:

      check-current-bin-dir:

      clean-current-bin-dir:

      [echo] Cleaning the bin/netcf/2.0/debug binaries directory.
      [delete] Deleting directory 'E:\lib\log4net-1.2.15\bin\netcf\2.0\debug'.
      [mkdir] Creating directory 'E:\lib\log4net-1.2.15\bin\netcf\2.0\debug'.

      compile-netcf-2.0:

      [csc] Compiling 225 files to 'E:\lib\log4net-1.2.15\bin\netcf\2.0\debug\log4net.dll'.
      [csc] e:\lib\log4net-1.2.15\src\Util\LogicalThreadContextStacks.cs(36,20): error CS0246: Can't find class or namespace“LogicalThreadContextProperties”(Whether a using directive or an assembly reference is missing?)
      [csc] e:\lib\log4net-1.2.15\src\Util\LogicalThreadContextStacks.cs(48,39): error CS0246: Can't find class or namespace“LogicalThreadContextProperties”(Whether a using directive or an assembly reference is missing?)

      BUILD FAILED

      E:\lib\log4net-1.2.15\log4net.build(454,6):
      External Program Failed: C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe (return code was 1)

      Total time: 1.2 seconds.

        Activity

        Hide
        bodewig Stefan Bodewig added a comment -

        I won't promise anything as I haven't access to NETCF anymore, but it should be possible to conditionally exclude that functionality.

        We'll likely need a few roundtrips between me making changes and you testing them before compilation goes through, so it would be good if you could test the current svn trunk in order to see whether we've introduced any additional code that cannot build on NETCF.

        Show
        bodewig Stefan Bodewig added a comment - I won't promise anything as I haven't access to NETCF anymore, but it should be possible to conditionally exclude that functionality. We'll likely need a few roundtrips between me making changes and you testing them before compilation goes through, so it would be good if you could test the current svn trunk in order to see whether we've introduced any additional code that cannot build on NETCF.
        Hide
        bodewig Stefan Bodewig added a comment -

        should be fixed with svn revision 1771947 - it would be good if you could verify it now builds for you as I cannot test it myself.

        Show
        bodewig Stefan Bodewig added a comment - should be fixed with svn revision 1771947 - it would be good if you could verify it now builds for you as I cannot test it myself.
        Hide
        luzht luzht added a comment -

        I tried again,but it didn't work.Here is the error message:
        ompile-netcf-2.0:
        [csc] Compiling 225 files to 'E:\lib\log4net-1.2.15\bin\netcf\2.0\debug\log4net.dll'.
        [csc] e:\lib\log4net-1.2.15\src\Appender\RollingFileAppender.cs(1152,24): error CS1501: The "Mutex" method does not use overloads of "2" arguments
        [csc] c:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\mscorlib.dll: (
        The position of the symbol associated with the previous error)

        In fact,I just want to use log4net for WinCE program(NETCF 2.0).

        Show
        luzht luzht added a comment - I tried again,but it didn't work.Here is the error message: ompile-netcf-2.0: [csc] Compiling 225 files to 'E:\lib\log4net-1.2.15\bin\netcf\2.0\debug\log4net.dll'. [csc] e:\lib\log4net-1.2.15\src\Appender\RollingFileAppender.cs(1152,24): error CS1501: The "Mutex" method does not use overloads of "2" arguments [csc] c:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\mscorlib.dll: ( The position of the symbol associated with the previous error) In fact,I just want to use log4net for WinCE program(NETCF 2.0).
        Hide
        bodewig Stefan Bodewig added a comment -

        Many thanks, that's why I asked you test it.

        NETCF is only supported on a best effort basis, i.e. we try to keep log4net building on NETCF but can't test it ourselves. Many thanks for helping us out.

        I'll update this ticket once I've looked into the Mutex issue.

        Show
        bodewig Stefan Bodewig added a comment - Many thanks, that's why I asked you test it. NETCF is only supported on a best effort basis, i.e. we try to keep log4net building on NETCF but can't test it ourselves. Many thanks for helping us out. I'll update this ticket once I've looked into the Mutex issue.
        Hide
        bodewig Stefan Bodewig added a comment -

        AFAIU there is no system wide Mutex in NETCF. so LOG4NET-486 seems to have broken NETCF since 1.2.14.

        For now I've hidden the mutex code in trunk, could you please try again so we can get to the next compilation error?

        I won't close this issue for now as we are likely to touch the same code again when tackling LOG4NET-487 - we'll probably ask you to verify trunk builds again.

        Show
        bodewig Stefan Bodewig added a comment - AFAIU there is no system wide Mutex in NETCF. so LOG4NET-486 seems to have broken NETCF since 1.2.14. For now I've hidden the mutex code in trunk, could you please try again so we can get to the next compilation error? I won't close this issue for now as we are likely to touch the same code again when tackling LOG4NET-487 - we'll probably ask you to verify trunk builds again.
        Hide
        luzht luzht added a comment -

        OK,I'll try it again later

        Show
        luzht luzht added a comment - OK,I'll try it again later
        Hide
        luzht luzht added a comment -

        Good news! BUILD SUCCEEDED.
        Thank you very much.

        Show
        luzht luzht added a comment - Good news! BUILD SUCCEEDED. Thank you very much.
        Hide
        bodewig Stefan Bodewig added a comment -

        We won't tackle LOG4NET-487 before the release, so I'm closing this. It would be good if you could keep an eye on future changes, though. This is probably best done by joining the dev list.

        Show
        bodewig Stefan Bodewig added a comment - We won't tackle LOG4NET-487 before the release, so I'm closing this. It would be good if you could keep an eye on future changes, though. This is probably best done by joining the dev list.

          People

          • Assignee:
            Unassigned
            Reporter:
            luzht luzht
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development