LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1006|回复: 3

error occured when configuring findutils-4.1

[复制链接]
发表于 2003-4-25 15:24:34 | 显示全部楼层 |阅读模式
I was doing as told by manual when the following err occured:

[lfs@localhost findutils-4.1]$ CPPFLAGS="-Dre_max_failures=\
re_max_failures2" LDFLAGS="-static"   ./configure --prefix=/mnt/lfs/static
loading cache ./config.cache
checking for gcc... gcc-s
checking whether we are using GNU C... no
checking how to run the C preprocessor... /lib/cpp
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether make sets $MAKE... yes
checking for AIX... no
checking for minix/config.h... no
checking for POSIXized ISC... no
checking for -lsun... no
checking for fcntl.h... yes
checking for string.h... yes
checking for limits.h... yes
checking for unistd.h... yes
checking whether cross-compiling... yes
checking for ANSI C header files... no
checking whether sys/types.h defines makedev... no
checking for sys/mkdev.h... no
checking for sys/sysmacros.h... yes
checking for dirent.h that defines DIR... no
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for -lx... no
checking whether stat file-mode macros are broken... no
checking for sys/wait.h that is POSIX.1 compatible... no
checking how to get filesystem type... 4.3BSD
checking for uid_t in sys/types.h... yes
checking for size_t... yes
checking for pid_t... yes
checking for ino_t... yes
checking for dev_t... yes
checking for st_blocks in struct stat... no
checking for st_rdev in struct stat... no
checking whether struct tm is in sys/time.h or time.h... sys/time.h
checking for tm_zone in struct tm... no
checking for tzname... no
checking for working const... no
checking for memcmp... no
checking for memset... no
checking for mktime... no
checking for stpcpy... no
checking for strdup... no
checking for strftime... no
checking for strspn... no
checking for strstr... no
checking for strtol... no
checking for fchdir... no
checking for getcwd... no
checking for strerror... no
checking for -lintl... no
checking for strftime... (cached) no
checking for vprintf... no
checking for _doprnt... no
checking for working alloca.h... no
checking for alloca... no
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... 0
checking for -lsun... (cached) no
checking for -lseq... no
checking for getmntent... no
checking whether closedir returns void... configure: error: can not run test program while cross compiling
[lfs@localhost findutils-4.1]$

what is the matter?
发表于 2003-4-26 04:21:21 | 显示全部楼层
你试试上面的命令里,不要换行,自己在一行打一下。
有时候拷贝不行,会贴进去空字符,影响编译。
不过这样的时候比较少。
发表于 2003-4-27 13:30:28 | 显示全部楼层
看起来应该是什么东西,在前面的部分缺少了。
发表于 2003-4-27 14:31:46 | 显示全部楼层
checking for ANSI C header files... no
发现问题了没有?主系统里gcc的头文件没有装。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表