php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39724 Build php cli is broken
Submitted: 2006-12-04 05:40 UTC Modified: 2006-12-05 23:38 UTC
From: elkner at cs dot uni-magdeburg dot de Assigned: tony2001 (profile)
Status: Closed Package: PCRE related
PHP Version: 5.2.0 OS: Linux
Private report: No CVE-ID: None
 [2006-12-04 05:40 UTC] elkner at cs dot uni-magdeburg dot de
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-04 17:33 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

If the snapshot does not work, could you please try compiling 
pcre as a non-shared extension and see if that makes it work.
 [2006-12-04 21:35 UTC] elkner at cs dot uni-magdeburg dot de
Done - problem stays the same:
/export/scratch/build/php5.2-200612041730/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/php5.2-200612041730/ext/spl/spl_iterators.c:1015: undefined reference to `pcre_get_compiled_regex_cache'
ext/spl/.libs/spl_iterators.o(.text+0x38a8): In function `zim_spl_RegexIterator_accept':
/export/scratch/build/php5.2-200612041730/ext/spl/spl_iterators.c:1427: undefined reference to `php_pcre_match_impl'
ext/spl/.libs/spl_iterators.o(.text+0x39cc):/export/scratch/build/php5.2-200612041730/ext/spl/spl_iterators.c:1440: undefined reference to `php_pcre_split_impl'ext/spl/.libs/spl_iterators.o(.text+0x3a79):/export/scratch/build/php5.2-200612041730/ext/spl/spl_iterators.c:1447: undefined reference to `php_pcre_replace_impl'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
 [2006-12-05 23:38 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC