Received: from fx.arvanta.net (static-213-198-238-194.adsl.eunet.rs [213.198.238.194]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTP id 6C216781994 for <~alpine/devel@lists.alpinelinux.org>; Sat, 1 Aug 2020 09:28:25 +0000 (UTC) Received: from arya.arvanta.net (arya.arvanta.net [10.5.1.6]) by fx.arvanta.net (Postfix) with ESMTP id 6C24818C72; Sat, 1 Aug 2020 11:28:24 +0200 (CEST) Date: Sat, 1 Aug 2020 11:28:24 +0200 From: Milan =?utf-8?Q?P=2E_Stani=C4=87?= To: Hans Harder Cc: "~alpine/devel@lists.alpinelinux.org" <~alpine/devel@lists.alpinelinux.org> Subject: Re: compile problems with new ksh93u+m codebase Message-ID: <20200801092824.GA7357@arya.arvanta.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, 2020-07-29 at 17:35, Hans Harder wrote: > Since a few months a number of people have forked the last stable 93u+ > 2012-08-01 release from AT&T and are doing active bugfixing. > see: https://github.com/ksh93/ksh > > I tried to build the last version of the ksh93 version under alpine with > the musl library, but I got some compile errors. > I don't have enough knowledge to fix this and was hoping that someone here > can give me some hints on how to fix these compile errors. > > The details are in https://github.com/ksh93/ksh/issues/3 > > Basically I ran into > > In file included from /root/git_remote/ksh/src/lib/libast/include/ast.h:34, > from /root/git_remote/ksh/src/lib/libast/misc/state.c:26: > /root/git_remote/ksh/src/lib/libast/include/ast_std.h:300:16: error: > unknown type name 'off64_t'; did you mean 'off_t'? #define off_t off64_t > ^~~~~~~ > /usr/include/sys/mman.h:142:17: note: in expansion of macro 'off_t' > #define off64_t off_t > > Looks like a libc/musl incompatibility with off_t > Can anyone give me some hints how to resolve this ? Maybe you can add '-Doff64_t=off_t' to make command invocation (simple fix which works sometimes). Or patch source to change off64_t to off_t > thx > Hans