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



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:

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).

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

There are still other stuff that needs to be done (e.g. configure the httpd.conf, write the workers2.properties). I trust that you know what you are doing :-)

Han Ming

On Wednesday, October 2, 2002, at 02:54 PM, Cyrill R|ttimann wrote:

Hi,

I have problems with compiling the jk2 module for apache 1.3 on 10.2. While running ant native, I get the following output:



[so] Compiling 18 out of 18
Compiling /Users/cyrill/jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c
[so] Compile failed 1 /Users/cyrill/jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c
[so] Command:libtool --mode=compile cc -c -o /Users/cyrill/jakarta-tomcat-connectors/jk/build/jk/apache13/apache- 1.3/mod_jk.o -I/Users/cyrill/jakarta-tomcat-connectors/jk/native/common -I${build.compiler.base}/include -I/usr/sbin/include -I/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/../ include -g -W /Users/cyrill/jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c
[so] Output:

[so] StdErr:
[so] /usr/bin/libtool: unknown option character `-' in: --mode=compile
[so] Usage: /usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT]
[so] Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]

BUILD FAILED
file:/Users/cyrill/jakarta-tomcat-connectors/jk/native/build.xml:222: Compile failed /Users/cyrill/jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c

Total time: 2 seconds


It seems thate the script generates wrong arguments for the libtool on MacOS X?


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.
_______________________________________________
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: 
 >Compiling jk2 for Tomcat 4.1 (From: Cyrill Rüttimann <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.