当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 7 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 程序编译出错SOS
帖子发表于 : 2009-09-16 15:55 

注册: 2009-07-13 16:23
帖子: 213
送出感谢: 0 次
接收感谢: 0 次
安装一个程序,先./configure,再make,中间信息如下,问题出在什么地方?
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking auto silent in maintainer mode... auto-sleep-9
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for doxygen... no
checking for swig... no
checking for perl... /usr/bin/perl
checking for python... /usr/bin/python
configure: WARNING: Cannot find doxygen to build documentation.
Have a look at http://www.doxygen.org/
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... yes
checking if f77 supports -c -o file.o... yes
checking whether the f77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... /usr/bin/f77: Illegal option: -print-search-dirs
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for asin in -lm... yes
checking for dlopen in -lc... no
checking for dlopen in -ldl... (cached) yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... yes (version 2.6.32)
checking for GetINCHI in -linchi... no
checking if zlib is wanted... checking for inflateEnd in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking conio.h usability... no
checking conio.h presence... no
checking for conio.h... no
checking for string.h... (cached) yes
checking strstream.h usability... no
checking strstream.h presence... no
checking for strstream.h... no
checking iostream.h usability... no
checking iostream.h presence... no
checking for iostream.h... no
checking fstream.h usability... no
checking fstream.h presence... no
checking for fstream.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking iostream usability... yes
checking iostream presence... yes
checking for iostream... yes
checking fstream usability... yes
checking fstream presence... yes
checking for fstream... yes
checking sstream usability... yes
checking sstream presence... yes
checking for sstream... yes
checking strstream usability... yes
checking strstream presence... yes
checking for strstream... yes
checking whether time.h and sys/time.h may both be included... yes
checking for clock_t... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for rint... yes
checking for sranddev... no
checking for snprintf... yes
checking for strncasecmp... yes
checking whether scandir needs a const cast... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating src/Makefile
config.status: creating src/math/Makefile
config.status: creating src/formats/Makefile
config.status: creating src/fingerprints/Makefile
config.status: creating src/formats/xml/Makefile
config.status: creating src/formats/inchi/Makefile
config.status: creating test/Makefile
config.status: creating test/cmltest/Makefile
config.status: creating tools/Makefile
config.status: creating doc/Makefile
config.status: creating scripts/Makefile
config.status: creating openbabel-2.0.pc
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing src/babelconfig.h commands
root@ubuntu:~/doc/DOVIS-2.0.1-installer/openbabel-2.0.2# make
Making all in data
make[1]: Entering directory `/root/doc/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
make all-am
make[2]: Entering directory `/root/doc/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/root/doc/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
make[1]: Leaving directory `/root/doc/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
Making all in src
make[1]: Entering directory `/root/doc/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
make all-recursive
make[2]: Entering directory `/root/doc/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
Making all in math
make[3]: Entering directory `/root/doc/DOVIS-2.0.1-installer/openbabel-2.0.2/src/math'
if /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I../../src -g -O2 -MT matrix3x3.lo -MD -MP -MF ".deps/matrix3x3.Tpo" -c -o matrix3x3.lo matrix3x3.cpp; \
then mv -f ".deps/matrix3x3.Tpo" ".deps/matrix3x3.Plo"; else rm -f ".deps/matrix3x3.Tpo"; exit 1; fi
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I../../src -g -O2 -MT matrix3x3.lo -MD -MP -MF .deps/matrix3x3.Tpo -c matrix3x3.cpp -fPIC -DPIC -o .libs/matrix3x3.o
In file included from ../../src/mol.h:51,
from matrix3x3.cpp:22:
../../src/data.h: In constructor 'OpenBabel::OBElement::OBElement(int, const char*, double, double, int, double, double, double, double, double, double, double, std::string)':
../../src/data.h:113: error: 'strncpy' was not declared in this scope
make[3]: *** [matrix3x3.lo] Error 1
make[3]: Leaving directory `/root/doc/DOVIS-2.0.1-installer/openbabel-2.0.2/src/math'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/doc/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/doc/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
make: *** [all-recursive] Error 1


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 程序编译出错SOS
帖子发表于 : 2009-09-17 9:46 

注册: 2009-07-13 16:23
帖子: 213
送出感谢: 0 次
接收感谢: 0 次
初步估计是文件头的问题,与gCC4.3的升级有关,用cygwin可以安装(gcc3.4.4)。能不能在ubuntu里用gcc3.4而不用gcc4.3?
系统里既有gcc4.3,又有gcc3.4,如何让系统默认使用gcc3.4编译该程序?


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 程序编译出错SOS
帖子发表于 : 2009-09-17 15:19 

注册: 2009-07-13 16:23
帖子: 213
送出感谢: 0 次
接收感谢: 0 次
:em20


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 程序编译出错SOS
帖子发表于 : 2009-09-17 15:28 
头像

注册: 2007-08-05 17:40
帖子: 4968
送出感谢: 0 次
接收感谢: 4
configure CC=your_cc


see configure --help


_________________
free VPN
YouKuDownLoader
代码:
pip3 install ykdl

install YouKuDownLoader, have fun in downloading.
YouKuDownLoader所支持网站列表


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 程序编译出错SOS
帖子发表于 : 2009-09-18 10:15 

注册: 2009-07-13 16:23
帖子: 213
送出感谢: 0 次
接收感谢: 0 次
./configure CC=gcc3.4_cc

是这样吗?


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 程序编译出错SOS
帖子发表于 : 2009-09-18 10:25 
头像

注册: 2007-08-05 17:40
帖子: 4968
送出感谢: 0 次
接收感谢: 4
gcc3.4_cc
是你gcc3.4的名字吗?

具体还要看./configure --help中变量名的提示。

我举的例子只不过是比较普遍而已。


_________________
free VPN
YouKuDownLoader
代码:
pip3 install ykdl

install YouKuDownLoader, have fun in downloading.
YouKuDownLoader所支持网站列表


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 程序编译出错SOS
帖子发表于 : 2009-09-19 10:24 

注册: 2009-07-13 16:23
帖子: 213
送出感谢: 0 次
接收感谢: 0 次
用gcc --version看可以吗?


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 7 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译