在 Solaris 服务器上构建 Apache2 时出错



我正在Solaris服务器上构建Apache2(ver - 2.4.41(。

/usr/sfw/bin/gmake

得到下面的错误:

ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[4]: *** [mod_lua.la] Error 1
gmake[4]: Leaving directory `/prodlib/ESTVN/httpd-2.4.41/modules/lua'
gmake[3]: *** [shared-build-recursive] Error 1
gmake[3]: Leaving directory `/prodlib/ESTVN/httpd-2.4.41/modules/lua'
gmake[2]: *** [shared-build-recursive] Error 1
gmake[2]: Leaving directory `/prodlib/ESTVN/httpd-2.4.41/modules'
gmake[1]: *** [shared-build-recursive] Error 1
gmake[1]: Leaving directory `/prodlib/ESTVN/httpd-2.4.41'
gmake: *** [all-recursive] Error 1

根据此答案,您需要将其添加到make命令中:

-fpic

(生成与位置无关的代码(

相关内容

  • 没有找到相关文章

最新更新