Subject: pkg/32833: ast-ksh (prequired for pksrc scripts such as pkg_chk) fails to build on IRIX: files missing
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <stuart@zeus.com>
List: pkgsrc-bugs
Date: 02/14/2006 12:30:01
>Number:         32833
>Category:       pkg
>Synopsis:       ast-ksh (prequired for pksrc scripts such as pkg_chk) fails to build on IRIX: files missing
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 14 12:30:01 +0000 2006
>Originator:     Stuart Shelton
>Release:        n/a
>Organization:
>Environment:
IRIX64 octane 6.5 07010238 IP30
>Description:

ast-ksh fails with:

mamake: *** exit code 1 making cmd/ksh93
package: make: errors making /usr/bsd/var/tmp/shells/ast-ksh/work/arch/sgi.mips3/bin/ksh
package: make done  at Tue Feb 14 12:17:34 GMT 2006 in /usr/bsd/var/tmp/shells/ast-ksh/work/arch/sgi.mips3
*** Error code 1

Looking back through the build output, the error is:

+ cc -D_PIC_ -O -I. -I/usr/bsd/var/tmp/shells/ast-ksh/work/src/lib/libdll -I/u
sr/bsd/var/tmp/shells/ast-ksh/work/arch/sgi.mips3/include/ast -D_BLD_dll -D_PA
CKAGE_ast -c /usr/bsd/var/tmp/shells/ast-ksh/work/src/lib/libdll/dlfcn.c
cc-1005 cc: ERROR File = /usr/bsd/var/tmp/shells/ast-ksh/work/arch/sgi.mips3/i
nclude/ast/prototyped.h, Line = 1
  The source file "../prototyped.h" is unavailable.

  #include <../prototyped.h>
                            ^

1 catastrophic error detected in the compilation of "/usr/bsd/var/tmp/shells/a
st-ksh/work/src/lib/libdll/dlfcn.c".
Compilation terminated.
mamake [lib/libdll]: *** exit code 2 making dlfcn.o

... repeated about 80 times for different files.

The problem is that there is no file named "prototyped.h" anywhere in the source tree.  Is pkgsrc unpacking the ksh distribution incorrectly, or is this an upsteam problem?

NB: the ast-ksh build also totally ignores all of my environment compiler flags - I don't think that's a problem now, but if the required file(s) did exist then it might mean that ksh is built o32 rather than n32.
>How-To-Repeat:

cd shells/ast-ksh ; bmake
>Fix:

Unknown - package pdksh?