Building mod_jk 1.2.48 在 fedora-server 37 上失败。

huangapple go评论62阅读模式
英文:

Building mod_jk 1.2.48 fails on fedora-server 37

问题

Fedora-server37 新安装

  • 安装 httpd (2.4.57):dnf install httpd
  • 安装 mod_ssl:dnf install mod_ssl
  • 安装 httpd-devel (2.4.57)
  • 将 tomcat-connectors-1.2.48-src.tar.gz 下载到 /home/tmp
  • 解压缩 tomcat-connectors-1.2.48-src.tar.gz:tar -xvf tomcat-connectors-1.2.48-src.tar.gz
  • 安装 redhat-rpm-config:dnf install redhat-rpm-config
  • 配置:./configure -with-apxs=/usr/bin/apxs
  • 编译:make

mod_jk.so 未创建。我收到的错误信息如下:

  • /usr/bin/ld: 无法识别的选项 'specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
  • 错误:ld 返回了 1 退出状态

你能解释一下为什么会失败以及我需要做些什么不同的事情来创建 mod_jk.so 吗?

Tomcat 连接器的安装指南看起来很简单... 所以我很茫然。
非常感谢任何帮助。
TIA
Rick

我还尝试了 fedora-server38 - 相同的失败
我还尝试了 tomcat-connectors-1.2.37 - 同样的情况

英文:

Fedora-server37 new install

  • dnf install httpd (2.4.57)

  • dnf install mod_ssl

  • dnf install

  • httpd-devel (2.4.57)

  • download tomcat-connectors-1.2.48-src.tar.gz to /home/tmp

  • tar -xvf tomcat-connectors-1.2.48-src.tar.gz

  • dnf install redhat-rpm-config

  • ./configure -with-apxs=/usr/bin/apxs

  • make

mod_jk.so is not created. The error I get:

  • /usr/bin/ld: unrecognized option 'specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
  • error:ld returned 1 exit status

Can you shed some light on why this fails and what do I need to do differently to get mod_jk.so created?

The tomcat-connector installation instructions seem easy... so I'm at a loss.
Any help is greatly appreciated
TIA
Rick

I also tried fedora-server38 - same failure
I also tried tomcat-connectors-1.2.37 - same thing

答案1

得分: 0

我遇到了相同的问题。导致错误的选项位于apache-2.0/Makefile中。大约在第25行,从APXSLDFLAGS=开始,有两处出现了-Wl,-specs=...。将它们都删除后,make命令可以正常运行。

英文:

I ran into the same problem. The options that cause the error are located in apache-2.0/Makefile. Around line 25, starting with APXSLDFLAGS= there are two appearances of something with -Wl,-specs=.... Removed both of them and make could run without problems.

huangapple
  • 本文由 发表于 2023年5月6日 23:08:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/76189608.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定