www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/12/17/17:41:07

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 277F0382D3D4
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1671316821;
bh=o4dSKyL0CpecHxIHQewYVdeVbCHsOjFJ4m8/M80VnSM=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=WqDppW4OufSwHhCGhGetbcVwxv+UMxSDlAs4t57vPtCrkTt9/cdQh914K28yyMIyd
z0ENVMv6E/JES11C11PUib3wJyBc0tTRpxDzm7CXTJYLzmlIN4yGZTQNS9p9Ngjj5/
w/RP/xBE9YFZtPFsdY5tLuTNzdQsneBXm0lTa+ko=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5FF7F382E80C
X-Authority-Analysis: v=2.4 cv=VbHkgXl9 c=1 sm=1 tr=0 ts=639e4542
a=oHm12aVswOWz6TMtn9zYKg==:117 a=oHm12aVswOWz6TMtn9zYKg==:17
a=IkcTkHD0fZMA:10 a=ualGi6thfPGcCwm6fb4A:9 a=QEXdDO2ut3YA:10
Message-ID: <a2c87661-41de-2221-9b6a-5f33cdbfbd59@Shaw.ca>
Date: Sat, 17 Dec 2022 15:40:02 -0700
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.0
Subject: Re: gcc v.11.3.0 failing - possible cause gcc or libreadline.a?
To: cygwin AT cygwin DOT com
References: <DB6P18901MB0055CB2FA11847A55C63B1B4A4E19 AT DB6P18901MB0055 DOT EURP189 DOT PROD DOT OUTLOOK DOT COM>
In-Reply-To: <DB6P18901MB0055CB2FA11847A55C63B1B4A4E19@DB6P18901MB0055.EURP189.PROD.OUTLOOK.COM>
Organization: Inglis
X-CMAE-Envelope: MS4xfD4UwCl+D6+4/z7Y4AtWaFBT7pPNRXO2j8+vAgAU754NSBsrQUDecqK+MpVEQyptMr1+1tvqt0oH5I4UaAATiTuDtq+O8BL/R5CUxH/Nos01Hb2PtWjt
kDIWPX8412Ylr8x80Y3zatQYv5iMYzFjgZXivbaqDbV0PnV0iZ8mQqV+y8W/X4N7VaUDolhP7NWwkA==
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, SPF_HELO_NONE,
SPF_PASS, TXREP 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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin 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 2BHMem9L004679

On Thu, 15 Dec 2022 08:06:01 +0000, Fergus Daly wrote:
>>> In a gcc build script terminating with the instruction
>>>     gcc -w -static -o myexe -O3 ./myarchive.a -lreadline -lncurses -lm
>>> I have suddenly started getting very many instances of both of
>>>     ld: /usr/src/debug/readline-8.2-2/terminal.c:nn various: undefined reference to `{various}'
>>>     ld: /usr/src/debug/readline-8.2-2/display.c:nn various: undefined reference to `{various}'
>>> and the build fails.

> The problem was with readline not gcc
> and I assume originates in myarchive.a and the required switch -lreadline in the gcc line
> rather than in readline: nevertheless I reverted both libreadline-devel and libreadline7
> from 8.2-2 to 7.03 and the problem went away.

Please provide a few examples which include the actual texts of "nn various" and 
`{various}' especially where any prefixes vary.

Did you also upgrade/downgrade libncurses-devel concurrent with 
libreadline-devel as they are dependent?

Why suppress all warnings -w from the ld (or any) phase of compilation?
Those warnings could tell you what causes an issue.

-- 
Take care. Thanks, Brian Inglis			Calgary, Alberta, Canada

La perfection est atteinte			Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter	not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer	but when there is no more to cut
			-- Antoine de Saint-Exupéry

-- 
Take care. Thanks, Brian Inglis			Calgary, Alberta, Canada

La perfection est atteinte			Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter	not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer	but when there is no more to cut
			-- Antoine de Saint-Exupéry

-- 
Take care. Thanks, Brian Inglis			Calgary, Alberta, Canada

La perfection est atteinte			Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter	not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer	but when there is no more to cut
			-- Antoine de Saint-Exupéry

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