当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 6 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 程序编译难题,转到本区
帖子发表于 : 2009-08-12 9:09 

注册: 2009-07-13 16:23
帖子: 213
送出感谢: 0 次
接收感谢: 0 次
我有两个必须使用的程序在ubuntu上不能安装。列出安装的出错信息,其中第一个在cygwin中是可以的:
两个程序编译的错误信息如下:

1. fortran77 编写的源程序,make 之后:

f77 -u -O2 -NC200 -c -o sdf2mol2.o sdf2mol2.f
MAIN sdf2mol2:
Error on line 82: impossible conversion
Error on line 82: incompatible types in initialization
Error on line 83: impossible conversion
Error on line 83: incompatible types in initialization
Warning on line 940: local variable isprotein never used
Warning on line 940: local variable bb never used
Warning on line 940: local variable islcletter never used
Warning on line 940: local variable ishydrogen never used
Warning on line 940: local variable isucletter never used
Warning on line 940: local variable bbb never used
Warning on line 940: local variable bond never used
Warning on line 940: local variable line never used
Warning on line 940: local variable iargc never used
Warning on line 940: local variable choice never used
Warning on line 940: local variable hostname_chars never used
Warning on line 940: local variable findeos never used
Warning on line 940: local variable isdigit never used
Warning on line 940: local variable isether never used
Warning on line 940: local variable num2char never used
Warning on line 940: local variable elmnts never used
insamering:
Warning on line 961: inconsistent calling sequences for inthisring:
here 3, previously 4 args and string lengths.
inthisring:
ringsep:
isaromaticatom:
border:
print_help:
/usr/bin/f77: aborting compilation
make: *** [sdf2mol2.o] 错误 25



2. 第二个程序,出错信息:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
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... no
checking for libxml - version >= 2.6.5... no
*** The xml2-config script installed by LIBXML could not be found
*** If libxml was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the XML2_CONFIG environment variable to the
*** full path to xml2-config.
checking for GetINCHI in -linchi... no
checking if zlib is wanted... checking for inflateEnd in -lz... no
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
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
【被屏蔽】 all in data
make[1]: 正在进入目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
make all-am
make[2]: 正在进入目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
make[2]: 没有什么可以做的为 `all-am'。
make[2]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
make[1]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
【被屏蔽】 all in src
make[1]: 正在进入目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
make all-recursive
make[2]: 正在进入目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
【被屏蔽】 all in math
make[3]: 正在进入目录 `/root/program/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
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] 错误 1
make[3]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/src/math'
make[2]: *** [all-recursive] 错误 1
make[2]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
make[1]: *** [all] 错误 2
make[1]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
make: *** [all-recursive] 错误 1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) mawk
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for gethostname... yes
checking for pow... no
checking for sqrt... no
checking for strncasecmp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
make: 没有什么可以做的为 `all'。
make[1]: 正在进入目录 `/root/program/DOVIS-2.0.1-installer/autodocksuite-4.0.1/src/autodock-4.0.1'
test -z "/usr/local/dovis/bin" || /bin/mkdir -p "/usr/local/dovis/bin"
/usr/bin/install -c 'autodock4' '/usr/local/dovis/bin/autodock4'
make[1]: 没有什么可以做的为 `install-data-am'。
make[1]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/autodocksuite-4.0.1/src/autodock-4.0.1'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for sqrt in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for gethostname... yes
checking for pow... yes
checking for round... yes
checking for sqrt... yes
checking for strncasecmp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
g++ -DPACKAGE_NAME=\"autogrid\" -DPACKAGE_TARNAME=\"autogrid\" -DPACKAGE_VERSION=\"4.0.0\" -DPACKAGE_STRING=\"autogrid\ 4.0.0\" -DPACKAGE_BUGREPORT=\"autodock@scripps.edu\" -DPACKAGE=\"autogrid\" -DVERSION=\"4.0.0\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTNAME=1 -DHAVE_POW=1 -DHAVE_ROUND=1 -DHAVE_SQRT=1 -DHAVE_STRNCASECMP=1 -I. -I./../autodock-4.0.1 -Wall -O3 -g -O2 -MT autogrid4-check_size.o -MD -MP -MF .deps/autogrid4-check_size.Tpo -c -o autogrid4-check_size.o `test -f 'check_size.cpp' || echo './'`check_size.cpp
check_size.cpp: In function ‘int check_size(int, char)’:
check_size.cpp:64: 错误: ‘exit’在此作用域中尚未声明
make: *** [autogrid4-check_size.o] 错误 1
root@songyf-desktop:~/program/DOVIS-2.0.1-installer# g++ -DPACKAGE_NAME=\"autogrid\" -DPACKAGE_TARNAME=\"autogrid\" -DPACKAGE_VERSION=\"4.0.0\" -DPACKAGE_STRING=\"autogrid\ 4.0.0\" -DPACKAGE_BUGREPORT=\"autodock@scripps.edu\" -DPACKAGE=\"autogrid\" -DVERSION=\"4.0.0\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETHOSTNAME=1 -DHAVE_POW=1 -DHAVE_ROUND=1 -DHAVE_SQRT=1 -DHAVE_STRNCASECMP=1 -I. -I./../autodock-4.0.1 -Wall -O3 -g -O2 -MT autogrid4-check_size.o -MD -MP -MF .deps/autogrid4-check_size.Tpo -c -o autogrid4-check_size.o `test -f 'check_size.cpp' || echo './'`check_size.cpp
g++: ./check_size.cpp:没有该文件或目录
g++: 没有输入文件
root@songyf-desktop:~/program/DOVIS-2.0.1-installer# check_size.cpp: In function ‘int check_size(int, char)’:
bash: 在未预料的“(”附近出现语法错误
root@songyf-desktop:~/program/DOVIS-2.0.1-installer# check_size.cpp:64: 错误: exit’在此作用域中尚未声明
bash: check_size.cpp:64::找不到命令
root@songyf-desktop:~/program/DOVIS-2.0.1-installer# make: *** [autogrid4-check_size.o] 错误 1
bash: make::找不到命令

我可以将我的源程序提供给您,在您的系统试一下.


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 程序编译难题,转到本区
帖子发表于 : 2009-08-12 10:25 
头像

注册: 2007-11-29 9:41
帖子: 8455
送出感谢: 0 次
接收感谢: 0 次
第一个不知道。
第二个,看了下提示,大概是关于新版gcc语法严谨的问题。
只不过是你没包含必要的头文件。

引用:
check_size.cpp:64: 错误: ‘exit’在此作用域中尚未声明

像这样的,把 stdlib.h 加进去就行。

本人不负责任 ... 请务发文件过来


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 程序编译难题,转到本区
帖子发表于 : 2009-08-12 16:56 

注册: 2009-07-13 16:23
帖子: 213
送出感谢: 0 次
接收感谢: 0 次
加上了,好像有作用,但不完全解决问题,应该还有其他问题吧 :em20

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
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... /usr/bin/doxygen
checking for swig... no
checking for perl... /usr/bin/perl
checking for python... /usr/bin/python
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... no
checking for libxml - version >= 2.6.5... no
*** The xml2-config script installed by LIBXML could not be found
*** If libxml was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the XML2_CONFIG environment variable to the
*** full path to xml2-config.
checking for GetINCHI in -linchi... no
checking if zlib is wanted... checking for inflateEnd in -lz... no
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
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
Making all in data
make[1]: 正在进入目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
make all-am
make[2]: 正在进入目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
make[2]: 没有什么可以做的为 `all-am'。
make[2]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
make[1]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/data'
Making all in src
make[1]: 正在进入目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
make all-recursive
make[2]: 正在进入目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
Making all in math
make[3]: 正在进入目录 `/root/program/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
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] 错误 1
make[3]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/src/math'
make[2]: *** [all-recursive] 错误 1
make[2]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
make[1]: *** [all] 错误 2
make[1]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/openbabel-2.0.2/src'
make: *** [all-recursive] 错误 1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) mawk
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for gethostname... yes
checking for pow... no
checking for sqrt... no
checking for strncasecmp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
make: 没有什么可以做的为 `all'。
make[1]: 正在进入目录 `/root/program/DOVIS-2.0.1-installer/autodocksuite-4.0.1/src/autodock-4.0.1'
test -z "/usr/local/dovis/bin" || /bin/mkdir -p "/usr/local/dovis/bin"
/usr/bin/install -c 'autodock4' '/usr/local/dovis/bin/autodock4'
make[1]: 没有什么可以做的为 `install-data-am'。
make[1]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/autodocksuite-4.0.1/src/autodock-4.0.1'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for sqrt in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for gethostname... yes
checking for pow... yes
checking for round... yes
checking for sqrt... yes
checking for strncasecmp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
make: 没有什么可以做的为 `all'。
make[1]: 正在进入目录 `/root/program/DOVIS-2.0.1-installer/autodocksuite-4.0.1/src/autogrid-4.0.0'
test -z "/usr/local/dovis/bin" || /bin/mkdir -p "/usr/local/dovis/bin"
/usr/bin/install -c 'autogrid4' '/usr/local/dovis/bin/autogrid4'
make[1]: 没有什么可以做的为 `install-data-am'。
make[1]:正在离开目录 `/root/program/DOVIS-2.0.1-installer/autodocksuite-4.0.1/src/autogrid-4.0.0'


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 程序编译难题,转到本区
帖子发表于 : 2009-09-04 22:01 
头像

注册: 2008-12-13 19:39
帖子: 13284
地址: 物华天宝人杰地灵
送出感谢: 1
接收感谢: 6
第一个是Fortran啊,完全不懂,应该是gcc要专门使用相应的参数才行吧,一般用户至多用gccg++编译c和cpp文件罢了。 :em02
第二个是./configure时的输出吧。某只看到好多no,大概缺很多软件包和头文件。我只编译过几个小程序,这方面Lerosua老大精通多了。 :em06


_________________
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 程序编译难题,转到本区
帖子发表于 : 2009-09-04 22:33 

注册: 2009-07-13 16:23
帖子: 213
送出感谢: 0 次
接收感谢: 0 次
请Lerosua帮忙看一下,在redhat下能编译的话,在ubuntu也一定可以,实在不想用redhat


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 程序编译难题,转到本区
帖子发表于 : 2009-09-04 22:37 
头像

注册: 2007-02-02 18:14
帖子: 30702
系统: debian sid
送出感谢: 1
接收感谢: 34
看解压出来的目录里面的readme or install,或者把源码文件防上来看看,你这个样子看都看晕了,基本都是开发包没有装了


_________________
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)


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

当前时区为 UTC + 8 小时


在线用户

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


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

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

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