• Compiling GoldEd+ under FreeBSD

    From Sean Dennis@1:18/200 to All on Mon Jan 30 15:54:19 2023
    Hi everyone,

    I'm running FreeBSD 13.1 and am trying to compile the GoldEd+ code from the
    Git repo at https://github.com/golded-plus/golded-plus. Unfortunately, I'm
    not real experienced with using cmake and I am getting this error:

    ===
    In file included from /opt/mbse/golded-plus/golded3/../goldlib/gall/gdefs.h:93: /opt/mbse/golded-plus/golded3/../goldlib/gall/gcmpall.h:34:6: error:
    Goldware Library requires -funsigned-char to operate properly
    #error Goldware Library requires -funsigned-char to operate properly
    ===

    I can't figure out how to set that flag properly.

    I'm also getting several warnings but that's not an issue.

    GED+ compiled fine before this month's quarterly pkg update so I figured
    they upgraded something along the way.

    Using gcc:
    gcc version 12.2.0 (FreeBSD Ports Collection)

    Any help is appreciated.

    Thanks,
    Sean

    ... A feature is a bug with seniority.
    --- MMail/FreeBSD
    * Origin: Outpost BBS * Johnson City, TN (1:18/200)
  • From andrew clarke@3:633/267 to Sean Dennis on Sun Feb 5 14:42:22 2023
    On 2023-01-30 15:54:18, Sean Dennis (1:18/200) wrote to All:

    I'm running FreeBSD 13.1 and am trying to compile the GoldEd+ code from the Git repo at https://github.com/golded-plus/golded-plus.

    This is how I build GoldED+ with CMake on FreeBSD 13.1-RELEASE:

    git clone https://github.com/golded-plus/golded-plus
    cd golded-plus
    cp -p golded3/mygolded.__h golded3/mygolded.h
    cmake -B workdir --install-prefix=$HOME/opt/golded .
    cmake --build workdir --parallel
    cmake --install workdir

    Clang outputs several harmless warnings as the GoldED code isn't 100% clean, but it builds OK.

    Unfortunately, I'm not real experienced with using cmake and I am
    getting this error:

    ===
    In file included from /opt/mbse/golded-plus/golded3/../goldlib/gall/gdefs.h:93: /opt/mbse/golded-plus/golded3/../goldlib/gall/gcmpall.h:34:6: error:
    Goldware Library requires -funsigned-char to operate properly
    #error Goldware Library requires -funsigned-char to operate properly ===

    I can't figure out how to set that flag properly.

    I'm also getting several warnings but that's not an issue.

    GED+ compiled fine before this month's quarterly pkg update so I figured they upgraded something along the way.

    Presumably Ports GCC is now defaulting to -fsigned-char for some reason.
    I see you were able to resolve that in another message.

    Using gcc:
    gcc version 12.2.0 (FreeBSD Ports Collection)

    It's not necessary to build GoldED with GCC from Ports since it builds just fine with Clang 13.0 in FreeBSD base.

    --- GoldED+/BSD 1.1.5-b20220504
    * Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)
  • From Kai Richter@2:240/77 to andrew clarke on Sun May 7 19:54:36 2023
    Hello andrew!

    05 Feb 23, andrew clarke wrote to Sean Dennis:

    cmake -B workdir --install-prefix=$HOME/opt/golded .
    cmake --build workdir --parallel
    cmake --install workdir

    Thanks a lot! I failed to find a FreeBSD entry point in the documentation.

    but it builds OK.

    So does it with 13.2-RELEASE but running golded -H resulted into no output.

    I build as root with C.UTF-8:
    # golded -H
    #

    May i ask for your locale setup? Atm my plan is to set a user with latin-1.

    Regards

    Kai

    --- GoldED+/LNX 1.1.4.7
    * Origin: Monobox (2:240/77)
  • From Sean Dennis@1:18/200 to Kai Richter on Sun May 7 16:51:56 2023
    Hello Kai,

    07 May 23 19:54, you wrote to andrew clarke:

    May i ask for your locale setup? Atm my plan is to set a user with latin-1.

    I built GoldEd using the standard build instructions. I'm running it under 13.2-RELEASE without issue. I think my local is en_US and my codepage is UTF-8.

    -- Sean

    --- GoldED+/BSD 1.1.5-b20220504
    * Origin: Outpost BBS * Johnson City, TN (1:18/200)
  • From Kai Richter@2:240/77 to Sean Dennis on Tue May 9 00:12:02 2023
    Hello Sean!

    07 May 23, Sean Dennis wrote to Kai Richter:

    I built GoldEd using the standard build instructions. I'm running it under 13.2-RELEASE without issue. I think my local is en_US and my codepage is UTF-8.

    Thanks. I got my 8859-1 now. I adjusted putty to xterm.
    I started tmux and all settings are gone. :-(

    Regards

    Kai

    --- GoldED+/LNX 1.1.4.7
    * Origin: Monobox (2:240/77)
  • From Kai Richter@2:240/77 to All on Wed May 10 01:46:36 2023
    Hello!

    07 May 23, Kai Richter wrote to andrew clarke:

    but running golded -H resulted into no output.
    I build as root with C.UTF-8:
    # golded -H
    #

    This is so strange: When i do "clear;golded -H" as user in a maximized putty window i get:

    GoldED+/BSD 1.1.5-b20230304
    [help text until "Any non-...]
    Many empty lines until the golded version number is in the first upper line. The CLI prompt at the bottom line.

    When i spam the CLI with <enter> and i see the CLI prompt lines in all lines and start golded -H then the many empty lines do have the CLI prompt.

    Looks like the -H output is written from the top line of the screen but not after the CLI input position. I thought that could be the reason why i got a blank screen with golded -H before but i can't reproduce it.

    Regards

    Kai

    --- GoldED+/LNX 1.1.4.7
    * Origin: Monobox (2:240/77)