From: elkner at cs dot uni-magdeburg dot de
Operating system: Linux
PHP version: 5.2.0
PHP Bug Type: PCRE related
Bug description: Build php cli is broken
Description:
------------
The cli build is broken because of a missing pcre.lo
Reproduce code:
---------------
./configure \
--prefix=${PROTO}/opt/php \
--disable-static \
--enable-shared \
\
--enable-cli \
--disable-cgi \
--enable-discard-path \
--enable-path-info-check \
\
--enable-debug \
--enable-safe-mode \
--enable-magic-quotes \
--disable-rpath \
--enable-short-tags \
--disable-ipv6 \
\
--enable-libxml \
--enable-bcmath=shared \
--enable-calendar=shared \
--enable-ctype=shared \
--enable-dba=shared \
--enable-dbase=shared \
--enable-dom=shared \
--enable-exif=shared \
--enable-filepro=shared \
--enable-filter=shared \
--enable-ftp=shared \
--enable-gd-native-ttf=shared \
--enable-gd-jis-conv=shared \
--enable-hash=shared \
--enable-json=shared \
--enable-mbstring=shared \
--enable-mbregex=shared \
--enable-embedded-mysqli=no \
--enable-pdo=shared \
--enable-posix=shared \
--enable-reflection=shared \
--enable-session=shared \
--enable-shmop=shared \
--enable-shared=simplexml \
--enable-soap=shared \
--enable-sockets=shared \
--enable-spl=shared \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-tokenizer=shared \
--disable-wddx \
--enable-xml=shared \
--enable-xmlreader=shared \
--enable-xmlwriter=shared \
--enable-zip=shared \
\
--enable-inline-optimization \
--enable-memory-limit \
--enable-zend-multibyte \
\
--with-apxs2=${ROOT4BUILD}/${APACI_BASE}/bin/apxs \
--with-config-file-path=/etc \
--with-exec-dir \
--with-libxml-dir=${ROOT4BUILD}/usr \
--with-openssl=shared,${ROOT4BUILD}/usr \
--with-openssl-dir=${ROOT4BUILD}/usr \
--with-zlib=shared,${ROOT4BUILD}/usr \
--with-zlib-dir=${ROOT4BUILD}/usr \
--with-bz2=shared,${ROOT4BUILD}/usr \
--without-cpdflib \
--with-jpeg-dir=${ROOT4BUILD}/usr \
--with-tiff-dir=${ROOT4BUILD}/usr \
--without-curl \
--without-curl-wrappers \
--without-qdbm \
--with-gdbm=${ROOT4BUILD}/usr \
--with-db4=${ROOT4BUILD}/usr \
--with-inifile \
--with-flatfile \
--with-fam=shared \
--with-gd=shared \
--with-png-dir=${ROOT4BUILD}/usr \
--with-xpm-dir=${ROOT4BUILD}/usr \
--without-ttf \
--with-freetype-dir=${ROOT4BUILD}/usr \
--with-t1lib=${ROOT4BUILD}/usr \
--with-gettext=shared,/usr \
--without-gmp \
--with-iconv=shared \
--without-imap \
--without-mime-magic \
--with-mysql=shared,${ROOT4BUILD}/usr \
--with-mysql-sock=/var/run/mysql.sock \
--with-pdo-mysql=shared,${ROOT4BUILD}/usr \
--without-pdo-sqlite \
--with-ncurses=shared,${ROOT4BUILD}/usr \
--with-pcre-regex=shared,${ROOT4BUILD}/usr \
--without-sqlite \
--without-readline \
--without-pear \
--with-regex=php \
--with-xsl=shared,${ROOT4BUILD}/usr \
\
--enable-dbx=shared \
--enable-dio=shared \
--enable-maintainer-zts
Expected result:
----------------
sapi/cli/php
Actual result:
--------------
ext/filter/.libs/logical_filters.o(.text+0x11bf): In function
`php_filter_validate_regexp':
/export/scratch/build/php-5.2.0/ext/filter/logical_filters.c:463:
undefined reference to `pcre_get_compiled_regex'
ext/filter/.libs/logical_filters.o(.text+0x1439): In function
`php_filter_validate_email':
/export/scratch/build/php-5.2.0/ext/filter/logical_filters.c:512:
undefined reference to `pcre_get_compiled_regex'
ext/spl/.libs/spl_iterators.o(.text+0x26e7): In function
`spl_dual_it_construct':
/export/scratch/build/php-5.2.0/ext/spl/spl_iterators.c:1014: undefined
reference to `pcre_get_compiled_regex_cache'
ext/spl/.libs/spl_iterators.o(.text+0x3878): In function
`zim_spl_RegexIterator_accept':
/export/scratch/build/php-5.2.0/ext/spl/spl_iterators.c:1421: undefined
reference to `php_pcre_match_impl'
ext/spl/.libs/spl_iterators.o(.text+0x399c):/export/scratch/build/php-5.2.0/ext/spl/spl_iterators.c:1434:
undefined reference to `php_pcre_split_impl'
ext/spl/.libs/spl_iterators.o(.text+0x3a49):/export/scratch/build/php-5.2.0/ext/spl/spl_iterators.c:1441:
undefined reference to `php_pcre_replace_impl'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
--
Edit bug report at http://bugs.php.net/?id=39724&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=39724&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=39724&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=39724&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39724&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=39724&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39724&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39724&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39724&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39724&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39724&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=39724&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=39724&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39724&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39724&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39724&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39724&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39724&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39724&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39724&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39724&r=mysqlcfg