Package Details: heirloom-sh 050706-4

Git Clone URL: https://aur.archlinux.org/heirloom-sh.git (read-only, click to copy)
Package Base: heirloom-sh
Description: A portable variant of the traditional Unix shell, derived from OpenSolaris code.
Upstream URL: http://heirloom.sourceforge.net/sh.html
Licenses: BSD, CDDL
Conflicts: heirloom-sh-cvs
Submitter: grawity
Maintainer: aksr
Last Packager: aksr
Votes: 2
Popularity: 0.000000
First Submitted: 2015-08-29 20:13 (UTC)
Last Updated: 2016-12-29 05:10 (UTC)

Latest Comments

grawity commented on 2026-03-05 13:57 (UTC) (edited on 2026-03-05 13:58 (UTC) by grawity)

Most can be dealt with using make CFLAGS="-D_GNU_SOURCE -std=gnu99" as the default is no longer c99/gnu99 in modern GCC.

The last one is https://sourceware.org/pipermail/libc-alpha/2021-March/123553.html and probably needs a patch (see Fira's comment).

simona commented on 2026-03-05 12:16 (UTC)

cc -c -D_GNU_SOURCE  -D_FILE_OFFSET_BITS=64L   fault.c
fault.c:46:32: error: initialization of ‘void ()(void)’ from incompatible pointer type ‘void ()(int)’ [-Wincompatible-pointer-types]
46 | static  void (psig0_func)() = SIG_ERR; / previous signal handler for signal 0 /
|                                ^
fault.c:47:14: error: variably modified ‘sigsegv_stack’ at file scope
47 | static  char sigsegv_stack[SIGSTKSZ];
|              ^
fault.c: In function ‘clrsig’:
fault.c:167:33: error: passing argument 2 of ‘handle’ from incompatible pointer type [-Wincompatible-pointer-types]
167 |                 handle(i, sigval[i]);
|                           ^~~
|                                 |
|                                 void ()(void)

Fira commented on 2023-05-17 16:36 (UTC) (edited on 2023-05-17 16:36 (UTC) by Fira)

For those who also meet the error "error: variably modified", just open the fault.c and replace "SIGSTKSZ" on line 47 to "16384". (Not including the quotes.)

This is due to the change in glibc2.34 where "SIGSTKSZ" is no longer the constant.

Reference: https://public-inbox.org/bug-gnulib/2419986.QI3XWb3JqY@omega/T/

micwoj92 commented on 2022-08-08 02:15 (UTC) (edited on 2022-08-08 02:15 (UTC) by micwoj92)

Build fails

fault.c:47:14: error: variably modified ‘sigsegv_stack’ at file scope
   47 | static  char sigsegv_stack[SIGSTKSZ];
      |              ^~~~~~~~~~~~~
make: *** [makefile:81: fault.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
    Aborting...

Rufflewind commented on 2016-12-23 00:41 (UTC)

Conflicts with heirloom-sh-cvs.