Could you elaborate a little. What makefile? I'm talking about building it with ant. Should I not be? Thanks, -Mark
-----Original Message----- From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 11:56 AM To: Tomcat Users List Subject: RE: mod_jk2 - jni linking problems Look in the Apache's library directory. 2.0.43 of apache has a new name for the apr library...so that the linker won't find libapr.so...then adjust the makefile accordingly. : -----Original Message----- : From: Faine, Mark [mailto:[EMAIL PROTECTED]] : Sent: Monday, January 13, 2003 12:45 PM : To: '[EMAIL PROTECTED]' : Subject: mod_jk2 - jni linking problems : : : Solaris 8 : Apache 2.0.43 : Tomcat 4.0.6 : : When I attempt to compile mod_jk using "ant native" the mod_jk.so : compiles but at jni section I get the following error: : : jni: : [so] Compiling 0 out of 37 : Linking : /export/home/temp/appserv/jakarta-tomcat-connectors-4.0.6-src/ : jk/build/jk2/j : ni/libjkjni.so : .... a lot of output : ... : .... : [so] StdErr: : [so] /usr/local/sparc-sun-solaris2.8/bin/ld: cannot find -lapr : [so] collect2: ld returned 1 exit status : : BUILD FAILED : file:/export/home/temp/appserv/jakarta-tomcat-connectors-4.0.6 : -src/jk/native : 2/build.xml:341: Link failed libjkjni : : I'm guessing -lapr is apr library, which does exist and is in my : libraries search path?? : : Any help would be appreciated. : : I assumed I might still be able (in the mean time) to get it working : without libjkjni.so so I attempted to do so. Everything seems to be : operating correctly except that when I attempt to access a tomcat : resource through apache I get the following error. : : If I try it as with socket: : : [Mon Jan 13 11:15:01 2003] [error] channelUn.connect() : connect failed 2 : No such file or directory : [Mon Jan 13 11:15:01 2003] [error] ajp13.connect() failed : ajp13:/usr/local/tomcat/logs/jk2.socket : [Mon Jan 13 11:15:01 2003] [error] ajp13.service() failed to connect : endpoint errno=2 No such file or directory : [Mon Jan 13 11:15:01 2003] [error] ajp13.service() Error forwarding : ajp13:/usr/local/tomcat/logs/jk2.socket 1 1 : [Mon Jan 13 11:15:01 2003] [error] mod_jk.handler() Error : connecting to : tomcat 120000 : [Mon Jan 13 11:16:25 2003] [notice] caught SIGTERM, shutting down : : If I try it with a local port: : : [Mon Jan 13 11:08:24 2003] [error] channelSocket.open() connect failed : 127.0.0.1:8009 146 Connection refused : [Mon Jan 13 11:08:24 2003] [error] ajp13.connect() failed : ajp13:localhost:8009 : [Mon Jan 13 11:08:24 2003] [error] ajp13.service() failed to connect : endpoint errno=146 Connection refused : [Mon Jan 13 11:08:24 2003] [error] ajp13.service() Error forwarding : ajp13:localhost:8009 1 1 : [Mon Jan 13 11:08:24 2003] [error] mod_jk.handler() Error : connecting to : tomcat 120000 : [Mon Jan 13 11:08:35 2003] [error] channelSocket.open() connect failed : 127.0.0.1:8009 146 Connection refused : [Mon Jan 13 11:08:35 2003] [error] ajp13.connect() failed : ajp13:localhost:8009 : [Mon Jan 13 11:08:35 2003] [error] ajp13.service() failed to connect : endpoint errno=146 Connection refused : [Mon Jan 13 11:08:35 2003] [error] ajp13.service() Error forwarding : ajp13:localhost:8009 1 1 : [Mon Jan 13 11:08:35 2003] [error] mod_jk.handler() Error : connecting to : tomcat 120000 : [Mon Jan 13 11:14:11 2003] [notice] caught SIGTERM, shutting down : : Seems I can't win either way. : : Thanks, : -Mark : : -- : To unsubscribe, e-mail: : <mailto:tomcat-user-: [EMAIL PROTECTED]> : For : additional commands, : e-mail: <mailto:[EMAIL PROTECTED]> : -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>