From owner-freebsd-questions Sun Nov 3 1:52:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBF7D37B401 for ; Sun, 3 Nov 2002 01:52:48 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E66F743F2A for ; Sun, 3 Nov 2002 01:52:47 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gA39qgMO007363 for ; Sun, 3 Nov 2002 09:52:42 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gA39qaU0007362 for freebsd-questions@FreeBSD.ORG; Sun, 3 Nov 2002 09:52:36 GMT Date: Sun, 3 Nov 2002 09:52:36 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: PTHREADS install on 4.7 Message-ID: <20021103095236.GC6919@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <012a01c28313$83d225c0$6501a8c0@C2KTISISWIN> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <012a01c28313$83d225c0$6501a8c0@C2KTISISWIN> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-13.9 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05, USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Nov 03, 2002 at 12:32:13AM -0800, Peter Black wrote: > I have been running into problems getting Apache 2.0.43 to work with PHP > 4.2.3 as a module. The following is the error I get ... > > "Cannot load /usr/local/APACHE/modules/libphp4.so into server: > /usr/local/APACHE/modules/libphp4.so: Undefined symbol > "pthread_getspecific" > > Having said that, I did my research and found that many have come across > the same error and managed to get passed it by installing pthreads. This > is where my question comes in. I installed(?) pthreads and I still get > the same error. Perhaps I am not installing it globally, but rather, > locally (/usr/local/PTHREADS). How do I install pthreads system wide? pthread_getspecific() is a standard POSIX.1 function that comes with FreeBSD already. In general, to use pthreads in programs, all that is needed is to compile using the '-pthreads' flag to cc(1). If you compile from ports, all that sort of thing should be set up correctly for you. You can install mod_php4 with apache2 from ports by: cd /usr/ports/www/mod_php4 make -DWITH_APACHE2 install Note too that you may occasionally need to rebuild mod_php4 if you update apache2. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message