ksh93 / ksh93-history

Archive of old ksh93 versions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`bin/package make` fails

alganet opened this issue · comments

Hello!

I'm trying to build the master branch on Alpine Linux and I'm stuck on this error:

+ iffe -v -X ast -X std -c 'cc -D_BLD_DLL -fPIC -D_BLD_ast -O -I. -I/usr/src/ksh/src/lib/libast -Icomp -I/usr/src/ksh/src/lib/libast/comp -Iinclude -I/usr/src/ksh/src/lib/libast/include -Istd -I/usr/src/ksh/src/lib/libast/std   ' run /usr/src/ksh/src/lib/libast/features/botch.c
iffe: test: is sys/types.h a header ... yes
iffe: test: capture output of /usr/src/ksh/src/lib/libast/features/botch.c ...
In file included from ./F89209840.c:56:
./FEATURE/sys:111:45: error: unknown type name 'uintmax_t'; did you mean 'uint64_t'?
  111 | typedef int (*Spawnvex_f) __PROTO__((__V_*, uintmax_t, uintmax_t));
      |                                             ^~~~~~~~~
./FEATURE/sys:14:33: note: in definition of macro '__PROTO__'
   14 | #    define __PROTO__(x)        x
      |                                 ^
./FEATURE/sys:111:56: error: unknown type name 'uintmax_t'; did you mean 'uint64_t'?
  111 | typedef int (*Spawnvex_f) __PROTO__((__V_*, uintmax_t, uintmax_t));
      |                                                        ^~~~~~~~~
./FEATURE/sys:14:33: note: in definition of macro '__PROTO__'
   14 | #    define __PROTO__(x)        x
      |                                 ^
iffe: test: capture output of /usr/src/ksh/src/lib/libast/features/botch.c ... cannot run
mamake [lib/libast]: *** exit code 1 making FEATURE/botch
mamake: *** exit code 1 making lib/libast
mamake: *** exit code 1 making all
package: make done  at Mon Jan  2 04:47:16 UTC 2023 in /usr/src/ksh/arch/linux.i386-64

There is a full log here: https://pastebin.com/RQptGkLk

The ksh93/ksh repo builds successfully in the same environment. I have no experience with C to understand what the error means, I tried to search for it but couldn't find anything helpful.

Am I missing something?

Thank you!

I tried again with a glibc distro, and it worked like a charm. It must be something with musl. That works for my case, sorry for the false alarm! I'm closing this