hi,
I am trying to install ksh93 from source in order to further investigate
my problems with ksh crashing since I've upgraded to MacOS 10.9. I've
followed literally the instructions from the download page but the build
fails. I can send the complete output of `bin/package results' if needed.
for now, I have looked for all reported errors in that output which occur
in these contexts. I hope it's sensible to list these here:
8<-------------------------------
/Users/vdh/software/ast/src/lib/libast/port/mnt.c:85:13: note: use '==' to
turn this assignment into an equality comparison
/Users/vdh/software/ast/src/lib/libast/comp/memccpy.c:39:1: error:
expected parameter declarator
/usr/include/secure/_string.h:58:47: note: expanded from macro 'memccpy'
/usr/include/secure/_common.h:38:63: note: expanded from macro
'__darwin_obsz0'
/Users/vdh/software/ast/src/lib/libast/comp/memccpy.c:39:1: error:
expected ')'
/usr/include/secure/_string.h:58:47: note: expanded from macro 'memccpy'
/usr/include/secure/_common.h:38:63: note: expanded from macro
'__darwin_obsz0'
/Users/vdh/software/ast/src/lib/libast/comp/memccpy.c:39:1: note: to match
this '('
/usr/include/secure/_string.h:58:47: note: expanded from macro 'memccpy'
/usr/include/secure/_common.h:38:54: note: expanded from macro
'__darwin_obsz0'
/Users/vdh/software/ast/src/lib/libast/comp/memccpy.c:39:1: warning: type
specifier missing, defaults to 'int' [-Wimplicit-int]
/usr/include/secure/_string.h:58:47: note: expanded from macro 'memccpy'
/usr/include/secure/_common.h:38:32: note: expanded from macro
'__darwin_obsz0'
/Users/vdh/software/ast/src/lib/libast/comp/memccpy.c:39:1: error:
conflicting types for '__builtin___memccpy_chk'
/usr/include/secure/_string.h:58:3: note: expanded from macro 'memccpy'
/Users/vdh/software/ast/src/lib/libast/comp/memccpy.c:39:1: note:
'__builtin___memccpy_chk' is a builtin with type 'void *(void *, const
void *, int, unsigned long, unsigned long)'
/usr/include/secure/_string.h:58:3: note: expanded from macro 'memccpy'
/Users/vdh/software/ast/src/lib/libast/comp/memccpy.c:39:1: error:
definition of builtin function '__builtin___memccpy_chk'
/usr/include/secure/_string.h:58:3: note: expanded from macro 'memccpy'
mamake [lib/libast]: *** exit code 1 making memccpy.o
...
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:41:2: error: unknown type
name 'Dllscan_t'; did you mean 'Dllstate_t'?
/Users/vdh/software/ast/src/lib/libdll/dlllib.h:32:3: note: 'Dllstate_t'
declared here
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:42:2: error: use of
undeclared identifier 'Dllent_t'
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:42:12: error: use of
undeclared identifier 'dle'
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:47:13: warning: implicit
declaration of function 'dllsopen' is invalid in C99
[-Wimplicit-function-declaration]
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:47:11: warning:
incompatible integer to pointer conversion assigning to 'Dllstate_t *'
(aka 'struct Dllstate_s *') from 'int' [-Wint-conversion]
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:47:11: warning: using the
result of an assignment as a condition without parentheses [-Wparentheses]
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:47:11: note: place
parentheses around the assignment to silence this warning
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:47:11: note: use '==' to
turn this assignment into an equality comparison
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:49:11: error: use of
undeclared identifier 'dle'
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:49:17: warning: implicit
declaration of function 'dllsread' is invalid in C99
[-Wimplicit-function-declaration]
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:55:15: warning: implicit
declaration of function 'dllopen' is invalid in C99
[-Wimplicit-function-declaration]
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:55:23: error: use of
undeclared identifier 'dle'
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:57:11: warning: implicit
declaration of function 'dllcheck' is invalid in C99
[-Wimplicit-function-declaration]
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:57:25: error: use of
undeclared identifier 'dle'
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:60:7: warning: implicit
declaration of function 'dlclose' is invalid in C99
[-Wimplicit-function-declaration]
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:65:21: error: use of
undeclared identifier 'dle'
/usr/include/secure/_string.h:105:34: note: expanded from macro 'strlcpy'
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:93:63: error: use of
undeclared identifier 'dle'
errorf("dll", NiL, 1, "dllplugin:
%s dlopen failed: %s", dle->path, dllerror(1));
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:97:4: warning: implicit
declaration of function 'dllsclose' is invalid in C99
[-Wimplicit-function-declaration]
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:109:10: warning:
incompatible integer to pointer conversion assigning to 'void *' from
'int' [-Wint-conversion]
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:109:10: warning: using
the result of an assignment as a condition without parentheses
[-Wparentheses]
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:109:10: note: place
parentheses around the assignment to silence this warning
/Users/vdh/software/ast/src/lib/libdll/dllplug.c:109:10: note: use '==' to
turn this assignment into an equality comparison
mamake [lib/libdll]: *** exit code 1 making dllplug.o
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:42:1: error: unknown type
name 'Dllnames_t'
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:43:44: error: unknown
type name 'Dllnames_t'
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:56:21: error: use of
undeclared identifier 'Dllnames_t'; did you mean 'dllnames'?
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:43:1: note: 'dllnames'
declared here
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:56:32: error: expected
expression
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:59:12: error: use of
undeclared identifier 'Dllnames_t'; did you mean 'dllnames'?
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:43:1: note: 'dllnames'
declared here
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:59:23: error: expected
expression
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:83:8: warning: using the
result of an assignment as a condition without parentheses [-Wparentheses]
if (t = strrchr(s, ':'))
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:83:8: note: place
parentheses around the assignment to silence this warning
if (t = strrchr(s, ':'))
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:83:8: note: use '==' to
turn this assignment into an equality comparison
if (t = strrchr(s, ':'))
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:110:9: error: unknown
type name 'Dllnames_t'
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:110:51: error: unknown
type name 'Dllerror_f'
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:138:14: warning: implicit
declaration of function 'dllplugin' is invalid in C99
[-Wimplicit-function-declaration]
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:152:26: warning: implicit
declaration of function 'dlllook' is invalid in C99
[-Wimplicit-function-declaration]
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:152:15: warning: cast to
'Dll_lib_f' (aka 'void *(*)(const char *, void *, const char *)') from
smaller integer type 'int' [-Wint-to-pointer-cast]
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:185:2: error: use of
undeclared identifier 'Dllnames_t'; did you mean 'dllnames'?
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:43:1: note: 'dllnames'
declared here
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:187:37: error: use of
undeclared identifier 'names'; did you mean 'name'?
/Users/vdh/software/ast/src/lib/libdll/dll_lib.c:183:37: note: 'name'
declared here
mamake [lib/libdll]: *** exit code 1 making dll_lib.o
/Users/vdh/software/ast/src/lib/libdll/dllnext.c:210:17: warning: implicit
declaration of function 'dllopen' is invalid in C99
[-Wimplicit-function-declaration]
/Users/vdh/software/ast/src/lib/libdll/dllnext.c:210:15: warning:
incompatible integer to pointer conversion assigning to 'void *' from
'int' [-Wint-conversion]
/Users/vdh/software/ast/src/lib/libdll/dlllook.c:40:15: warning: implicit
declaration of function 'dlsym' is invalid in C99
[-Wimplicit-function-declaration]
/Users/vdh/software/ast/src/lib/libdll/dlllook.c:40:13: warning:
incompatible integer to pointer conversion assigning to 'void *' from
'int' [-Wint-conversion]
/Users/vdh/software/ast/src/lib/libdll/dlllook.c:45:8: warning:
incompatible integer to pointer conversion assigning to 'void *' from
'int' [-Wint-conversion]
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:85:1: error: unknown type
name 'Dllinfo_t'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:98:9: error: unknown type
name 'Dllinfo_t'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:135:26: warning: '&&'
within '||' [-Wlogical-op-parentheses]
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:135:26: note: place
parentheses around the '&&' expression to silence this warning
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:165:18: error: use of
undeclared identifier 'DLL_INFO_PREVER'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:167:18: error: use of
undeclared identifier 'DLL_INFO_DOTVER'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:197:9: warning: using the
result of an assignment as a condition without parentheses [-Wparentheses]
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:197:9: note: place
parentheses around the assignment to silence this warning
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:197:9: note: use '==' to
turn this assignment into an equality comparison
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:211:1: error: unknown
type name 'Dllscan_t'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:216:2: error: use of
undeclared identifier 'Dllscan_t'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:216:13: error: use of
undeclared identifier 'scan'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:217:2: error: use of
undeclared identifier 'Dllinfo_t'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:217:13: error: use of
undeclared identifier 'info'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:232:9: warning: using the
result of an assignment as a condition without parentheses [-Wparentheses]
if (s = strrchr(lib, ':'))
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:232:9: note: place
parentheses around the assignment to silence this warning
if (s = strrchr(lib, ':'))
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:232:9: note: use '==' to
turn this assignment into an equality comparison
if (s = strrchr(lib, ':'))
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:241:47: warning: '&&'
within '||' [-Wlogical-op-parentheses]
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:241:47: note: place
parentheses around the '&&' expression to silence this warning
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:243:8: error: use of
undeclared identifier 'scan'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:243:30: error: use of
undeclared identifier 'Dllscan_t'
/Users/vdh/software/ast/arch/darwin.i386-64/include/ast/vmalloc.h:329:29:
note: expanded from macro 'vmnewof'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:243:15: error: expected
expression
/Users/vdh/software/ast/arch/darwin.i386-64/include/ast/vmalloc.h:329:31:
note: expanded from macro 'vmnewof'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:243:30: error: use of
undeclared identifier 'Dllscan_t'
/Users/vdh/software/ast/arch/darwin.i386-64/include/ast/vmalloc.h:329:58:
note: expanded from macro 'vmnewof'
/Users/vdh/software/ast/arch/darwin.i386-64/include/ast/vmalloc.h:313:26:
note: expanded from macro 'vmresize'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:243:53: error: use of
undeclared identifier 'scan'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:248:2: error: use of
undeclared identifier 'scan'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:249:2: error: use of
undeclared identifier 'info'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:250:2: error: use of
undeclared identifier 'scan'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:250:16: error: use of
undeclared identifier 'info'
/Users/vdh/software/ast/src/lib/libdll/dllscan.c:253:3: error: use of
undeclared identifier 'scan'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
mamake [lib/libdll]: *** exit code 1 making dllscan.o
/Users/vdh/software/ast/src/lib/libdll/dllcheck.c:37:2: error: use of
undeclared identifier 'Dll_plugin_version_f'; did you mean
'plugin_version'?
/Users/vdh/software/ast/arch/darwin.i386-64/include/ast/ast.h:422:33:
note: 'plugin_version' declared here
/Users/vdh/software/ast/src/lib/libdll/dllcheck.c:37:22: error: expected
';' after expression
/Users/vdh/software/ast/src/lib/libdll/dllcheck.c:37:23: error: use of
undeclared identifier 'pvf'
/Users/vdh/software/ast/src/lib/libdll/dllcheck.c:39:6: error: use of
undeclared identifier 'pvf'
/Users/vdh/software/ast/src/lib/libdll/dllcheck.c:39:13: error: use of
undeclared identifier 'Dll_plugin_version_f'; did you mean
'plugin_version'?
/Users/vdh/software/ast/arch/darwin.i386-64/include/ast/ast.h:422:33:
note: 'plugin_version' declared here
/Users/vdh/software/ast/src/lib/libdll/dllcheck.c:40:12: error: use of
undeclared identifier 'pvf'
/Users/vdh/software/ast/src/lib/libdll/dllcheck.c:37:2: warning:
expression result unused [-Wunused-value]
mamake [lib/libdll]: *** exit code 1 making dllcheck.o
/Users/vdh/software/ast/src/lib/libdll/dllerror.c:45:6:
/Users/vdh/software/ast/src/lib/libdll/dllerror.c:45:4: warning:
incompatible integer to pointer conversion assigning to 'char *' from
'int' [-Wint-conversion]
...
/Users/vdh/software/ast/src/cmd/ksh93/bltins/typeset.c:1031:70: error: use
of undeclared identifier 'RTLD_LAZY'
/Users/vdh/software/ast/src/cmd/ksh93/bltins/typeset.c:1033:48: warning:
implicit declaration of function 'dllerror' is invalid in C99
[-Wimplicit-function-declaration]
errormsg(SH_DICT,ERROR_exit(0),"%s:
%s",arg,dllerror(0));
...
/Users/vdh/software/ast/src/cmd/ksh93/sh/path.c:826:73: error: use of
undeclared identifier 'RTLD_LAZY'
...
ld: warning: option -m is obsolete and being ignored
ld: library not found for -last
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
mamake [cmd/ksh93]: *** exit code 1 making suid_exec
mamake: *** exit code 1 making cmd/ksh93
8<------------------------------------------------
I also see that the ksh93 package from Macports (http://www.macports.org/)
also does no longer install (also confirmed by one of the macports
maintainers, so I would rule out a simple misconfiguration of my machine
...), presumably for the same reason.
any help in solving this problem would be greatly appreciated.
joerg
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users