- 论坛徽章:
- 0
|
原帖由 kkjerry 于 2006-7-3 11:15 发表
vi /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/install-tools/mkheaders.conf
第一行加
SHELL=/bin/sh
然後再執行./mkheaders
有點久等一下
SOLARIS10 我都這麼解決的
完全正确。
楼主:既然所有的程序编译都有这个错误存在,就是通用错误,不知道你安装gcc的前是否仔细考虑过可能存在的问题
下面把Sun Freeware德强调说明贴出来,以补充:
gcc-3.3.2-sol10-intel-local.gz
The GNU C compiler and related programs - installs in /usr/local. This package includes the GNU C, C++, g77, Java, and OBJC compiler suites and support files. The Gnat ada programs are not included yet. It was compiled to use the SUN assembler and loader usually in /usr/ccs/bin if the SUNW developer packages are installed. This gcc package requires the installation of libiconv.
Note that this version of gcc was created on build 60 of Solaris 10. If you are using a higher version, you will need to redo some of the header files. This is done by doing the following steps:
cd /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools/
Put the line SHELL=/bin/sh on the first line of the mkheaders.conf
file. Then run
./mkheaders
This will correct some files and make the build 60 gcc usable on
higher builds. I have tested this on build 72 and it works fine.
Please also read the detail on how the gcc packages are created which can be found at Comments on gcc. The documentation is in /usr/local/doc/gcc, /usr/local/man, and /usr/local/info.
gcc-3.3.2.tar.gz Source Code. [Details] |
|