Groups | Search | Server Info | Login | Register


Groups > comp.os.os2.programmer.porting > #208

Re: ncurses 5.7 and terminal fun

Date 2012-06-28 08:08 -0700
From Dave Yeo <dave.r.yeo@gmail.com>
Newsgroups comp.os.os2.programmer.porting
Subject Re: ncurses 5.7 and terminal fun
References <jsgnpc$2006$1@adenine.netfront.net> <c8e9c947-dbbf-47cb-b62d-7fc071ce5a75@googlegroups.com> <jshija$6cc$1@adenine.netfront.net>
Message-ID <4fec7368$0$1554$c3e8da3$9f400e27@news.astraweb.com> (permalink)
Organization Unlimited download news at news.astraweb.com

Show all headers | View raw


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
Dave

Back to comp.os.os2.programmer.porting | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ncurses 5.7 and terminal fun Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2012-06-28 00:49 -0400
  Re: ncurses 5.7 and terminal fun dickey@his.com - 2012-06-28 02:33 -0700
    Re: ncurses 5.7 and terminal fun Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2012-06-28 08:27 -0400
      Re: ncurses 5.7 and terminal fun Dave Yeo <dave.r.yeo@gmail.com> - 2012-06-28 08:08 -0700
        Re: ncurses 5.7 and terminal fun Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2012-06-30 20:53 -0400
  Re: ncurses 5.7 and terminal fun "Trevor Hemsley" <Trevor.Hemsley@mytrousers.ntlworld.com> - 2012-06-28 11:53 -0500
    Re: ncurses 5.7 and terminal fun Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2012-06-30 20:59 -0400
      Re: ncurses 5.7 and terminal fun Dave Yeo <dave.r.yeo@gmail.com> - 2012-06-30 22:15 -0700

csiph-web