0

我正在 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
4

1 回答 1

0

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

-fpic

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

于 2020-01-06T11:21:24.237 回答