请教各位高手uClibc交叉编译apache问题
时间:2008-04-18
来源:互联网
小弟想编译一个apache 2.0,在xscale的板子上跑
用uclibc库,big-endian。
问题是到了编译的最后总会出现一大堆问题
想问下各位高手uclibc可否成功编译apache 2?
如果可以的话能否教一下配置、编译的命令行。
万分感激涕零。
附:apache编译到最后的错误:
make[2]: Entering directory `/root/work/httpd-2.0.61/support'
/root/work/httpd-2.0.61/srclib/apr/libtool --silent --mode=link --tag=CC arm-linux-gcc -g -O2 -pthread -mbig-endian -I/root/work/root/include -L/root/work/root/lib -L/usr/local/arm-linux/lib/lib -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I/root/work/httpd-2.0.61/srclib/apr/include -I/root/work/httpd-2.0.61/srclib/apr-util/include -I. -I/root/work/httpd-2.0.61/os/unix -I/root/work/httpd-2.0.61/server/mpm/prefork -I/root/work/httpd-2.0.61/modules/http -I/root/work/httpd-2.0.61/modules/filters -I/root/work/httpd-2.0.61/modules/proxy -I/root/work/httpd-2.0.61/include -I/root/work/httpd-2.0.61/modules/generators -I/root/work/httpd-2.0.61/modules/dav/main -export-dynamic -static -o htpasswd htpasswd.lo /root/work/httpd-2.0.61/srclib/pcre/libpcre.la /root/work/httpd-2.0.61/srclib/apr-util/libaprutil-0.la -lexpat /root/work/httpd-2.0.61/srclib/apr/libapr-0.la -lrt -lm -lcrypt -lnsl -lpthread -ldl
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/lib/be/crt1.o: In function `_start':
../sysdeps/arm/elf/start.S:74: undefined reference to `__libc_start_main'
../sysdeps/arm/elf/start.S:77: undefined reference to `__libc_csu_fini'
../sysdeps/arm/elf/start.S:77: undefined reference to `__libc_csu_init'
.libs/htpasswd.o: In function `main':
/root/work/httpd-2.0.61/support/htpasswd.c:537: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(apr_md5.o): In function `apr_password_validate':
/root/work/httpd-2.0.61/srclib/apr-util/crypto/apr_md5.c:711: undefined reference to `crypt_r'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(xlate.o): In function `apr_xlate_cleanup':
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:93: undefined reference to `iconv_close'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(xlate.o): In function `apr_xlate_open':
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:250: undefined reference to `iconv_open'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(xlate.o): In function `check_sbcs':
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:120: undefined reference to `iconv'
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:140: undefined reference to `iconv_close'
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:141: undefined reference to `iconv_open'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(xlate.o): In function `apr_xlate_open':
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:132: undefined reference to `iconv_close'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(xlate.o): In function `apr_xlate_conv_buffer':
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:342: undefined reference to `iconv'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(apr_cpystrn.o): In function `apr_collapse_spaces':
/root/work/httpd-2.0.61/srclib/apr/strings/apr_cpystrn.c:234: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(apr_snprintf.o): In function `apr_vformatter':
/root/work/httpd-2.0.61/srclib/apr/strings/apr_snprintf.c:738: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/strings/apr_snprintf.c:760: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/strings/apr_snprintf.c:782: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(apr_snprintf.o): In function `conv_fp':
/root/work/httpd-2.0.61/srclib/apr/strings/apr_snprintf.c:545: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(apr_strings.o): In function `apr_strtoi64':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/stdlib.h:363: undefined reference to `__strtoll_internal'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(copy.o): In function `fstat64':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/sys/stat.h:402: undefined reference to `__fxstat64'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(filestat.o): In function `apr_file_info_get_locked':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/sys/stat.h:372: undefined reference to `__fxstat'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(filestat.o): In function `apr_file_info_get':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/sys/stat.h:372: undefined reference to `__fxstat'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(filestat.o): In function `apr_stat':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/sys/stat.h:366: undefined reference to `__lxstat'
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/sys/stat.h:359: undefined reference to `__xstat'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `apr_parse_addr_port':
/root/work/httpd-2.0.61/srclib/apr/network_io/unix/sockaddr.c:241: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `strtol':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/stdlib.h:317: undefined reference to `__strtol_internal'
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/stdlib.h:317: undefined reference to `__strtol_internal'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `apr_ipsubnet_create':
/root/work/httpd-2.0.61/srclib/apr/network_io/unix/sockaddr.c:868: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `apr_ipsubnet_create':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/stdlib.h:317: undefined reference to `__strtol_internal'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `apr_ipsubnet_create':
/root/work/httpd-2.0.61/srclib/apr/network_io/unix/sockaddr.c:776: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `strtol':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/stdlib.h:317: undefined reference to `__strtol_internal'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(signals.o): In function `apr_signal_description_get':
/root/work/httpd-2.0.61/srclib/apr/threadproc/unix/signals.c:114: undefined reference to `sys_siglist'
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/root/work/httpd-2.0.61/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/work/httpd-2.0.61/support'
make: *** [all-recursive] Error 1
用uclibc库,big-endian。
问题是到了编译的最后总会出现一大堆问题
想问下各位高手uclibc可否成功编译apache 2?
如果可以的话能否教一下配置、编译的命令行。
万分感激涕零。
附:apache编译到最后的错误:
make[2]: Entering directory `/root/work/httpd-2.0.61/support'
/root/work/httpd-2.0.61/srclib/apr/libtool --silent --mode=link --tag=CC arm-linux-gcc -g -O2 -pthread -mbig-endian -I/root/work/root/include -L/root/work/root/lib -L/usr/local/arm-linux/lib/lib -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I/root/work/httpd-2.0.61/srclib/apr/include -I/root/work/httpd-2.0.61/srclib/apr-util/include -I. -I/root/work/httpd-2.0.61/os/unix -I/root/work/httpd-2.0.61/server/mpm/prefork -I/root/work/httpd-2.0.61/modules/http -I/root/work/httpd-2.0.61/modules/filters -I/root/work/httpd-2.0.61/modules/proxy -I/root/work/httpd-2.0.61/include -I/root/work/httpd-2.0.61/modules/generators -I/root/work/httpd-2.0.61/modules/dav/main -export-dynamic -static -o htpasswd htpasswd.lo /root/work/httpd-2.0.61/srclib/pcre/libpcre.la /root/work/httpd-2.0.61/srclib/apr-util/libaprutil-0.la -lexpat /root/work/httpd-2.0.61/srclib/apr/libapr-0.la -lrt -lm -lcrypt -lnsl -lpthread -ldl
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/lib/be/crt1.o: In function `_start':
../sysdeps/arm/elf/start.S:74: undefined reference to `__libc_start_main'
../sysdeps/arm/elf/start.S:77: undefined reference to `__libc_csu_fini'
../sysdeps/arm/elf/start.S:77: undefined reference to `__libc_csu_init'
.libs/htpasswd.o: In function `main':
/root/work/httpd-2.0.61/support/htpasswd.c:537: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(apr_md5.o): In function `apr_password_validate':
/root/work/httpd-2.0.61/srclib/apr-util/crypto/apr_md5.c:711: undefined reference to `crypt_r'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(xlate.o): In function `apr_xlate_cleanup':
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:93: undefined reference to `iconv_close'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(xlate.o): In function `apr_xlate_open':
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:250: undefined reference to `iconv_open'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(xlate.o): In function `check_sbcs':
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:120: undefined reference to `iconv'
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:140: undefined reference to `iconv_close'
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:141: undefined reference to `iconv_open'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(xlate.o): In function `apr_xlate_open':
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:132: undefined reference to `iconv_close'
/root/work/httpd-2.0.61/srclib/apr-util/.libs/libaprutil-0.a(xlate.o): In function `apr_xlate_conv_buffer':
/root/work/httpd-2.0.61/srclib/apr-util/xlate/xlate.c:342: undefined reference to `iconv'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(apr_cpystrn.o): In function `apr_collapse_spaces':
/root/work/httpd-2.0.61/srclib/apr/strings/apr_cpystrn.c:234: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(apr_snprintf.o): In function `apr_vformatter':
/root/work/httpd-2.0.61/srclib/apr/strings/apr_snprintf.c:738: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/strings/apr_snprintf.c:760: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/strings/apr_snprintf.c:782: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(apr_snprintf.o): In function `conv_fp':
/root/work/httpd-2.0.61/srclib/apr/strings/apr_snprintf.c:545: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(apr_strings.o): In function `apr_strtoi64':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/stdlib.h:363: undefined reference to `__strtoll_internal'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(copy.o): In function `fstat64':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/sys/stat.h:402: undefined reference to `__fxstat64'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(filestat.o): In function `apr_file_info_get_locked':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/sys/stat.h:372: undefined reference to `__fxstat'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(filestat.o): In function `apr_file_info_get':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/sys/stat.h:372: undefined reference to `__fxstat'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(filestat.o): In function `apr_stat':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/sys/stat.h:366: undefined reference to `__lxstat'
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/sys/stat.h:359: undefined reference to `__xstat'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `apr_parse_addr_port':
/root/work/httpd-2.0.61/srclib/apr/network_io/unix/sockaddr.c:241: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `strtol':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/stdlib.h:317: undefined reference to `__strtol_internal'
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/stdlib.h:317: undefined reference to `__strtol_internal'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `apr_ipsubnet_create':
/root/work/httpd-2.0.61/srclib/apr/network_io/unix/sockaddr.c:868: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `apr_ipsubnet_create':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/stdlib.h:317: undefined reference to `__strtol_internal'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `apr_ipsubnet_create':
/root/work/httpd-2.0.61/srclib/apr/network_io/unix/sockaddr.c:776: undefined reference to `__ctype_b_loc'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(sockaddr.o): In function `strtol':
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/include/stdlib.h:317: undefined reference to `__strtol_internal'
/root/work/httpd-2.0.61/srclib/apr/.libs/libapr-0.a(signals.o): In function `apr_signal_description_get':
/root/work/httpd-2.0.61/srclib/apr/threadproc/unix/signals.c:114: undefined reference to `sys_siglist'
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/root/work/httpd-2.0.61/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/work/httpd-2.0.61/support'
make: *** [all-recursive] Error 1
作者: mmkiller 发布时间: 2008-04-18
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28