Apache2的mod_jk的设计缺陷与OS X小牛 [英] Apache2 mod_jk segfaults with OS X Mavericks

查看:125
本文介绍了Apache2的mod_jk的设计缺陷与OS X小牛的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我升级到小牛队就在昨天,而不得不重新安装mod_jk的为我的发展环境。从源代码编译,这是一个有点疼痛。我发现在<一此页面 href=\"http://stackoverflow.com/questions/11711009/how-to-install-mod-jk-on-mac-os-x\">$p$pviously-asked问题在OS X上的mod_jk左右,但也有一对额外的篮球,我不得不跳进去。出于某种原因,APXS认为,GCC住在:

I upgraded to Mavericks just yesterday, and had to reinstall mod_jk for my development environment. Compiling it from source was a bit of a pain. I found this page on a previously-asked question about mod_jk on OS X, but there were a couple extra hoops I had to jump through. For some reason, apxs thinks that gcc lives at:

/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc

但是,确切的文件夹不存在;我不得不符号链接现有的 X codeDefault.xctoolchain 目录:

sudo ln -s XcodeDefault.xctoolchain/ OSX10.9.xctoolchain

然后我试图运行配置:

Then I tried running configure:

./configure CFLAGS='-arch x86_64' APXSLDFLAGS='-arch x86_64' --with-apxs=/usr/sbin/apxs

不过,配置失败,因为它找不到&LT;&stdio.h中GT; ,所以我的符号链接OS X 10.9的工具链像这样:

However, configure failed because it couldn't find <stdio.h>, so I symlinked the OS X 10.9 toolchain as so:

sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/ /usr/include

我能够然后通过运行 sudo的编译和安装模块使得在Apache-2.0子目录中安装-f Makefile.apxs 。然而,当我通过须藤apachectl中启动Apache的启动时,立即用段错误崩溃:

I was able to then compile and install the module by running sudo make install -f Makefile.apxs in the apache-2.0 subdirectory. However, when I started up Apache via sudo apachectl start, it immediately crashes with a segfault:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib              0x00007fff875fb866 __pthread_kill + 10
1   libsystem_pthread.dylib             0x00007fff8b8a435c pthread_kill + 92
2   libsystem_c.dylib                   0x00007fff92480bba abort + 125
3   libsystem_c.dylib                   0x00007fff92480d31 abort_report_np + 181
4   libsystem_c.dylib                   0x00007fff924a48c5 __chk_fail + 48
5   libsystem_c.dylib                   0x00007fff924a48d5 __chk_fail_overlap + 16
6   libsystem_c.dylib                   0x00007fff924a4906 __chk_overlap + 49
7   libsystem_c.dylib                   0x00007fff924a4ad1 __strcpy_chk + 64
8   mod_jk.so                           0x0000000105a0c631 jk_map_get_int + 225
9   mod_jk.so                           0x0000000105a1f7f1 jk_get_worker_maintain_time + 33
10  mod_jk.so                           0x0000000105a17683 wc_open + 755
11  mod_jk.so                           0x0000000105a2f13f init_jk + 1151
12  mod_jk.so                           0x0000000105a28b7e jk_post_config + 1566
13  httpd                               0x000000010568b7d5 ap_run_post_config + 133
14  httpd                               0x00000001056947c7 main + 2567
15  libdyld.dylib                       0x00007fff9176e5fd start + 1

任何人都有成功编译/小牛与运行mod_jk的了吗?是否有什么我失踪或者不这样做完全正确?

Has anyone had success compiling/running mod_jk with Mavericks yet? Is there something I'm missing or not doing quite right?

推荐答案

上述错误报告针对的Tomcat 的具有提议的膏药,它很可能被很快应用。随意使用任何在这个bug描述的补丁 - 他们将所有的工作

The aforementioned bug reported against Tomcat has a proposed patch which is likely to be applied soon. Feel free to use any of the patches described in that bug -- they will all work.

这篇关于Apache2的mod_jk的设计缺陷与OS X小牛的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆