[Ohrrpgce] relump and unlump fail to build with portable=1

Ralph Versteegen teeemcee at gmail.com
Wed Aug 30 01:17:27 PDT 2017


Checking on my ubuntu netbook, I see that core libraries are actually
stored in /lib/i386-linux-gnu/. Also, it's linked against libncursesw.so
instead of libncurses.so. (The w denotes that it's been compiled with
widechar support. IIRC it's also necessary to support more than 256
colours). So maybe we should be linking to libncursesw.so.5 instead?

On 30 August 2017 at 05:47, James Paige <Bob at hamsterrepublic.com> wrote:

> james at ghostorchid:~/src/ohr/wip$ ls -l /lib/libncurses.so*
> ls: cannot access /lib/libncurses.so*: No such file or directory
>
> However, I do have both the libncurses5 and libncurses5-dev packages
> installed.
>
> On Tue, Aug 29, 2017 at 8:40 AM, Ralph Versteegen <teeemcee at gmail.com>
> wrote:
>
>> I guess that this error means that you don't have a libncurses.so.5 on
>> that machine (usually in /lib/), and something else, like libfbgfx.so, is
>> drawing in (unversioned) libncurses.so when you compile game/custom, hiding
>> this problem. Still, I would have expected the linker to print an error.
>> What does "ls -l /lib/libncurses.so*" print?
>>
>> On 30 August 2017 at 02:51, James Paige <Bob at hamsterrepublic.com> wrote:
>>
>>> As far as I can tell, this is only a problem on Ubuntu 14.04 which has
>>> g++ 4.8.4
>>> I don't have any problems when I compile relump and unlump on my Debian
>>> Jessie vm, which has g++ 4.9.2
>>>
>>> On Tue, Aug 22, 2017 at 12:05 PM, James Paige <Bob at hamsterrepublic.com>
>>> wrote:
>>>
>>>> I noticed todat while testing the distrib.sh script, that relump and
>>>> unlump both fail to build when portable=1 is specified on the scons command
>>>> line:
>>>>
>>>> james at ghostorchid:~/src/ohrrpgce$ scons debug=0 gengcc=1 portable=1
>>>> relump
>>>> scons: Reading SConscript files ...
>>>> Using target: linux  arch: x86  gcc: gcc  cc: gcc  gcctarget:
>>>> x86_64-linux-gnu  fbcversion: 1050
>>>> scons: done reading SConscript files.
>>>> scons: Building targets ...
>>>> g++ -O3 -DFBCVERSION=1050 -m32 -mpreferred-stack-boundary=2 -mno-sse
>>>> --std=c++0x -g -Wall -Wno-non-virtual-dtor -D_GLIBCXX_USE_CXX11_ABI=0 -o
>>>> relump build/relump.o build/lumpfile.o build/os_unix.o build/os_unix2.o
>>>> build/lib/stdc++compat.o build/util.o build/blit.o build/base64.o
>>>> build/unicode.o build/array.o build/miscc.o build/filelayer.o
>>>> build/vector.o build/common_base.o "-Wl,-(" -Wl,--add-needed
>>>> -Wl,-L/usr/local/bin/../lib/freebasic/linux-x86
>>>> /usr/local/bin/../lib/freebasic/linux-x86/fbrt0.o -lfbmt -Wl,-S
>>>> linux/fb_icon.c -lpthread -l:libncurses.so.5 "-Wl,-)"
>>>> /usr/local/bin/../lib/freebasic/linux-x86/libfbmt.a(hinit.o): In
>>>> function `fb_hTermOut':
>>>> hinit.c:(.text+0x275): undefined reference to `tgoto'
>>>> hinit.c:(.text+0x291): undefined reference to `tputs'
>>>> /usr/local/bin/../lib/freebasic/linux-x86/libfbmt.a(hinit.o): In
>>>> function `hInit':
>>>> hinit.c:(.text+0xa70): undefined reference to `tgetent'
>>>> hinit.c:(.text+0xa89): undefined reference to `UP'
>>>> hinit.c:(.text+0xa93): undefined reference to `BC'
>>>> hinit.c:(.text+0xa9c): undefined reference to `tgetstr'
>>>> hinit.c:(.text+0xabb): undefined reference to `PC'
>>>> hinit.c:(.text+0xae8): undefined reference to `ospeed'
>>>> hinit.c:(.text+0xaed): undefined reference to `tgetflag'
>>>> hinit.c:(.text+0xb0b): undefined reference to `tgetstr'
>>>> /usr/local/bin/../lib/freebasic/linux-x86/libfbmt.a(io_inkey.o): In
>>>> function `fb_hGetCh':
>>>> io_inkey.c:(.text+0x20c): undefined reference to `tgetstr'
>>>> collect2: error: ld returned 1 exit status
>>>> scons: *** [relump] Error 1
>>>> scons: building terminated because of errors.
>>>>
>>>> I don't know if there is any reason they need to be build with
>>>> portable=1, only that distrib.sh is currently trying to build them that way
>>>>
>>>
>>>
>>> _______________________________________________
>>> Ohrrpgce mailing list
>>> ohrrpgce at lists.motherhamster.org
>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>
>>>
>>
>> _______________________________________________
>> Ohrrpgce mailing list
>> ohrrpgce at lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
>>
>
> _______________________________________________
> Ohrrpgce mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20170830/2917fc90/attachment-0001.html>


More information about the Ohrrpgce mailing list