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
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:
Thanks, that looks like the fix. Looks like both lines are needed.
Last edit: Roger Brown 2022-08-11
I don't think the proposed patch is required anymore. I have not run into this same issue with upstream git (2.5.0a)
I'm going to close it. git master is now running ksh93 1.0.3, which fixed this and several other issues.
I'm going to close it. git master is now running ksh93 1.0.3, which fixed this and several other issues.