I'll make it a point to do a SHOP_DYNAMIC == 0 on the build farm
change these lines in b_pwd() in bltins/cd_pwd.c
#if SHOPT_FS_3D
register Shell_t *shp = ((Shbltin_t*)extra)->shp;
#else
NOT_USED(extra);
#endif
to
register Shell_t *shp = ((Shbltin_t*)extra)->shp;
thanks
On Thu, 10 Feb 2011 22:32:17 -0600 Jon wrote:
> Greetings,
> Attempting to create static ksh93.
> My target is linux.arm.
> Here is the relevant nmake output:
> cmd/ksh93:
> + cc -O -I. -I/opt/ast/src/cmd/ksh93/include -I- -I.
> -I/opt/ast/src/cmd/ksh93/include -I/opt/ast/include/ast -D_BLD_shell
> '-DSHOPT_DYNAMIC=0' -DSHOPT_MULTIBYTE -D_PACKAGE_ast -DSHOPT_PFSH
> '-D_API_ast=20100309' -DSHOPT_FIXEDARRAY -DSHOPT_SUID_EXEC
> -DSHOPT_BRACEPAT -DSHOPT_STATS -DSHOPT_NAMESPACE -DSHOPT_COSHELL
> -DSHOPT_HISTEXPAND '-DERROR_CONTEXT_T=Error_context_t' -DSHOPT_ESH -c
> /opt/ast/src/cmd/ksh93/bltins/cd_pwd.c
> cc1: note: obsolete option -I- used, please use -iquote instead
> /opt/ast/src/cmd/ksh93/bltins/cd_pwd.c: In function 'b_pwd':
> /opt/ast/src/cmd/ksh93/bltins/cd_pwd.c:236: error: 'shp' undeclared
> (first use in this function)
> /opt/ast/src/cmd/ksh93/bltins/cd_pwd.c:236: error: (Each undeclared
> identifier is reported only once
> /opt/ast/src/cmd/ksh93/bltins/cd_pwd.c:236: error: for each function
> it appears in.)
> make [cmd/ksh93]: *** exit code 1 making cd_pwd.o
> cmd/ksh93/cc-O,-D_BLD_DLL,-fPIC:
> make [cmd/ksh93]: *** 1 action failed
> make: *** exit code 1 making cmd/ksh93
> As of Febuary 10th 2011, using:
> http://www2.research.att.com/~gsf/download/tgz/ast-base.2011-02-08.tgz
> The problem occurs when setting the "SHOP_DYNAMIC == 0" in the ksh93
> Makefile.
> Tuning this knob to default 1 (dynamic) solves the build problem.
> The goal is to create ksh93 packages for both static and dynamic,
> where /bin/sh is static, /usr/bin/ksh dynamic.
> Any suggestions?
> Going forward I may try to reproduce the issue using another
> architecture or platform.
> Thanks in Advance,
> --
> -Jon
> _______________________________________________
> ast-users mailing list
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/ast-users
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users