Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!204.52.135.9.MISMATCH!newsfeed.hal-mli.net!feeder1.hal-mli.net!202.81.252.1.MISMATCH!news.netfront.net!not-for-mail From: Lewis Rosenthal Newsgroups: comp.os.os2.programmer.porting Subject: Re: ncurses 5.7 and terminal fun Date: Sat, 30 Jun 2012 20:53:04 -0400 Organization: Netfront http://www.netfront.net/ Lines: 61 Message-ID: References: <4fec7368$0$1554$c3e8da3$9f400e27@news.astraweb.com> NNTP-Posting-Host: 173.71.201.239 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1341103986 37174 173.71.201.239 (1 Jul 2012 00:53:06 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Sun, 1 Jul 2012 00:53:06 +0000 (UTC) User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.5) Gecko/20120603 Firefox/10.0.5 SeaMonkey/2.7.2 In-Reply-To: <4fec7368$0$1554$c3e8da3$9f400e27@news.astraweb.com> Xref: csiph.com comp.os.os2.programmer.porting:210 On 06/28/12 11:08 am, Dave Yeo thus wrote : > Lewis Rosenthal wrote: >> On 06/28/12 05:33 am, dickey@his.com thus wrote : >>> On Thursday, June 28, 2012 12:49:46 AM UTC-4, Lewis Rosenthal wrote: >>>> 2. (Annoying) For some reason, likely related to my lack of experience >>>> building on anything besides Linux, where one gets spoiled by the >>>> config/make/install routine except for building very old or very new >>>> stuff on (conversely) very old or very new OSes or with very old or >>>> very >>>> new tools, I am have a real time of trying to *not* link tinfo5.dll >>>> dynamically. I really want to build less as a package usable with only >>>> libc065 (building with gcc 4.4.6) as a dependency. >>> >>> tinfo (tinfo5.dll) is an optional split-out of low-level stuff from >>> ncurses >>> (ncurses5.dll). portable applications should always check for both >>> cases. >>> >> Thanks for the follow-up. >> >> If I run the exe while booted from a partition which does not have >> tinfo5.dll in libpath, the app won't run, so it's definitely linked >> dynamically. >> >> PMDLL says that less.exe is looking for: >> >> libc065 >> tinfo5 >> gcc446 (which is rather odd) >> >> tinfo5.dll is looking for urpo.dll, which PMDLL says can't be loaded, >> though I'm not seeing a problem with this (or with gcc446, as the >> alternate install definitely does not have a full gcc install). >> >> So, what would I pass to the compiler to have the executable check for >> both cases? >> > > SET GCCOPT=-static-libgcc will remove the dependency on gcc446.dll. > For tinfo5.dll you'll have to check your ncurses install for a static > version of the lib and if one doesn't exist, rebuild ncurses with > configure --disable-shared --enable-static. > In theory -bstatic should link it statically, in practice the simplest > is to move the import lib out of the way which will force linking the > static version. > btw, sometimes set TERM=ansi seems to work better then TERM=os2 Thank you, thank you, thank you! :-) -- Lewis ------------------------------------------------------------- Lewis G Rosenthal, CNA, CLP, CLE, CWTS Rosenthal & Rosenthal, LLC www.2rosenthals.com Need a managed Wi-Fi hotspot? www.hautspot.com visit my IT blog www.2rosenthals.net/wordpress ------------------------------------------------------------- --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---