From owner-freebsd-ports@FreeBSD.ORG Mon Mar 8 07:34:51 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FD0816A4CE for ; Mon, 8 Mar 2004 07:34:51 -0800 (PST) Received: from imperfectly.physics.wm.edu (imperfectly.physics.wm.edu [128.239.3.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E12F343D1F for ; Mon, 8 Mar 2004 07:34:50 -0800 (PST) (envelope-from keoki@imperfectly.physics.wm.edu) Received: from keoki by imperfectly.physics.wm.edu with local (Exim 3.36 #1 (Debian)) id 1B0MmA-0004KV-00; Mon, 08 Mar 2004 10:34:42 -0500 Date: Mon, 8 Mar 2004 10:34:42 -0500 From: keoki seu To: Scott Lambert Message-ID: <20040308153442.GA16535@imperfectly.physics.wm.edu> Mail-Followup-To: Scott Lambert , freebsd-ports@freebsd.org References: <20040303155652.GA20918@imperfectly.physics.wm.edu> <20040308005118.GB1882@www.lambertfam.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040308005118.GB1882@www.lambertfam.org> User-Agent: Mutt/1.5.5.1+cvs20040105i cc: freebsd-ports@freebsd.org Subject: Re: php4-4.3.4_6 w/ mhash + apache-modssl broken for 5.2-current X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2004 15:34:51 -0000 On Sun, Mar 07, 2004 at 07:51:19PM -0500, Scott Lambert wrote: > I don't think the MHASH option has anything to do with this problem. > > I've been having problems with php since I upgraded last night and > I don't use the MHASH option. I have a feeling that if I could get > libpthread out of the mix it would run. > > pkgtools.conf: > 'lang/php4' => 'BATCH=YES -DWITH_BZIP2 -DWITH_CTYPE -DWITH_DOMXML -DWITH_ > GD -DWITH_GETTEXT -DWITH_ICONV -DWITH_IMAP -DWITH_MCAL -DWITH_MCRYPT -DWITH_MIME > -DWITH_MYSQL -DWITH_OPENLDAP -DWITH_OPENSSL -DWITH_PCRE -DWITH_POSIX -DWITH_PSP > ELL -DWITH_SESSION -DWITH_SOCKETS -DWITH_SYSVSEM -DWITH_SYSVSHM -DWITH_TOKENIZER > -DWITH_XML -DWITH_ZLIB', > > > I think it has to do with the threading: > # ldd /usr/local/libexec/apache/libphp4.so > ... > libpthread.so.1 => /usr/lib/libpthread.so.1 (0x28ad2000) > Then perhaps mhash pulls in libpthread? We have a machine here built with (from pkgtools.conf): 'lang/php4' => 'BATCH=yes WITH_IMAP_SSL=1 WITHOUT_X11=1 WITH_POSTGRESQL=1 WITH_CURL=1 WITH_FTP=1 WITH_ZLIB=1 WITH_MYSQL=1 WITH_MCRYPT=1 WITH_IMAP=1 WITH_OPENLDAP=1 WITH_GD=1 WITH_PDFLIB=1 WITH_OPENSSL=1', This machine works fine with apache 1.3-mod_ssl+php. This is on: FreeBSD envy.sin.wm.edu 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Tue Mar 2 08:07:14 EST 2004 keoki@envy.sin.wm.edu:/usr/obj/usr/src/sys/envy i386 # ldd /usr/local/libexec/apache/libphp4.so does not show pthread at all. Maybe one of your options pulls in pthread, like mhash does. To figure out which one pulled in pthread, i had to keep changing options and rebuilding php until i found the option where php caused apache to segfault. Interestingly enough, we also have a machine here running 5-current: FreeBSD original.sin.wm.edu 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Fri Mar 5 11:27:05 EST 2004 keoki@original.sin.wm.edu:/usr/obj/usr/src/sys/sin i386 with apache2(worker)+ssl+php built with: 'lang/php4' => 'WITH_IMAP_SSL=1 WITHOUT_X11=1 WITH_APACHE2=1 WITHOUT_MYSQL=1 WITH_POSTGRESQL=1 WITH_CURL=1 WITH_FTP=1 WITH_ZLIB=1 WITH_MCRYPT=1 WITH_IMAP=1 WITH_OPENLDAP=1 WITH_GD=1 WITH_PDFLIB=1 WITH_OPENSSL=1', and # ldd /usr/local/libexec/apache2/libphp4.so ... libpthread.so.1 => /usr/lib/libpthread.so.1 (0x288f4000) This setup works for us. we haven't seen any segfaults or had any trouble with it. keoki