Date: Mon, 8 Mar 2004 10:34:42 -0500 From: keoki seu <keoki@imperfectly.physics.wm.edu> To: Scott Lambert <lambert@lambertfam.org> Cc: freebsd-ports@freebsd.org Subject: Re: php4-4.3.4_6 w/ mhash + apache-modssl broken for 5.2-current Message-ID: <20040308153442.GA16535@imperfectly.physics.wm.edu> In-Reply-To: <20040308005118.GB1882@www.lambertfam.org> References: <20040303155652.GA20918@imperfectly.physics.wm.edu> <20040308005118.GB1882@www.lambertfam.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040308153442.GA16535>