|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51957 unable to build filter-extension shared
Submitted: 2010-05-31 15:47 UTC Modified: 2020-06-04 11:44 UTC
From: rs at bytecamp dot net Assigned: cmb (profile)
Status: Closed Package: Filter related
PHP Version: 5.2.13 OS: FreeBSD 7.1-RELEASE-p11
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: rs at bytecamp dot net
New email:
PHP Version: OS:


 [2010-05-31 15:47 UTC] rs at bytecamp dot net
When compiling PHP from source, it is not possible to build the "filter" extension as a shared object:

./configure [...]
checking whether to enable input filter support... yes, shared
configure: error: 
You've configured extension filter to build statically, but it
depends on extension pcre, which you've configured to build shared.
You either need to build filter shared or build pcre statically for the
build to be successful.

Test script:
./configure \
        --prefix=/some/where --with-config-file-path=/some/where/etc \
        --disable-ipv6 \
        --enable-hash \
        --enable-bcmath=shared \
        --enable-libxml=shared --enable-xml=shared \
        --with-xmlrpc=shared \
        --enable-xmlreader=shared --enable-xmlwriter=shared \
        --enable-wddx=shared --with-xsl=shared \
        --with-openssl=shared \
        --with-imap=shared \
        --with-imap-ssl \
        --enable-ftp=shared \
        --with-zlib=shared --with-bz2=shared \
        --enable-calendar=shared \
        --enable-ctype=shared \
        --with-curl=shared \
        --enable-dba=shared \
        --enable-exif=shared \
        --with-pcre-regex=shared \
        --with-gd=shared \
        --enable-filter=shared \
        --with-png-dir \
        --with-jpeg-dir \
        --with-freetype-dir \
        --enable-gd-native-ttf \
        --with-gettext=shared \
        --with-mhash=shared \
        --with-iconv=shred \
        --enable-dom=shared \
        --enable-mbstring=shared \
        --with-mcrypt=shared \
        --enable-json=shared \
        --disable-mbregex \
        --with-mysql=shared \
        --with-mysqli=shared \
        --enable-pdo=shared --with-pdo-pgsql=shared --with-pdo-mysql=shared --with-pdo-sqlite=shared \
        --with-pgsql=shared \
        --enable-posix=shared \
        --with-pspell=shared \
        --enable-session \
        --enable-simplexml=shared \
        --enable-soap=shared \
        --enable-sockets=shared \
        --with-sqlite=shared \
        --enable-sqlite-utf8 \
        --enable-tokenizer=shared \


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-31 16:02 UTC]
-Status: Open +Status: To be documented
 [2010-05-31 16:02 UTC]
It can't and should not be build shared.
 [2010-05-31 16:09 UTC] rs at bytecamp dot net
If it shouldn't/can't be built shared, then does it mean, that I have to build pcre static too? Btw. in FreeBSD's ports collection, filter has always been a shared object and in PHP >=5.3 it can also be built shared without a problem.
 [2010-12-20 15:27 UTC]
-Package: *Compile Issues +Package: Filter related
 [2020-06-04 11:44 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2020-06-04 11:44 UTC]
> in PHP >=5.3 it can also be built shared without a problem.

So I think this ticket can be closed. :)
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 26 20:03:36 2021 UTC