c++ - Erlang/OTP ./configure 失败打开 Solaris

标签 c++ linux gcc erlang solaris

在 Open Solaris 上为 OTP14BO3 运行 ./configure。部分输出在这里:

Ignoring the --cache-file argument since it can cause the system to be erroneously configured
Disabling caching
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ld... ld
checking for GNU make... yes (gmake)
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking ERTS version... 5.8.4
checking OTP release... R14B03
configure: creating ./config.status
config.status: creating Makefile
config.status: creating make/emd2exml
configure: configuring in lib
configure: running /bin/sh '/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib/configure' --prefix=/usr/local  --cache-file=/dev/null --srcdir=/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib
configure: creating ./config.status
configure: configuring in snmp/.
configure: running /bin/sh '/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib/snmp/./configure' --prefix=/usr/local  '--prefix=/usr/local' '--cache-file=/dev/null' '--srcdir=/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib' --cache-file=/dev/null --srcdir=/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib/snmp/.
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for perl... perl
configure: creating ./config.status
config.status: creating mibs/Makefile
configure: configuring in common_test/.
configure: running /bin/sh '/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib/common_test/./configure' --prefix=/usr/local  '--prefix=/usr/local' '--cache-file=/dev/null' '--srcdir=/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib' --cache-file=/dev/null --srcdir=/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib/common_test/.
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
configure: creating ./config.status
config.status: creating priv/i386-pc-solaris2.11/Makefile
configure: configuring in diameter/.
configure: running /bin/sh '/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib/diameter/./configure' --prefix=/usr/local  '--prefix=/usr/local' '--cache-file=/dev/null' '--srcdir=/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib' --cache-file=/dev/null --srcdir=/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib/diameter/.
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking how to create a directory including parents... /usr/bin/ginstall -c -d
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/app/diameter.mk
config.status: creating make/i386-pc-solaris2.11/rules.mk
configure: configuring in erl_interface/.
configure: running /bin/sh '/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib/erl_interface/./configure' --prefix=/usr/local  '--prefix=/usr/local' '--cache-file=/dev/null' '--srcdir=/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib' --cache-file=/dev/null --srcdir=/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib/erl_interface/.
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure: error: /bin/sh '/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib/erl_interface/./configure' failed for erl_interface/.
configure: error: /bin/sh '/export/home/muzaaya/Desktop/software/otp_src_R14B03/lib/configure' failed for lib

config.log 的部分内容是:

configure:2455: gcc -Ae -c -g -O2  conftest.c >&5
:0:1: error: missing '(' after predicate
conftest.c:10:19: fatal error: stdio.h: No such file or directory
compilation terminated.
configure:2461: $? = 1
configure: failed program was:
| /* confdefs.h.  */

它说缺少头文件。我该如何解决这个问题?

最佳答案

源代码中的某处似乎存在语法错误,因此您的头文件可能无论如何都存在,GCC 有时并不那么聪明,并且会抛出不相关的错误。

一些谷歌搜索显示 this .显然你必须四处走走。你试过了吗?

关于c++ - Erlang/OTP ./configure 失败打开 Solaris,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6898612/

相关文章:

c - 为什么这个指针没有被取消引用?

c++ - 类中的变量正在自行重置

linux - 在 Nautilus 右键菜单中添加自定义选项

linux - 按排序顺序获取项目中所有文件的行数。(Bash 终端)

c - "using host libthread_db library"不包括 gdb 调试器

c - 如何使用<从文本文件中读取一整行

c++ - Linux x64 堆栈在信号处理程序中展开,以修改返回地址

c++ - 将空基类优化对象转换为另一种类型会破坏严格的别名吗?

c++ - 我可以将项目链接到与我使用的库不同的 _ITERATOR_DEBUG_LEVEL 吗?

linux - 如何检查我的服务器 Diffie-Hellman MODP 大小(位)并增加它?