这问题算是奇葩吗

jemofh159 2013-01-14 04:49:26
x86上一切正常
移植到6410上出现下面题

前端网页请求cgi时返回502 bad gateway
boa 报:cgi_header: unable to find LFLF

问题回溯:
process_cgi_header函数里面,打印buf的内容即req->header_line为空
process_requests->read_from_pipe->bytes_read=read(req->data_fd)=0
看起来是cgi里面 printf的内容没有写到管道。

但单独执行cgi时printf输出内容到终端:
Content-type: text/html

[{0}]

交叉编译时遇到这种问题
arm-none-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
arm-none-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc

...全文
143 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
bbjbepzz 2013-01-15
  • 打赏
  • 举报
回复
木有见过这么种情况
zhangweitc123 2013-01-15
  • 打赏
  • 举报
回复
看不懂,求解释
jemofh159 2013-01-15
  • 打赏
  • 举报
回复
已解决,注意web调用CGI时的身份。

2,204

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 CGI
社区管理员
  • CGI社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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