From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48705 invoked by alias); 5 Dec 2018 16:42:24 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 48661 invoked by uid 89); 5 Dec 2018 16:42:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.9 required=5.0 tests=BAYES_00,BODY_8BITS,GARBLED_BODY,GIT_PATCH_0,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=Marchi, marchi X-HELO: mail.aegee.org Received: from mail.aegee.org (HELO mail.aegee.org) (144.76.142.78) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Dec 2018 16:42:12 +0000 Authentication-Results: mail.aegee.org/wB5Gg0j6028753; auth=pass (PLAIN) smtp.auth=didopalauzov DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aegee.org; s=k4096; t=1544028122; i=dkim+MSA-tls@aegee.org; r=y; bh=NQTYiR0q0pdSnRvhdjPHHiof1X9UgpEGpAyw3u7gEHQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=KB36p8bD/wGbhGLLZp2v6LnLFtOThCR7mQYxlJ2U8PxwV2h4JHUHISVLOfR4LZp7r O8WrBOR6V93Uf03MV43F186hhSpupUF7er08e27HLQ0m5tHTWTzM+h7bl9sIipDIPE x4a/8jcQCspmwhlLKro4pBgehjCMdA2gGlzLtHoW3qWLWZYo7ejCMgWkUMvhq7M1ws jxZtRy3uOH907s4NgMsZa5eumVpXR11M+8CzgErlvZiX/bKoRsGLD4U/jsHwSK1iKB X4NsadPTkIt7i8pUE5bGvtJjRY/1h0UIiLh/gUkXrCgS0VpmxBkf8b8j2liRTskgst 2QTaDpZ+XGCT3zSQ7ZtCMJewvtPOWkaoR6R9vwDw8cjEjE5N1uYcF1YOJnQRWOtp44 5cMBy5TWmR5WvhDcUa+IBIoVg+72+eNm+qZ2lUsn2ELD+yJ9aDWjHn7qCDcqFlxKsc yNy8i9Tgo6aqGTNAWA+Uff7HfxhazL53rP99zVPBftAn009QfttO307clOPaxiqMap GKxADWn0gXpmHUz9grocjyaUiCSZGxhn68nS3hNzpT31IPsSdmNboB36BrQRfuGOV6 344xbV3sspCoue6wUB9d5clQRtaKvhkmS8/IF3hRfp0ZE8j5IFL+KhRjQK4Ej/Jqtg Wk0iroUdVFGCDzLZ+dz3emVo= Authentication-Results: mail.aegee.org/wB5Gg0j6028753; dkim=none Received: from Tylan (37-219-194-104.nat.bb.dnainternet.fi [37.219.194.104]) (authenticated bits=0) by mail.aegee.org (8.15.2/8.15.2) with ESMTPSA id wB5Gg0j6028753 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 5 Dec 2018 16:42:01 GMT Message-ID: Subject: Re: Linking gdb with -ltinfow, if libtinfo is not available From: =?UTF-8?Q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD_?= =?UTF-8?Q?=D0=9F=D0=B0=D0=BB=D0=B0=D1=83=D0=B7=D0=BE=D0=B2?= To: Simon Marchi Cc: gdb-patches@sourceware.org Date: Wed, 05 Dec 2018 16:42:00 -0000 In-Reply-To: References: <30919bd86dea123f624ccd1f069aff432622fb6e.camel@aegee.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.31.3 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00054.txt.bz2 Hello, you should be able to test this by having libtinfo.so in a directory, that is not introduced to the linker by -L and is not default for the compiller or linker and have libtinfow.so in а path passed by -L; possibly moving libtinfo.so to a location that is still considered by ldconfig. Regards Дилян On Wed, 2018-12-05 at 09:49 -0500, Simon Marchi wrote: > On 2018-12-05 02:22, Дилян Палаузов wrote: > > See https://sourceware.org/bugzilla/show_bug.cgi?id=23950 for details. > > > > diff --git a/gdb/configure.ac b/gdb/configure.ac > > --- a/gdb/configure.ac > > +++ b/gdb/configure.ac > > @@ -592,7 +592,7 @@ case $host_os in > > esac > > > > # These are the libraries checked by Readline. > > -AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses]) > > +AC_SEARCH_LIBS(tgetent, [termcap tinfo tinfow curses ncursesw > > ncurses]) > > > > if test "$ac_cv_search_tgetent" = no; then > > CONFIG_OBS="$CONFIG_OBS stub-termcap.o" > > I am not able to test this (since all my systems have a libtinfo.so, > which gets picked up), but I think it makes sense. If you have a system > where the only ncurses available is configured with: > > --with-termlib --with-shared --enable-widec > > you end up with libtinfow.so and no libtinfo.so. Any objections? I can > take care of ChangeLog and commit message since it is a very small > change, but next time please make sure to follow the checklist [1]. > > Thanks, > > Simon > > [1] https://sourceware.org/gdb/wiki/ContributionChecklist