Menu

#143 Release 2.5.0 failed on fedora 36 in ksh build

fixed
nobody
None
2022-08-29
2022-07-28
Roger Brown
No

Hi,

Build of release 2.5.0 on fedora 36. Looks like "-lm" is required to build ksh

/usr/bin/ld: libshell.a(init.o): in function `sh_reseed_rand':
init.c:(.text+0x11e2): undefined reference to `remainder'
/usr/bin/ld: libshell.a(streval.o): in function `arith_exec':
streval.c:(.text+0xa51): undefined reference to `pow'
/usr/bin/ld: libshell.a(strdata.o): in function `local_fpclassify':
strdata.c:(.text+0x14): undefined reference to `__fpclassifyl'
/usr/bin/ld: libshell.a(strdata.o): in function `local_issubnormal':
strdata.c:(.text+0x1e9): undefined reference to `__fpclassifyl'
/usr/bin/ld: libshell.a(strdata.o):(.rodata+0x2d0): undefined reference to `acosl'
/usr/bin/ld: libshell.a(strdata.o):(.rodata+0x2e8): undefined reference to `acoshl'
/usr/bin/ld: libshell.a(strdata.o):(.rodata+0x300): undefined reference to `asinl'
/usr/bin/ld: libshell.a(strdata.o):(.rodata+0x318): undefined reference to `asinhl'
/usr/bin/ld: libshell.a(strdata.o):(.rodata+0x330): undefined reference to `atanl'
/usr/bin/ld: libshell.a(strdata.o):(.rodata+0x348): undefined reference to `atan2l'
...

Regards,

Roger

Discussion

  • Rupert Pupkin

    Rupert Pupkin - 2022-08-10

    Compiling in Fedora 36 worked for me by adding these two lines in the file cde-2.5.0/programs/dtksh/ksh93/src/cmd/ksh93/Mamfile right after line 15:

    setv mam_cc_FLAGS -lm
    setv mam_libm -lm
    
     
  • Roger Brown

    Roger Brown - 2022-08-11

    Thanks, that looks like the fix. Looks like both lines are needed.

     

    Last edit: Roger Brown 2022-08-11
  • Trung Le

    Trung Le - 2022-08-29

    I don't think the proposed patch is required anymore. I have not run into this same issue with upstream git (2.5.0a)

     
  • Jon Trulson

    Jon Trulson - 2022-08-29

    I'm going to close it. git master is now running ksh93 1.0.3, which fixed this and several other issues.

     
  • Jon Trulson

    Jon Trulson - 2022-08-29
    • status: open --> fixed
     
  • Jon Trulson

    Jon Trulson - 2022-08-29

    I'm going to close it. git master is now running ksh93 1.0.3, which fixed this and several other issues.

     

Log in to post a comment.