• fmail on gentoo fails with ncurses 6.4 but works slackware ncurses 6.3

    From Benny Pedersen@2:230/0 to All on Tue Jul 23 22:56:06 2024
    Hello All!


    git clone git://git.code.sf.net/p/fmail/code FMail
    cd FMail
    mkdir cmake-build
    cd cmake-build
    cmake ..
    make

    (Provided you have the needed tools and libraries installed)


    anyone have a patch or sulution to it ?


    Regards Benny

    ... too late to die young :)

    --- Msged/LNX 6.1.2 (Linux/6.9.10-gentoo-dist (x86_64))
    * Origin: gopher://fido.junc.eu/ (2:230/0)
  • From Maurice Kinal@1:153/7001 to Benny Pedersen on Tue Jul 23 23:26:26 2024
    Hey Benny!

    anyone have a patch or sulution to it ?

    Upgrade to ncurses-6.5. I just tried it and it yeilds;

    :read ldd fconfig
    linux-vdso.so.1 (0x00007f41eb1c4000)
    libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007f41eb074000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007f41eae92000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f41eb1c6000)
    :read ldd fmail
    linux-vdso.so.1 (0x00007fae7bc5b000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007fae7b9f0000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fae7bc5d000)
    :read ldd ftools
    linux-vdso.so.1 (0x00007fcc3e0d2000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007fcc3de99000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fcc3e0d4000)

    From this angle it looks like only fconfig requires ncurses and in this nech of the woods that means ncurses-6.5.

    Life is good,
    Maurice

    o- o- -o o- o- o- o- o- -o -o -o -o o- o- o- -o /) /) (\ /) /) /) /) /) (\ (\ (\ (\ /) /) /) (\ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... Yrre ne læt þe æfre gewealdan.
    Never let anger have mastery over you.
    --- GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's Brain - Ladysmith BC, Canada (1:153/7001)
  • From Benny Pedersen@2:230/0 to Maurice Kinal on Wed Jul 24 00:07:08 2024
    Hello Maurice!

    23 Jul 2024 23:26, Maurice Kinal wrote to Benny Pedersen:

    Hey Benny!

    anyone have a patch or sulution to it ?

    Upgrade to ncurses-6.5. I just tried it and it yeilds;

    :read ldd fconfig
    linux-vdso.so.1 (0x00007f41eb1c4000)
    libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007f41eb074000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007f41eae92000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f41eb1c6000)
    :read ldd fmail
    linux-vdso.so.1 (0x00007fae7bc5b000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007fae7b9f0000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fae7bc5d000)
    :read ldd ftools
    linux-vdso.so.1 (0x00007fcc3e0d2000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007fcc3de99000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fcc3e0d4000)

    From this angle it looks like only fconfig requires ncurses and in
    this nech of the woods that means ncurses-6.5.

    # locate ncurses

    /lib64/libncurses.so.6
    /lib64/libncurses.so.6.4
    /lib64/libncursest.so.6
    /lib64/libncursest.so.6.4
    /lib64/libncursestw.so.6
    /lib64/libncursestw.so.6.4
    /lib64/libncursesw.so.6
    /lib64/libncursesw.so.6.4
    /usr/lib64/libncurses++.so
    /usr/lib64/libncurses++.so.6
    /usr/lib64/libncurses++.so.6.4
    /usr/lib64/libncurses++t.so
    /usr/lib64/libncurses++t.so.6
    /usr/lib64/libncurses++t.so.6.4
    /usr/lib64/libncurses++tw.so
    /usr/lib64/libncurses++tw.so.6
    /usr/lib64/libncurses++tw.so.6.4
    /usr/lib64/libncurses++w.so
    /usr/lib64/libncurses++w.so.6
    /usr/lib64/libncurses++w.so.6.4
    /usr/lib64/libncurses.so
    /usr/lib64/libncursest.so
    /usr/lib64/libncursestw.so
    /usr/lib64/libncursesw.so


    so CMakefiles.txt does not use /usr/lib64 but only /usr/lib ?

    anyone know how to solve this ?

    make symlink from /lib64 to /lib ?


    Regards Benny

    ... too late to die young :)

    --- Msged/LNX 6.1.2 (Linux/6.9.10-gentoo-dist (x86_64))
    * Origin: gopher://fido.junc.eu/ (2:230/0)
  • From Maurice Kinal@1:153/7001 to Benny Pedersen on Wed Jul 24 01:45:35 2024
    Hey Benny!

    make symlink from /lib64 to /lib ?

    In your case also make symlink from /usr/lib64 to /usr/lib.

    When you build glibc there is a configure parameter 'libc_cv_slibdir=/usr/lib' which if deployed will not require the symlink /usr/lib but will still require the /lib64 to /lib symlink. However since you are using gentoo's configuration you'll probably want to stick with their configurations and the two symlinks will take care of sources that look to /lib and /usr/lib.

    Life is good,
    Maurice

    -o -o -o o- o- o- o- o- -o o- -o o- -o o- -o -o
    (\ (\ (\ /) /) /) /) /) (\ /) (\ /) (\ /) (\ (\
    ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... WARNING! Warp core breach in 45 seconds.
    --- GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's Brain - Ladysmith BC, Canada (1:153/7001)
  • From Benny Pedersen@2:230/0 to Maurice Kinal on Wed Jul 24 03:01:34 2024
    Hello Maurice!

    24 Jul 2024 01:45, Maurice Kinal wrote to Benny Pedersen:

    make symlink from /lib64 to /lib ?

    In your case also make symlink from /usr/lib64 to /usr/lib.

    will try

    When you build glibc there is a configure parameter 'libc_cv_slibdir=/usr/lib' which if deployed will not require the
    symlink /usr/lib but will still require the /lib64 to /lib symlink. However since you are using gentoo's configuration you'll probably
    want to stick with their configurations and the two symlinks will take care of sources that look to /lib and /usr/lib.

    https://bugs.gentoo.org/4411

    dont know if it solved yet :/

    ncurses 6.5 is hardmasked in gentoo currently

    so lets solve fmail without break gentoo :)


    Regards Benny

    ... too late to die young :)

    --- Msged/LNX 6.1.2 (Linux/6.9.10-gentoo-dist (x86_64))
    * Origin: gopher://fido.junc.eu/ (2:230/0)
  • From Maurice Kinal@1:153/7001 to Benny Pedersen on Wed Jul 24 03:31:15 2024
    Hey Benny!

    ncurses 6.5 is hardmasked in gentoo currently

    Probably won't matter much now that you've traced it. Having said that, I prefer to stay current as possible.

    so lets solve fmail without break gentoo :)

    It compiles fine here without any jiggery-pokery so it is in your capable hands now that you know the real issue. And yes I used the latest setup here with gcc-4.1.0/glibc-2.40 to test the compile.

    Life is good,
    Maurice

    o- o- -o -o -o -o -o -o o- o- o- -o o- -o o- o- /) /) (\ (\ (\ (\ (\ (\ /) /) /) (\ /) (\ /) /) ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... Hwær cwom mearg? Hwær cwom mago? Hwær cwom maþþumgyfa?
    Where is now the horse? Where the young prince? Where the treasure-giver? --- GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's Brain - Ladysmith BC, Canada (1:153/7001)
  • From Benny Pedersen@2:230/0 to Maurice Kinal on Wed Jul 24 03:46:32 2024
    Hello Maurice!

    24 Jul 2024 01:45, Maurice Kinal wrote to Benny Pedersen:

    In your case also make symlink from /usr/lib64 to /usr/lib.

    /usr/lib64/libncursesw.so is just an ascii file :)

    /* GNU ld script
    Since Gentoo has critical dynamic libraries in /lib, and the static versions
    in /usr/lib, we need to have a "fake" dynamic lib in /usr/lib, otherwise we
    run into linking problems. This "fake" dynamic lib is a linker script that
    redirects the linker to the real lib. And yes, this works in the cross-
    compiling scenario as the sysroot-ed linker will prepend the real path.

    See bug https://bugs.gentoo.org/4411 for more info.
    */
    OUTPUT_FORMAT ( elf64-x86-64 )
    GROUP ( /lib64/libncursesw.so.6 )

    hmm


    Regards Benny

    ... too late to die young :)

    --- Msged/LNX 6.1.2 (Linux/6.9.10-gentoo-dist (x86_64))
    * Origin: gopher://fido.junc.eu/ (2:230/0)
  • From Benny Pedersen@2:230/0 to Maurice Kinal on Wed Jul 24 05:15:04 2024
    Hello Maurice!

    24 Jul 2024 03:31, Maurice Kinal wrote to Benny Pedersen:

    ncurses 6.5 is hardmasked in gentoo currently
    Probably won't matter much now that you've traced it. Having said
    that, I prefer to stay current as possible.

    +1

    so lets solve fmail without break gentoo :)
    It compiles fine here without any jiggery-pokery so it is in your
    capable hands now that you know the real issue. And yes I used the latest setup here with gcc-4.1.0/glibc-2.40 to test the compile.

    https://paste.xinu.at/6u4lw/

    solved in gentoo with this patch


    Regards Benny

    ... too late to die young :)

    --- Msged/LNX 6.1.2 (Linux/6.9.10-gentoo-dist (x86_64))
    * Origin: gopher://fido.junc.eu/ (2:230/0)
  • From Maurice Kinal@1:153/7001 to Benny Pedersen on Wed Jul 24 09:14:03 2024
    Hey Benny!

    /usr/lib64/libncursesw.so is just an ascii file :)

    Not here. It is a symlink to /usr/lib/libncursesw.so.6 which is a symlink to /usr/lib/libncursesw.so.6.5 on my new system and /usr/lib/libncursesw.so.6.4 on the systems I have yet to upgrade. I don't have a /usr/lib64 directory as everything is 64 bit. On the fidonet node this is what file has to say about it;

    :read !file /usr/lib/libncursesw.so.6.4
    /usr/lib/libncursesw.so.6.4: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped

    I only tried compiling fmail on the newest glibc-2.40 based system but if this continues to be an issue I will try the same on a yet to be upgraded ncurse-6.4/glibc-2.39 box which there are currently 3 of here. They are all x86_64.

    Life is good,
    Maurice

    -o o- -o o- -o -o o- o- -o o- -o o- o- o- o- o-
    (\ /) (\ /) (\ (\ /) /) (\ /) (\ /) /) /) /) /)
    ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... A mæg God wyrcan wunder æfter wundre, wuldres hyrde.
    God may ever work wonder after wonder, the Guardian of glory.
    --- GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's Brain - Ladysmith BC, Canada (1:153/7001)
  • From Maurice Kinal@1:153/7001 to Benny Pedersen on Wed Jul 24 09:27:10 2024
    Hey Benny!

    https://paste.xinu.at/6u4lw/

    solved in gentoo with this patch

    Excellent. So far no patch needed here on old or new. I like when that happens.

    Life is good,
    Maurice

    o- o- -o o- -o -o -o -o o- o- -o o- o- -o -o -o /) /) (\ /) (\ (\ (\ (\ /) /) (\ /) /) (\ (\ (\ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... Is seo forðgesceaft digol and dyrne; drihten ana wat.
    The course of the future is hidden and secret; God alone knows.
    --- GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's Brain - Ladysmith BC, Canada (1:153/7001)
  • From Nicholas Boel@1:154/10 to Benny Pedersen on Wed Jul 24 17:55:30 2024
    On Wed, 24 Jul 2024 08:01:34 +0000, Benny Pedersen -> Maurice Kinal wrote:

    ncurses 6.5 is hardmasked in gentoo currently

    Are you using Gentoo stable? There is no reason for ncurses to be hardmasked at this point. Looks like Archlinux is already on the 3rd iteration of ncurses 6.5:

    Packages (1) ncurses-6.5-3

    so lets solve fmail without break gentoo :)

    It's hard to believe FMail (FConfig, specifically) needs ncurses 6.5, since Wilfred was compiling it long before that was out.

    You could always just unmask ncurses 6.5. :)

    Regards,
    Nick

    ... Take my advice, I don't use it anyway.
    --- Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:115.0) Gecko/20100101 Thunderb
    * Origin: _thePharcyde distribution system (Wisconsin) (1:154/10)
  • From Maurice Kinal@1:153/7001 to Nicholas Boel on Wed Jul 24 23:35:18 2024
    Hey Nicholas!

    It's hard to believe FMail (FConfig, specifically) needs ncurses
    6.5

    It doesn't. It is a path issue on Benny's system as fmail is looking to lib instead of lib64. I tested the git source on a gcc-13.2.0/glibc-2.39 system (pure 64 bit) and it has no issue with ncurses-6.4. I don't have a lib64 since everthing is 64 bit installed to lib. No 32 bit systems to bother with a multilib installation which simplifies everything worthwhile.

    Life is good,
    Maurice

    -o -o -o -o o- -o o- o- o- -o o- -o o- -o -o o-
    (\ (\ (\ (\ /) (\ /) /) /) (\ /) (\ /) (\ (\ /)
    ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... Cyning sceal rice healdan.
    A king should guard a kingdom.
    --- GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
    * Origin: Little Mikey's Brain - Ladysmith BC, Canada (1:153/7001)
  • From Nicholas Boel@1:154/10 to Maurice Kinal on Thu Jul 25 19:02:26 2024
    On Wed, 24 Jul 2024 23:35:18 GMT, Maurice Kinal -> Nicholas Boel wrote:

    No 32 bit systems to bother with a multilib installation which
    simplifies everything worthwhile.

    I see. So it seems to be Gentoo specific, then. I run multilib here also, and here are the contents of my root directory in regards to /lib:

    lib -> usr/lib
    lib64 -> usr/lib

    So yes, making symlinks was a great suggestion, since other distributions already seem to be doing that. :)

    Regards,
    Nick

    ... Take my advice, I don't use it anyway.
    --- Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:115.0) Gecko/20100101 Thunderb
    * Origin: _thePharcyde distribution system (Wisconsin) (1:154/10)
  • From Maurice Kinal@1:153/7001.2989 to Nicholas Boel on Fri Jul 26 02:08:00 2024
    Hey Nicholas!

    So it seems to be Gentoo specific, then.

    Could be. From what I read it sounds like Gentoo made it more complicated than it needed to be.

    making symlinks was a great suggestion, since other distributions
    already seem to be doing that.

    I wouldn;t bet the farm on it. I am hesitant to guess how critical this is to someone's python based package manager. :::shudder::: As Yosimite Sam says, "I hates pythons." :-)

    Life is good,
    Maurice

    o- -o -o -o -o o- o- -o -o -o o- -o o- o- -o -o /) (\ (\ (\ (\ /) /) (\ (\ (\ /) (\ /) /) (\ (\ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... Fidonet 4K - Sweet Sixteen Penguins of the Apocalypse.
    --- GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
    * Origin: One of us @ (1:153/7001.2989)
  • From Benny Pedersen@2:230/0 to Nicholas Boel on Sun Aug 4 03:43:42 2024
    Hello Nicholas!

    24 Jul 2024 17:55, Nicholas Boel wrote to Benny Pedersen:

    ncurses 6.5 is hardmasked in gentoo currently
    Are you using Gentoo stable?

    moving targets are not stable :=)

    There is no reason for ncurses to be
    hardmasked at this point.

    it still is on gentoo

    Looks like Archlinux is already on the 3rd
    iteration of ncurses 6.5:

    +1

    Packages (1) ncurses-6.5-3
    so lets solve fmail without break gentoo :)
    It's hard to believe FMail (FConfig, specifically) needs ncurses 6.5, since Wilfred was compiling it long before that was out.

    i belive this, Wilfred did not even need pkg-config :)

    You could always just unmask ncurses 6.5. :)

    yes will do when i can


    Regards Benny

    ... too late to die young :)

    --- Msged/LNX 6.1.2 (Linux/6.9.10-gentoo-dist (x86_64))
    * Origin: gopher://fido.junc.eu/ (2:230/0)