..................................
configure:6405: checking for off_t
configure:6438: checking for st_rdev in struct stat
configure:6451: gcc -c -O3 -DDBUG_OFF conftest.c 1>&5
configure:6472: checking whether time.h and sys/time.h may both be included
configure:6486: gcc -c -O3 -DDBUG_OFF conftest.c 1>&5
configure:6507: checking whether struct tm is in sys/time.h or time.h
configure:6520: gcc -c -O3 -DDBUG_OFF conftest.c 1>&5
configure:6543: checking size of char
configure:6562: gcc -o conftest -O3 -DDBUG_OFF -rdynamic conftest.c -lpthread -lz -lcrypt -lnsl -lm -lpthread 1>&5
configure: failed program was:
#line 6551 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(char));
exit(0)
}
...................................
以下为configur文件的6551行后内容
#line 6551 "configure"
#include "confdefs.h" ---本行为6551行
#include <stdio.h>
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(char));
exit(0);
}
..................................
我编译不成功的原因是什么哪?是不是缺少confdefs.h文件?或是其他原因?
系统提示的文件libm.a我使用locate命令查找在/usr/lib下面是有的,我做了一个copy到/lib下面
再试还是提示不行!
请大侠指教//3x
|