c - 在 apache2 中重新编译 mod\module

标签 c apache compiler-errors apache-modules

在 Apache 模块“mod_authn_core.c”中发现错误,并已对其进行修复,

它以最简单的.c文件形式(C代码)给出

显然我需要编译它并替换我现有的模块文件,它应该可以工作

Bug Report in Apache forums

Suggested (Working) patch to be replaced with (from the bug report)

如果有正确的知识,它应该很容易做到,我认为这个问题是通用的,并且可以肯定地帮助其他人编译不同的模组。

最佳答案

我发现 apache2 有一个内置的 mods 编译器,名为 apxs2:

sudo apxs2 -c -i mod_authn_core.c

echo “LoadModule mod_authn_core /usr/lib/apache2/modules/mod_authn_core.so” > /etc/apache2/mods-available/mod_authn_core.load

关于c - 在 apache2 中重新编译 mod\module,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25507685/

相关文章:

android - 在 Android NDK 中使用静态库时出错

apache - 在使用 apache poi 替换 Microsoft 2007 (HWPFDocument) 文档的内容时需要帮助

apache - WAMP-全局访问

apache - 如何在虚拟环境中安装 mod_wsgi

android - 启动 Android 程序时出错

ios - 错误: Invalid conversion from throwing function of type '(_) throws -> ()' to non-throwing function type '(DataSnapshot) -> Void'

c++ - 如何解决错误 "undefined reference to pso(int, double*, double*)'收集2: ld returned 1 exit status"

C 使用 write(2) 检查 fd 是否打开

C语言scanf不停止

c - 如何在c中的函数中释放分配的数组