make4.1降級 make-3.81、2錯誤
阿新 • • 發佈:2019-08-19
在編譯 make-3.82 的時候出現如下錯誤提示
glob/glob.c:xxx: undefined reference to `__alloca'`
修改 /glob/glob.c
// #if !defined __alloca && !defined __GNU_LIBRARY__
# ifdef __GNUC__
# undef alloca
# define alloca(n) __builtin_alloca (n)
# else /* Not GCC. */
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
# else /* Not HAVE_ALLOCA_H. */
# ifndef _AIX
# ifdef WINDOWS32
# include <malloc.h>
# else
extern char *alloca ();
# endif /* WINDOWS32 */
# endif /* Not _AIX. */
# endif /* sparc or HAVE_ALLOCA_H. */
# endif /* GCC. */
# define __alloca alloca
// #endif
儲存後編譯通過
這個錯