X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5C63A385DC07
Authentication-Results: sourceware.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=message-id:date:mime-version:user-agent:subject:content-language:to
 :references:from:in-reply-to:content-transfer-encoding;
 bh=7ZUPbD4MDDE91vKZzi7mbcJV1ewnqO9i8krNGONzhtA=;
 b=J5aZkoHFLvHRKwvdrtLdQBkRKpPLVu4FPpWTtjENNmeaV3PcfhnmN8TiLVz7fU3afh
 Ueb50ikPDuhp3Fp61O6bZIWGo/dojyQEBN8XiAunWtgkc7Xu0L5oHPDrXM93DV1LWeHR
 AIZPSlji4gRraUO6tmBVvREk8hFLA0hz9jjsqxQCMtSRfCujhbZHhy9UBu7FCge3fHIF
 4vZCLo/B7UI0jF9lNDHurswwdt8X83kJcbfJfXW5cVWxV9Hz1z1c/CBLxipCfbQLm4ZE
 ctOWMmqPTJEDBQn/246DcUtiP7aRG1M4z2IKkb+iXZISOv+pItKwwtsgxluc9G6/9vnK
 kAPA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
 :content-language:to:references:from:in-reply-to
 :content-transfer-encoding;
 bh=7ZUPbD4MDDE91vKZzi7mbcJV1ewnqO9i8krNGONzhtA=;
 b=ISc36w4VeyGt4YURb7oedb90RyBd0wfFFXRZ63VePgaK3TcL26xqPg177OEj84aLGS
 vvt/qw+C9FYyctqyjgB55sIY8TiMEKN+a+KdKYLaq81sPx9jOXX4oapssDlx3/A9kS2u
 91m2ImPNOV9VUg85LITgR6VqpxKAgzqHkJRZOlOfaxzOs8yx6dqqTELAbBx9gbC6yZdg
 hc0LaOMBZCP1trCk2M/TPmsoR9xtLX8Thupi+q3qPZAX9zAKhEMeAfW6rUkNDMPiB88w
 PMhmRXjwqj5MC2lbmHaTvaa0+IN14wK4TSZmrG6OzjMlqYcYQUx3HouLMIDVG8gjIvmV
 WL9g==
X-Gm-Message-State: AOAM531VLlCJ7thekkCow6au9SEYVaosfJlgOJ4F+5uIuTL7l+rWQ5g7
 eB+MeH7cF70j4xfx4ho+O60ybIcJuXk=
X-Google-Smtp-Source: ABdhPJxa0fksYdOIhpi9gIYey5Mu7gAOl3r0G8KTJQmGAQHE6ifj93BLhS7bnZuWLrvzY0eLxZh3WQ==
X-Received: by 2002:a05:6000:1aca:: with SMTP id
 i10mr12177365wry.453.1642252770283; 
 Sat, 15 Jan 2022 05:19:30 -0800 (PST)
Message-ID: <12baa6c4-ce6f-2904-0295-4fd4b946369c@gmail.com>
Date: Sat, 15 Jan 2022 14:19:29 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
 Thunderbird/91.5.0
Subject: Re: CMake support into libssh-0.8.7-1 is broken.
Content-Language: it
To: cygwin@cygwin.com
References: <CADt9577Ypepv3S25SnPTeGx+MeX2fn=72VY1ejqPx_ASqb99Hw@mail.gmail.com>
From: Marco Atzeri <marco.atzeri@gmail.com>
In-Reply-To: <CADt9577Ypepv3S25SnPTeGx+MeX2fn=72VY1ejqPx_ASqb99Hw@mail.gmail.com>
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 20FDNshG022038

On 14.01.2022 23:30, Carlo B. wrote:
> Hello,
> I discovered that CMake support into current libssh-0.8.7-1 is broken.
> After you installed the development package, you just need to add this
> line into a dummy CMakeLists.txt:
> 
> 
> find_package(libssh)
> 
> 
> and into the console you will read:
> 
> 
> CMake Error at /usr/lib/cmake/libssh/libssh-config.cmake:21 (message):
>    File or directory /usr/lib/cygssh.dll referenced by variable
>    LIBSSH_LIBRARIES does not exist !
> 
> 
> The error is correct because, if you open
> /usr/lib/cmake/libssh/libssh-config.cmake, you will see this code:
> 
> 
> if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/CMakeCache.txt")
>      # In tree build
>      set_and_check(LIBSSH_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/include")
>      set_and_check(LIBSSH_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/lib/cygssh.dll")
> else()
>      set_and_check(LIBSSH_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include")
>      set_and_check(LIBSSH_LIBRARIES "${PACKAGE_PREFIX_DIR}/lib/cygssh.dll")
> endif()
> 
> 
> which is wrong since the right value for LIBSSH_LIBRARIES should be
> "${PACKAGE_PREFIX_DIR}/bin/cygssh-4.dll" or
> "${CMAKE_CURRENT_LIST_DIR}/bin/cygssh-4.dll".
> After that, I downloaded the latest stable libssh-0.9.6, I tried to
> build it but it crashes with an internal GCC error at compile time:
> 
> 
> during RTL pass: final
> /home/Carlo/libssh-0.9.6/src/sftp.c: In function ‘sftp_packet_read’:
> /home/Carlo/libssh-0.9.6/src/sftp.c:549:1: internal compiler error: in
> i386_pe_seh_unwind_emit, at config/i386/winnt.c:1275
>    549 | }
>        | ^
> 
> 
> So, I downloaded the latest sources from the repository: GCC still
> emits an internal compiler error, but only when building the examples.
> So I configured with -DWITH_EXAMPLES=OFF and I got the base library
> compiled.
> Here, I verified that the macros for CMake are generated correctly
> with the right names and paths.
> 
> Is it possible to fix or update this package?
> Thank you very much for your time.
> 
> Sincerely.
> 

noted

Regards
Marco


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

