Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling jk2 for Tomcat 4.1



On Freitag, Oktober 4, 2002, at 03:23 Uhr, Han Ming Ong wrote:

You need GNU's libtool to do the job. Even if you succeed in compiling it, you might not get it to work yet because:

Interesting is, that you need the gnu libtool only if you compile jk2 with ant native. After integrating gnu libtool into the build process, it fails in the next step where some header files are not available. If you choose the traditional way like below you do not need the gnu libtool, but make fails. So I stuck and have not really a glue how to proceed. I have choosen the make way like described below and in the book Professional Apache Tomcat from wrox.

1. jk2 was designed to work well with Apache 2
2. jk2 is not so well tested compared to jk (I think it is still in beta).
jk2 is the default adaptor for Tomcat 4.1 and up.



Having said that, if you still want to try:
1. Go to gnu's website or its mirrors and download libtool (and libtoolize). Configure, make and install. They install in /usr/local/bin by default.
2. Temporarily make /usr/local/bin earlier than /usr/bin in your env's path
3. You can just jump to the jk dir and run buildconf.sh script to generate the 'configure' script.
4. do 'configure --help'
5. follow the instructions

- ./configure --witch-apxs=/usr/sbin/apxs
- make

mode=link cc -module -shared -L/usr/lib -lcrypt -L /Library/Java/Home/jre/lib/ -L /Library/Java/Home/lib//native_threads -o ../../../build/jk2/apache13/mod_jk2.so ../../../build/jk2/apache13/jk_channel.lo ../../../build/jk2/apache13/jk_channel_apr_socket.lo ../../../build/jk2/apache13/jk_channel_jni.lo ../../../build/jk2/apache13/jk_channel_socket.lo ../../../build/jk2/apache13/jk_channel_un.lo ../../../build/jk2/apache13/jk_config.lo ../../../build/jk2/apache13/jk_config_file.lo ../../../build/jk2/apache13/jk_endpoint.lo ../../../build/jk2/apache13/jk_env.lo ../../../build/jk2/apache13/jk_handler_logon.lo ../../../build/jk2/apache13/jk_handler_response.lo ../../../build/jk2/apache13/jk_logger_file.lo ../../../build/jk2/apache13/jk_logger_win32.lo ../../../build/jk2/apache13/jk_map.lo ../../../build/jk2/apache13/jk_md5.lo ../../../build/jk2/apache13/jk_msg_ajp.lo ../../../build/jk2/apache13/jk_mutex.lo ../../../build/jk2/apache13/jk_mutex_proc.lo ../../../build/jk2/apache13/jk_mutex_thread.lo ../../../build/jk2/apache13/jk_nwmain.lo ../../../build/jk2/apache13/jk_objCache.lo ../../../build/jk2/apache13/jk_pool.lo ../../../build/jk2/apache13/jk_pool_apr.lo ../../../build/jk2/apache13/jk_registry.lo ../../../build/jk2/apache13/jk_requtil.lo ../../../build/jk2/apache13/jk_shm.lo ../../../build/jk2/apache13/jk_signal.lo ../../../build/jk2/apache13/jk_uriEnv.lo ../../../build/jk2/apache13/jk_uriMap.lo ../../../build/jk2/apache13/jk_user.lo ../../../build/jk2/apache13/jk_vm_default.lo ../../../build/jk2/apache13/jk_workerEnv.lo ../../../build/jk2/apache13/jk_worker_ajp13.lo ../../../build/jk2/apache13/jk_worker_jni.lo ../../../build/jk2/apache13/jk_worker_lb.lo ../../../build/jk2/apache13/jk_worker_run.lo ../../../build/jk2/apache13/jk_worker_status.lo ../../../build/jk2/apache13/jk_service_apache13.lo ../../../build/jk2/apache13/mod_jk2.lo
cc: unrecognized option `-shared'
ld: -L: directory name missing
make[1]: [../../../build/jk2/apache13/mod_jk2.so] Error 1 (ignored)

- I have also switched to gcc 2.95 but the error remains.
- there are some options to configure with options to ld but I am no expert in this area

Any help in this would be great!


Regards,

Cyrill
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Compiling jk2 for Tomcat 4.1 (From: Han Ming Ong <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.