You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Youngho Cho <yo...@gmail.com> on 2015/11/02 04:02:09 UTC

Re: mod_jk make error with OSX 10.11.1

Hello Christopher & Rainer

Sorry for late response.

I didn't knotice that your reply becasue my email box set wrongly.

I run with configure

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

at the tomcat-connectors-1.2.41-src/native folder.

And the XCode folder shows

YounghoiMac:native youngho$ ls
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
MacOSX10.11.sdk


Still I could not build.

How can I fix it ?


Thanks,

Youngho



2015-10-29 23:00 GMT+09:00 Christopher Schultz <ch...@christopherschultz.net>:
> Rainer,
>
> On 10/29/15 5:31 AM, Rainer Jung wrote:
>> Am 29.10.2015 um 03:59 schrieb Christopher Schultz:
>>> Youngho,
>>>
>>> On 10/28/15 10:35 PM, Youngho Cho wrote:
>>>>   Just before I upgrade to OSX 10.11.1
>>>>
>>>>   And try to compile Apache mod_jk 1.2.41.
>>>>
>>>> But the make is fail.
>>>>
>>>>   YounghoiMac:native youngho$ sudo make
>>>>
>>>> Making all in common
>>>> usr/share/apr-1/build-1/libtool --silent --mode=compile
>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.11.xctoolchain/usr/bin/cc
>>>>
>>>> -I. -I/usr/include/apache2 -arch x86_64 -DHAVE_CONFIG_H -DHAVE_APR
>>>> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.Internal.sdk/usr/include/apr-1
>>>>
>>>> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.Internal.sdk/usr/include/apr-1
>>>>
>>>> -arch x86_64 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
>>>> -DDARWIN_10
>>>> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.Internal.sdk/usr/include/apr-1
>>>>
>>>> -c jk_ajp12_worker.c -o jk_ajp12_worker.lo
>>>> In file included from jk_ajp12_worker.c:26:
>>>> In file included from ./jk_ajp12_worker.h:27:
>>>> In file included from ./jk_logger.h:27:
>>>> ./jk_global.h:78:10: fatal error: 'apr_lib.h' file not found
>>>> #include "apr_lib.h"
>>>>           ^
>>>> 1 error generated.
>>>> make[1]: *** [jk_ajp12_worker.lo] Error 1
>>>> make: *** [all-recursive] Error 1
>>>>
>>>> -----------
>>>>
>>>>   How can I fixed it ?
>>>>
>>>>   Someone also have same trouble
>>>>
>>>>
>>>> https://stackoverflow.com/questions/33402932/tomcat-connectors-mod-jk-make-error#_=_
>>>>
>>>
>>> When you ran "configure", what options did you choose?
>>
>> In addition to that question: when building mod_jk for the Apache web
>> server 2.x, it uses the APR libraries, which are also used for the
>> Apache web server. During the build it needs the header files for APR.
>> Sometimes they must be installed with some developer package for APR.
>> From the above it looks like your APR headers files (like apr_lib.h)
>> should be located in
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.Internal.sdk/usr/include/apr-1
>> but somehow they are not.
>
> This can happen when XCode is updated and the XCode Command-Line tools
> are not upgraded at the same time.
>
> This can also happen if OS X / XCode is feeling cranky, and just wants
> to break everything because it thinks it's going to be fun. I've had to
> deal with OS/XCode upgrades moving things around and generally breaking
> command-line-based builds. It's really the only thing that drives me
> crazy about OS X.
>
> Try looking in
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
> to see what directories *do* exist. You might have to re-run "configure"
> with some additional paths in your CFLAGS.
>
> -chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org