移植arm httpd-2.4.3+apr-1.6.3+apr-util-1.6.1+pcre-8.38.tar.gz报错如下

CLHTC92 2018-05-24 05:45:02
按照正常编译
apr
apr-util
pcre
httpd
都没有问题
换到arm-linux-gnueabihf
apr
apr-util
pcre
都无问题

httpd有问题

设置
sudo ./configure --prefix=/usr/local/apache --with-pcre=/usr/local/pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --host=arm-linux-gnueabihf ap_cv_void_ptr_lt_long=no --enable-so --enable-cgi LDFLAGS=-lpthread --with-mpm=prefork

中途替换 x86下 gen_test_char 能继续编译
但是又卡在

htpasswd.c: In function ‘mkrecord’:
htpasswd.c:187:46: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘unsigned int’ [-Wformat=]
apr_snprintf(record, (rlen - 1), "password too long (>%"
^
/usr/local/apr/build-1/libtool --silent --mode=link arm-linux-gnueabihf-gcc -g -O2 -L/usr/local/expat/lib -lpthread -o htpasswd htpasswd.lo /usr/local/apr-util/lib/libaprutil-1.la /usr/local/apr/lib/libapr-1.la -lrt -lcrypt -ldl -lcrypt
/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_GetErrorCode'
/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetEntityDeclHandler'
/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_ParserCreate'
/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetCharacterDataHandler'
/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_ParserFree'
/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetUserData'
/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_StopParser'
/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_Parse'
/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_ErrorString'
/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetElementHandler'
collect2: error: ld returned 1 exit status
Makefile:46: recipe for target 'htpasswd' failed
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory '/home/chenlh/httpd-arm/support'
/home/chenlh/httpd-arm/build/rules.mk:72: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/chenlh/httpd-arm/support'
/home/chenlh/httpd-arm/build/rules.mk:72: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

我上网查了下 实在是解决不了,也试过下面链接中的方法还是一样的报错
https://bbs.csdn.net/topics/392191188


...全文
1747 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
nyk000 2018-07-09
  • 打赏
  • 举报
回复
arm-linux-gnueabihf 版本问题,更换gcc-linaro-arm-linux-gnueabihf-4.7 即可
迷茫的蜉蝣 2018-05-31
  • 打赏
  • 举报
回复
顶下
CLHTC92 2018-05-30
  • 打赏
  • 举报
回复
好像是ubuntu 自己下载的arm-linux-gnueabihf 版本问题。。换了一个gcc-linaro-arm-linux-gnueabihf-4.7 就成功编译了
宁南学者 2018-05-24
  • 打赏
  • 举报
回复
我也是做arm移植的,各种编译错误啊,不容易....

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧