当前位置: 技术问答>linux和unix
Solaris下如何装gmake工具(GNU make)?
来源: 互联网 发布时间:2015-09-19
本文导语: 我GNU在官方网站down了make-3.80.tar,按照里面安装步骤安装,在编译源文件的时候出错,装不上去。谁有这个方面经验,多多指教,感谢万分! 错误信息: make all-recursive Making all in glob source='glob.c' object='glob.o' libto...
我GNU在官方网站down了make-3.80.tar,按照里面安装步骤安装,在编译源文件的时候出错,装不上去。谁有这个方面经验,多多指教,感谢万分!
错误信息:
make all-recursive
Making all in glob
source='glob.c' object='glob.o' libtool=no
depfile='.deps/glob.Po' tmpdepfile='.deps/glob.TPo'
depmode=none /bin/bash ../config/depcomp
CC -DHAVE_CONFIG_H -I. -I. -I.. -g -c `test -f 'glob.c' || echo './'`glob.c
"glob.c", line 194: Error: p is not defined.
"glob.c", line 200: Warning: The variable p has not yet been assigned a value.
"glob.c", line 202: Warning: The variable n has not yet been assigned a value.
"/usr/include/alloca.h", line 14: Error: Linkage specifications are allowed only
at file level.
"/usr/include/alloca.h", line 14: Error: Identifier expected instead of "{".
"/usr/include/alloca.h", line 14: Error: Use ";" to terminate declarations.
"./fnmatch.h", line 23: Error: Linkage specifications are allowed only at file l
evel.
"./fnmatch.h", line 23: Error: Identifier expected instead of "{".
"./fnmatch.h", line 23: Error: Use ";" to terminate declarations.
"./glob.h", line 22: Error: Linkage specifications are allowed only at file leve
l.
"./glob.h", line 22: Error: Identifier expected instead of "{".
"./glob.h", line 22: Error: Use ";" to terminate declarations.
"glob.c", line 298: Error: glob_t is not defined.
"glob.c", line 316: Error: begin is not defined.
"glob.c", line 320: Error: begin is not defined.
"glob.c", line 351: Error: Cannot return const char* from a function that should
return char*.
"glob.c", line 362: Error: Badly formed expression.
"glob.c", line 367: Error: glob_t is not defined.
"glob.c", line 367: Error: pglob is not defined.
"glob.c", line 375: Error: pglob is not defined.
"glob.c", line 378: Error: Cannot return int from a function that should return
char*.
"glob.c", line 381: Warning: The variable flags has not yet been assigned a valu
e.
"glob.c", line 401: Error: pglob is not defined.
"glob.c", line 402: Error: Cannot return int from a function that should return
char*.
"glob.c", line 423: Error: pglob is not defined.
"glob.c", line 437: Error: pglob is not defined.
"glob.c", line 454: Error: pglob is not defined.
"glob.c", line 455: Error: pglob is not defined.
Compilation aborted, too many Error messages.
*** Error code 1
make: Fatal error: Command failed for target `glob.o'
Current working directory /space/ortt/comp/test/dxas/xml/make-3.80/glob
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /space/ortt/comp/test/dxas/xml/make-3.80
*** Error code 1
make: Fatal error: Command failed for target `all'
错误信息:
make all-recursive
Making all in glob
source='glob.c' object='glob.o' libtool=no
depfile='.deps/glob.Po' tmpdepfile='.deps/glob.TPo'
depmode=none /bin/bash ../config/depcomp
CC -DHAVE_CONFIG_H -I. -I. -I.. -g -c `test -f 'glob.c' || echo './'`glob.c
"glob.c", line 194: Error: p is not defined.
"glob.c", line 200: Warning: The variable p has not yet been assigned a value.
"glob.c", line 202: Warning: The variable n has not yet been assigned a value.
"/usr/include/alloca.h", line 14: Error: Linkage specifications are allowed only
at file level.
"/usr/include/alloca.h", line 14: Error: Identifier expected instead of "{".
"/usr/include/alloca.h", line 14: Error: Use ";" to terminate declarations.
"./fnmatch.h", line 23: Error: Linkage specifications are allowed only at file l
evel.
"./fnmatch.h", line 23: Error: Identifier expected instead of "{".
"./fnmatch.h", line 23: Error: Use ";" to terminate declarations.
"./glob.h", line 22: Error: Linkage specifications are allowed only at file leve
l.
"./glob.h", line 22: Error: Identifier expected instead of "{".
"./glob.h", line 22: Error: Use ";" to terminate declarations.
"glob.c", line 298: Error: glob_t is not defined.
"glob.c", line 316: Error: begin is not defined.
"glob.c", line 320: Error: begin is not defined.
"glob.c", line 351: Error: Cannot return const char* from a function that should
return char*.
"glob.c", line 362: Error: Badly formed expression.
"glob.c", line 367: Error: glob_t is not defined.
"glob.c", line 367: Error: pglob is not defined.
"glob.c", line 375: Error: pglob is not defined.
"glob.c", line 378: Error: Cannot return int from a function that should return
char*.
"glob.c", line 381: Warning: The variable flags has not yet been assigned a valu
e.
"glob.c", line 401: Error: pglob is not defined.
"glob.c", line 402: Error: Cannot return int from a function that should return
char*.
"glob.c", line 423: Error: pglob is not defined.
"glob.c", line 437: Error: pglob is not defined.
"glob.c", line 454: Error: pglob is not defined.
"glob.c", line 455: Error: pglob is not defined.
Compilation aborted, too many Error messages.
*** Error code 1
make: Fatal error: Command failed for target `glob.o'
Current working directory /space/ortt/comp/test/dxas/xml/make-3.80/glob
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /space/ortt/comp/test/dxas/xml/make-3.80
*** Error code 1
make: Fatal error: Command failed for target `all'
|
http://ftp.sunfreeware.com/ftp/pub/freeware/
或者用Sun的Software Companion光盘里提供的用pkgadd安装的gmake,也可以到Sun的网站去下载
或者用Sun的Software Companion光盘里提供的用pkgadd安装的gmake,也可以到Sun的网站去下载
|
直接下binary的呗,http://www.sunfreeware.com