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: 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: Content-Language: en-CA In-Reply-To: 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit 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