Edit report at http://bugs.php.net/bug.php?id=51957&edit=1

 ID:               51957
 Comment by:       rs at bytecamp dot net
 Reported by:      rs at bytecamp dot net
 Summary:          unable to build filter-extension shared
 Status:           To be documented
 Type:             Bug
 Package:          *Compile Issues
 Operating System: FreeBSD 7.1-RELEASE-p11
 PHP Version:      5.2.13

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2010-05-31 16:02:05] [email protected]

It can't and should not be build shared.

------------------------------------------------------------------------
[2010-05-31 15:47:58] rs at bytecamp dot net

Description:
------------
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 \





------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51957&edit=1

Reply via email to