2013-03-21 116 views
-1

由于缺乏有关在pfSense上安装gcc的信息,我已经浏览了以前的所有相关文章,希望能解决这个安装问题,但是我不能。为了编译和安装SquidGuard-1.5-beta源码包,gcc-4.6.2是必需的,但gmake总是会有两个错误。以下是该过程的输出:在pfSense上安装gcc

[2.0.1-RELEASE][[email protected]_acad_incorp.fw]/root(10): cd objdir 
[2.0.1-RELEASE][[email protected]_acad_incorp.fw]/root/objdir(11): $PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2 
checking build system type... i386-unknown-freebsd8.1 
checking host system type... i386-unknown-freebsd8.1 
checking target system type... i386-unknown-freebsd8.1 
checking for a BSD-compatible install... /usr/bin/install -c 
checking whether ln works... yes 
checking whether ln -s works... yes 
checking for a sed that does not truncate output... /usr/bin/sed 
checking for gawk... no 
checking for mawk... no 
checking for nawk... nawk 
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 ISO C89... unsupported 
checking for g++... no 
checking for c++... no 
checking for gpp... no 
checking for aCC... no 
checking for CC... no 
checking for cxx... no 
checking for cc++... no 
checking for cl.exe... no 
checking for FCC... no 
checking for KCC... no 
checking for RCC... no 
checking for xlC_r... no 
checking for xlC... no 
checking whether we are using the GNU C++ compiler... no 
checking whether g++ accepts -g... no 
checking for gnatbind... no 
checking for gnatmake... no 
checking whether compiler driver understands Ada... no 
checking how to compare bootstrapped objects... cmp $$f1 $$f2 16 16 
checking for objdir... .libs 
checking for PWL_handle_timeout in -lpwl... no 
checking for version 0.11 (revision 0 or later) of PPL... no 
The following languages will be built: c,c++,fortran,java,lto,objc 
*** This configuration is not supported in the following subdirectories: 
    gnattools target-libada target-libgo 
    (Any other directories should still work fine.) 
checking for default BUILD_CONFIG... bootstrap-debug 
checking for bison... no 
checking for byacc... byacc 
checking for bison... no 
checking for gm4... no 
checking for gnum4... no 
checking for m4... no 
checking for flex... flex 
checking for flex... flex 
checking for makeinfo... no 
checking for expect... no 
checking for runtest... no 
checking for ar... ar 
checking for as... as 
checking for dlltool... no 
checking for ld... (cached) /usr/bin/ld 
checking for lipo... no 
checking for nm... nm 
checking for ranlib... ranlib 
checking for strip... strip 
checking for windres... no 
checking for windmc... no 
checking for objcopy... objcopy 
checking for objdump... objdump 
checking for cc... cc 
checking for c++... no 
checking for g++... no 
checking for cxx... no 
checking for gxx... no 
checking for gcc... gcc 
checking for gcj... no 
checking for gfortran... no 
checking for gccgo... no 
checking for ar... no 
checking for ar... ar 
checking for as... no 
checking for as... as 
checking for dlltool... no 
checking for dlltool... no 
checking for ld... no 
checking for ld... ld 
checking for lipo... no 
checking for lipo... no 
checking for nm... no 
checking for nm... nm 
checking for objdump... no 
checking for objdump... objdump 
checking for ranlib... no 
checking for ranlib... ranlib 
checking for strip... no 
checking for strip... strip 
checking for windres... no 
checking for windres... no 
checking for windmc... no 
checking for windmc... no 
checking where to find the target ar... host tool 
checking where to find the target as... host tool 
checking where to find the target cc... just compiled 
checking where to find the target c++... just compiled 
checking where to find the target c++ for libstdc++... just compiled 
checking where to find the target dlltool... host tool 
checking where to find the target gcc... just compiled 
checking where to find the target gcj... just compiled 
checking where to find the target gfortran... just compiled 
checking where to find the target gccgo... host tool 
checking where to find the target ld... host tool 
checking where to find the target lipo... host tool 
checking where to find the target nm... host tool 
checking where to find the target objdump... host tool 
checking where to find the target ranlib... host tool 
checking where to find the target strip... host tool 
checking where to find the target windres... host tool 
checking where to find the target windmc... host tool 
checking whether to enable maintainer-specific portions of Makefiles... no 
checking whether -fkeep-inline-functions is supported... yes 
configure: creating ./config.status 
config.status: creating Makefile 
[2.0.1-RELEASE][[email protected]_acad_incorp.fw]/root/objdir(12): gmake 
[ -f stage_final ] || echo stage3 > stage_final 
gmake[1]: Entering directory `/root/objdir' 
gmake[2]: Entering directory `/root/objdir' 
gmake[2]: Leaving directory `/root/objdir' 
gmake[2]: Entering directory `/root/objdir' 
Configuring stage 1 in ./intl 
configure: creating cache ./config.cache 
checking whether gmake sets $(MAKE)... yes 
checking for a BSD-compatible install... /usr/bin/install -c 
checking whether NLS is requested... yes 
checking for msgfmt... /usr/local/bin/msgfmt 
checking for gmsgfmt... /usr/local/bin/msgfmt 
checking for xgettext... /usr/local/bin/xgettext 
checking for msgmerge... /usr/local/bin/msgmerge 
checking for i386-unknown-freebsd8.1-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 ISO C89... unsupported 
checking build system type... i386-unknown-freebsd8.1 
checking host system type... i386-unknown-freebsd8.1 
checking for i386-unknown-freebsd8.1-ranlib... ranlib 
checking for library containing strerror... none required 
checking how to run the C preprocessor... /lib/cpp 
configure: error: in `/root/objdir/intl': 
configure: error: C preprocessor "/lib/cpp" fails sanity check 
See `config.log' for more details. 
gmake[2]: *** [configure-stage1-intl] Error 1 
gmake[2]: Leaving directory `/root/objdir' 
gmake[1]: *** [stage1-bubble] Error 2 
gmake[1]: Leaving directory `/root/objdir' 
gmake: *** [all] Error 2 
[2.0.1-RELEASE][[email protected]_acad_incorp.fw]/root/objdir(13): 

欣赏任何建议来解决此问题。谢谢。

回答

1

而不是在防火墙上安装编译器,为什么不在另一个FreeBSD上编译SquidGuard并从中创建一个包。然后您可以在pfSense上安装该软件包。

+0

感谢您的评论沃伦。出于慷慨,你能告诉我怎么做,因为我还在学习'如何爬行'? – terry 2013-03-22 07:28:59