From owner-freebsd-java Mon Oct 21 16:29:25 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD4F037B401 for ; Mon, 21 Oct 2002 16:29:22 -0700 (PDT) Received: from ncsmtp03.ogw.rr.com (ncsmtp03.ogw.rr.com [24.93.67.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13B8E43E3B for ; Mon, 21 Oct 2002 16:29:22 -0700 (PDT) (envelope-from mmercer@nc.rr.com) Received: from mail4.nc.rr.com (fe4 [24.93.67.51]) by ncsmtp03.ogw.rr.com (8.12.5/8.12.2) with ESMTP id g9LNT7iZ022261; Mon, 21 Oct 2002 19:29:07 -0400 (EDT) Received: from nc.rr.com ([24.74.128.130]) by mail4.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Mon, 21 Oct 2002 19:29:28 -0400 Message-ID: <3DB48DD0.8BFC3E17@nc.rr.com> Date: Mon, 21 Oct 2002 19:29:20 -0400 From: Michael E Mercer Reply-To: mmercer@nc.rr.com X-Mailer: Mozilla 4.61 [en] (X11; U; FreeBSD 4.7-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Lucien Weller Cc: freebsd-java@freebsd.org Subject: Re: mod_jk with apache2 and tomcat4 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org from the man page below... try adding the flag -lpthread to the compile line for that shared lib. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ man pthread_mutex_unlock Formatting page, please wait.../usr/share/man/man3/pthread_mutex_unlock.3.gz: 49.8% 56.5% Done. /usr/share/man/cat3/pthread_mutex_unlock.3.gz: 56.5% PTHREAD_MUTEX_UNLOC... FreeBSD Library Functions Manual PTHREAD_MUTEX_UNLOC... NAME pthread_mutex_unlock - unlock a mutex LIBRARY Reentrant C Library (libc_r, -pthread) SYNOPSIS #include int pthread_mutex_unlock(pthread_mutex_t *mutex); DESCRIPTION If the current thread holds the lock on mutex, then the pthread_mutex_unlock() function unlocks mutex. RETURN VALUES If successful, pthread_mutex_unlock() will return zero, otherwise an error number will be returned to indicate the error. ERRORS pthread_mutex_unlock() will fail if: [EINVAL] The value specified by mutex is invalid. [EPERM] The current thread does not hold a lock on mutex. SEE ALSO pthread_mutex_destroy(3), pthread_mutex_init(3), pthread_mutex_lock(3), pthread_mutex_trylock(3) STANDARDS pthread_mutex_unlock() conforms to ISO/IEC 9945-1:1996 (``POSIX.1''). FreeBSD 4.6 July 30, 1998 FreeBSD 4.6 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Lucien Weller wrote: > Hello! > > I'm running Apache 2.0.43 and Tomcat 4.1.12 on a FreeBSD 4.3.2 system. Now I > trying to integrate the two server, but I'm have still some problems. > > I could now build the mod_jk.so from jakarta-tomcat-connectors-4.1.12-src > using ant 1.5. > > But when U try do start Apache with the newly compiled module (by adding > LoadModule jk_module modules/mod_jk.so in httpd.conf) I obtain the following > complaint from Apache: > Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf: > > Cannot load /usr/local/apache2/modules/mod_jk.so into server: > /usr/local/apache2/modules/mod_jk.so: Undefined symbol > "pthread_mutex_unlock" > > Can anybody help me? It would be very nice, because I alredy spend a lot of > time in solving the problem. > > Regards > > Lucien > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message