php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26082 undefined reference to `php_pcre_version'
Submitted: 2003-11-02 13:39 UTC Modified: 2003-12-04 02:22 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:1 (25.0%)
From: alietss at yahoo dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5CVS-2003-11-02 (dev) OS: Linux RedHat 9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alietss at yahoo dot com
New email:
PHP Version: OS:

 

 [2003-11-02 13:39 UTC] alietss at yahoo dot com
Description:
------------
Hi PHP people, I'm building rpms of the php-5.0.0b2 for testing and preparing for the future upgrade, I'm using httpd-2.0.47-10, on RedHat 9, my build is failing with this error...

ext/pcre/php_pcre.o(.text+0x16a): In function `zm_info_pcre':
/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:92: undefined reference to `php_pcre_version'
ext/pcre/php_pcre.o(.text+0x55f): In function `pcre_get_compiled_regex':
/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:275: undefined reference to `php_pcre_maketables'
ext/pcre/php_pcre.o(.text+0x589):/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:279: undefined reference to `php_pcre_compile'

I have tested with differents combinations of the configure line, specially lines ralated to regex and pcre but the I get the same error. Here my configure line...

%configure \
	--cache-file=../config.cache \
	--with-config-file-path=%{_sysconfdir} \
	--with-config-file-scan-dir=%{_sysconfdir}/php.d \
	--enable-force-cgi-redirect \
	--disable-debug \
	--enable-pic \
	--disable-rpath \
	--enable-inline-optimization \
	--with-bz2 \
	--with-db4=%{_prefix} \
	--with-curl \
	--with-exec-dir=%{_bindir} \
	--with-freetype-dir=%{_prefix} \
	--with-png-dir=%{_prefix} \
	--with-gd \
	--enable-gd-native-ttf \
	--with-gdbm \
	--with-gettext \
	--with-pdflib=shared \
	--with-tiff-dir=%{_prefix} \
	--with-ncurses \
	--with-gmp \
	--with-iconv \
	--enable-xslt=shared \
	--with-jpeg-dir=%{_prefix} \
	--with-openssl \
	--with-png \
	--with-pspell \
	--with-regex \
	--with-xml \
	--with-expat-dir=%{_prefix} \
	--with-dom=shared,%{_prefix} \
        --with-dom-xslt=%{_prefix} \
	--with-dom-exslt=%{_prefix} \
        --with-xmlrpc=shared \
        --with-pcre-regex \
	--with-zlib \
	--with-layout=GNU \
	--enable-bcmath \
	--enable-exif \
	--enable-ftp \
	--enable-magic-quotes \
	--enable-safe-mode \
	--enable-sockets \
	--enable-sysvsem \
	--enable-sysvshm \
	--enable-discard-path \
	--enable-track-vars \
	--enable-trans-sid \
	--enable-yp \
	--enable-wddx \
	--without-oci8 \
	--with-pear=/usr/share/pear \
	--with-imap=shared \
	--with-imap-ssl \
	--with-kerberos \
	--with-ldap=shared \
	--with-mcal=shared,%{_prefix} \
        --with-mcrypt=shared,%{_prefix} \
	--with-mhash=shared,%{_prefix} \
        --with-mssql=shared,%{_prefix} \
	--with-mysql=shared,%{_prefix} \
%if %{oracle}
	--with-oci8=shared \
%endif
	--with-pgsql=shared \
	--with-snmp=shared,%{_prefix} \
	--with-snmp=shared \
	--enable-ucd-snmp-hack \
	--with-xslt-sablot=shared,%{_prefix} \
	--with-sablot-js=shared,%{_prefix} \
	--with-unixODBC=shared \
	--enable-memory-limit \
	--enable-bcmath \
	--enable-shmop \
	--enable-calendar \
	--enable-dbx \
	--enable-dio \
	--enable-mcal \
	--enable-mbstring \
	--enable-mbstr-enc-trans \
        --enable-mbregex \
	$*

Any ideas?

Expected result:
----------------
Compile

Actual result:
--------------
ext/pcre/php_pcre.o(.text+0x16a): In function `zm_info_pcre':
/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:92: undefined reference to `php_pcre_version'
ext/pcre/php_pcre.o(.text+0x55f): In function `pcre_get_compiled_regex':
/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:275: undefined reference to `php_pcre_maketables'
ext/pcre/php_pcre.o(.text+0x589):/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:279: undefined reference to `php_pcre_compile'
ext/pcre/php_pcre.o(.text+0x629):/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:294: undefined reference to `php_pcre_study'
ext/pcre/php_pcre.o(.text+0x8f9): In function `php_pcre_match':
/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:418: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x97d):/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:435: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x9ae):/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:437: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x9cf):/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:438: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0xa78):/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:463: undefined reference to `php_pcre_exec'
ext/pcre/php_pcre.o(.text+0xb0e):/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:480: undefined reference to `php_pcre_get_substring_list'
ext/pcre/php_pcre.o(.text+0x1aee): In function `php_pcre_replace':
/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:825: undefined reference to `php_pcre_info'
ext/pcre/php_pcre.o(.text+0x1b82):/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:838: undefined reference to `php_pcre_exec'
ext/pcre/php_pcre.o(.text+0x2b66): In function `zif_preg_split':
/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:1222: undefined reference to `php_pcre_info'
ext/pcre/php_pcre.o(.text+0x2bfe):/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:1233: undefined reference to `php_pcre_exec'
ext/pcre/php_pcre.o(.text+0x34eb): In function `zif_preg_grep':
/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:1453: undefined reference to `php_pcre_info'
ext/pcre/php_pcre.o(.text+0x35cd):/usr/src/redhat/BUILD/php-5.0.0b2/ext/pcre/php_pcre.c:1466: undefined reference to `php_pcre_exec'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.22308 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.22308 (%build)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-02 14:17 UTC] alietss at yahoo dot com
Interesting detail, this just happens on a rpm build, in a normal build compiles ok
 [2003-11-03 18:21 UTC] sniper@php.net
Cut the configure line into the shortest one that still produces the error. And possibly put the spec file available somewhere so we can actually test this ourselves.

 [2003-11-03 22:05 UTC] alietss at yahoo dot com
Hi people, I found something, if I remove the --enable-mbstring argument then builds ok, you can find the spec file at this link:
http://php.cujae.edu.cu/downloads/betas/specs/php.spec
Regards Aliet
 [2003-11-29 06:39 UTC] sniper@php.net
Once again: please provide the shortest configure script that still produces the error. And include '--disable-all' in the configure line too.


 [2003-12-04 02:22 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 22:01:28 2024 UTC