Compilation of ksh93 failed on solaris 11 (i386 64bit):

+ cc -O2 -D_BLD_DLL -fPIC -I..
-I/root/data/git/ast-open.git/src/cmd/ksh93/include -I- -I.
-I/root/data/git/ast-open.git/src/cmd/ksh93/include
-I/root/data/git/ast-open.git/arch/sol11.i386/include/ast
-I/root/data/git/ast-open.git/arch/sol11.i386/include -DSHOPT_RAWONLY
-DSHOPT_VSH -DSHOPT_ESH -DSHOPT_HISTEXPAND -DSHOPT_COSHELL -DSHOPT_DYNAMIC
-DSHOPT_EDPREDICT -DSHOPT_MULTIBYTE -DKSHELL -D_PACKAGE_ast -DSHOPT_PFSH
'-D_API_ast=20100309' -D_BLD_shell -DSHOPT_BGX -DSHOPT_SUID_EXEC
-DSHOPT_BRACEPAT -DSHOPT_STATS -DSHOPT_NAMESPACE
'-DERROR_CONTEXT_T=Error_context_t' -DSHOPT_FIXEDARRAY -c
/root/data/git/ast-open.git/src/cmd/ksh93/sh/io.c
cc1: note: obsolete option -I- used, please use -iquote instead
/root/data/git/ast-open.git/src/cmd/ksh93/sh/io.c:2477:7: error:
conflicting types for 'sh_seek'
/root/data/git/ast-open.git/src/cmd/ksh93/include/shell.h:205:15: note:
previous declaration of 'sh_seek' was here
make [cmd/ksh93/cc-O2,-D_BLD_DLL,-fPIC]: *** exit code 1 making io.o
make [cmd/ksh93/cc-O2,-D_BLD_DLL,-fPIC]: *** 1 action failed
make [cmd/ksh93]: ".DLL.cc-O2,-D_BLD_DLL,-fPIC", line 8: *** exit code 1
making cc-O2,-D_BLD_DLL,-fPIC
make [cmd/ksh93]: *** 1 action failed
make: *** exit code 1 making cmd/ksh93

sh_seek() in shell.h is of `off_t'. But sh_seek() in io.c turned out to be
`int64_t' as seen in the output of `cc -E':

int64_t sh_seek(register int fd, int64_t offset, int whence)
{
 Shell_t *shp = sh_getinterp();
 register Sfio_t *sp;

On Tue, Apr 24, 2012 at 05:54, Glenn Fowler <[email protected]> wrote:

>
> ast 2012-04-23 git updates have been posted
> the update addresses many problems brought up on ast-users and
> ast-developers
> (thanks for the detailed reports)
>
> * a first round of ksh fixes (another update in a day or so)
> * nmake fixes so that cmd line option changes like --shared cause rebuilds
> * libast regex fixes to properly scope ksh ~(E)... vs ~(E:...)
>
> the update also includes the { grep xargs } ksh builtins/plugins in
>        src/cmd/kshlib/cmdtst
>
> to test cmdtst after building the packages, cd to a clean dir and:
>        mkdir bin lib
>        print $'BUILTIN_LIB=cmdtst\nLD_LIBRARY_PATH=../lib' > bin/.paths
>        cp $INSTALLROOT/src/cmd/kshlib/cmdtst/$(getconf
> LIBPREFIX)cmdtst$(getconf LIBSUFFIX) lib
> and
>        export PATH=$PWD/bin:$PATH
>
> _______________________________________________
> 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

Reply via email to