linux中编译出现问题

shadylplplp shadylplplp 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
先是./configure

root@ubuntu:~/Desktop/spro-4.0# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/root/Desktop/spro-4.0/auxdir/missing: Unknown `--run' option
Try `/root/Desktop/spro-4.0/auxdir/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for gcc... gcc
checking for C compiler default output... 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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for AIX... no
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for library containing strerror... none required
checking for function prototypes... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for size_t... yes
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 8
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdlib.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for string.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for vprintf... yes
checking for _doprnt... no
./configure: line 6057: CF_GCC_WARNINGS: command not found
checking if malloc debugging is wanted... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating auxdir/Makefile
config.status: creating test/Makefile
config.status: creating test/ref/Makefile
config.status: creating test/dat/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands


然后make
root@ubuntu:~/Desktop/spro-4.0# make
make all-recursive
make[1]: Entering directory '/root/Desktop/spro-4.0'
Making all in doc
Making all in auxdir
make[2]: Entering directory '/root/Desktop/spro-4.0/auxdir'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Desktop/spro-4.0/auxdir'
Making all in test
make[2]: Entering directory '/root/Desktop/spro-4.0/test'
Making all in ref
make[3]: Entering directory '/root/Desktop/spro-4.0/test/ref'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/Desktop/spro-4.0/test/ref'
Making all in dat
make[3]: Entering directory '/root/Desktop/spro-4.0/test/dat'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/Desktop/spro-4.0/test/dat'
make[3]: Entering directory '/root/Desktop/spro-4.0/test'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/Desktop/spro-4.0/test'
make[2]: Leaving directory '/root/Desktop/spro-4.0/test'
make[2]: Entering directory '/root/Desktop/spro-4.0'
gcc -g -O2 -o scopy scopy.o getopt.o getopt1.o -lm -L. -lspro
./libspro.a(misc.o): In function `spf_buf_normalize':
/root/Desktop/spro-4.0/misc.c:276: undefined reference to `sqrt'
/root/Desktop/spro-4.0/misc.c:185: undefined reference to `sqrt'
./libspro.a(misc.o): In function `set_lifter':
/root/Desktop/spro-4.0/misc.c:402: undefined reference to `sin'
./libspro.a(misc.o): In function `sig_normalize':
/root/Desktop/spro-4.0/misc.c:425: undefined reference to `sqrt'
./libspro.a(misc.o): In function `set_sig_win':
/root/Desktop/spro-4.0/misc.c:458: undefined reference to `cos'
/root/Desktop/spro-4.0/misc.c:473: undefined reference to `cos'
/root/Desktop/spro-4.0/misc.c:473: undefined reference to `cos'
/root/Desktop/spro-4.0/misc.c:465: undefined reference to `cos'
collect2: error: ld returned 1 exit status
Makefile:307: recipe for target 'scopy' failed
make[2]: *** [scopy] Error 1
make[2]: Leaving directory '/root/Desktop/spro-4.0'
Makefile:386: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/Desktop/spro-4.0'
Makefile:202: recipe for target 'all' failed
make: *** [all] Error 2


make就报错了。。。 好像configure就有错了

目录和里面的东西已经设置成777了 所以不会是权限问题

这是在linux中安装一个叫spro的东西
http://www.irisa.fr/metiss/guig/spro/install.html
按照官网的教程 下载4.0的安装之后出现的问题
实在是不懂c和c++
百度了半天也搞不懂为什么错。。。

请求大佬们帮帮忙 谢谢了!
...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
shadylplplp
其它技术问题 3,881 成员 9,044 内容