delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/07/21/12:58:06

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE5463853D2E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1689958683;
bh=ZbSFLJxqXAd6SKOeq5lFvd9aNO2dFHuTrJW/XG12Le4=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=VsLtNapPLOF+SXLx5FIHswQaMDcPRvZ2e4Oq3/BN/pSd1jFze+l3vh5wmM/R6RMT2
PJnnUdwUR8VvhwbbsdR8Si7aaBvNMDWcdQAiOIpvz830T5sxDRzTJ1sIZ8jr5kq1/9
NO8cc3rJcEx3UbhxIA1CzfLxRzEmKgoNraMBBMKc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6D97F3858409
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1689958642; x=1690563442;
h=content-transfer-encoding:to:subject:message-id:date:from
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=kGnZW6B6F6rcwBEBoiRFZXx3q5xHeNurMG3YQGDDdlo=;
b=BbvGLCi6D+vVXJbrG54oRSIyZtDEM8bqJ5ejGRg8K48Zt3m/bjGEQl2n+mXYNzCjTs
sSdd0pYOnXwfdPeWe+lxeZiSnVlRy/joy0DEtFH4w1fFSrhXBeIkcnTi3eXU7R0NFFwB
XfgtbCTsNzwwoLrZBDPFatTGWIzs52WLJDlLPlzOyh3eDMkgmfUtkYWu40yuxdFv955Q
d1R4AnsIHsTXwAEcrYjVpAE+ndSkauNuc14E+qcNkzCyu3OJ/ASJoN5IGbdG/jSRFnJ3
SMfpdozrptnZPgC3FtgyKmLn28TqqhvNgLNew1x+Td7Kzd5Ey2X7wQcdfOoCAxZGkSxc
SGgg==
X-Gm-Message-State: ABy/qLaPEn6Toa4MqfqwlQz+7yRvVN6oExZmKC1pauYeXvLkVnGCytRU
OV/lA8A4t1ueYag/1wu3HiyR1HVsTf1ab0NaPac9yNb1Q1w=
X-Google-Smtp-Source: APBJJlE1In0/QmyQSzaYv6OMoc6LQcDQlt/3rVME7xRC/XNh9g0SDwxUIQK+ixJOBNQwNLXIZg6rFXiUEX21TVFIwKE=
X-Received: by 2002:a05:6e02:1d1d:b0:346:7502:aeaa with SMTP id
i29-20020a056e021d1d00b003467502aeaamr563606ila.18.1689958642251; Fri, 21 Jul
2023 09:57:22 -0700 (PDT)
MIME-Version: 1.0
Date: Fri, 21 Jul 2023 12:57:21 -0400
Message-ID: <CAD8GWssooJoXkS2eCjmukr6LH1t1LrBbqVvM9jG9g+RTFRMO9Q@mail.gmail.com>
Subject: OpenSSL: FATAL
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Lee via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Lee <ler762 AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 36LGw6uD031566

I've been getting random
  OpenSSL: FATAL
  OPENSSL_Uplink(008A7C34,08): no OPENSSL_Applink
crashes in an app built using
  ./configure  --host=i686-w64-mingw32

https://www.openssl.org/docs/faq.html
has this bit under
  I’ve compiled a program under Windows and it crashes: why?

  As per 0.9.8 the above limitation is eliminated for .DLLs. OpenSSL
.DLLs compiled with some specific run-time option [we insist on the
default /MD] can be deployed with application compiled with different
option or even different compiler. But there is a catch! Instead of
re-compiling OpenSSL toolkit, as you would have to with prior
versions, you have to compile small C snippet with compiler and/or
options of your choice. The snippet gets installed as
<install-root>/include/openssl/applink.c and should be either added to
your application project or simply #include-d in one [and only one] of
your application source files. Failure to link this shim module into
your application manifests itself as fatal “no OPENSSL_Applink”
run-time error.


I'm statically linking the app, so it isn't pulling in any mingw
openssl DLLs, but adding a
  #include <openssl/applink.c>
to one of the source files in the app does seem to fix the crashing.

So here's my questions:
1. Is including <openssl/applink.c> really the fix for the no
OPENSSL_Applink crashes or am I just (un?)lucky that the app hasn't
crashed again in my very limited testing?

2. I have mingw64-i686-openssl 3.0.9-0.1 installed.  Assuming I do
need the new include now, is this going to be a permanent requirement
or might a later mingw64-i686-openssl fix ??something?? and I won't
need that include?

TIA
Lee

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019