php4-4.3.4_6 w/ mhash + apache-modssl broken for 5.2-current
keoki seu
keoki at imperfectly.physics.wm.edu
Mon Mar 8 07:34:51 PST 2004
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 at 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 at 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
More information about the freebsd-ports
mailing list