#26082 [NEW]: Failing beacuse ofundefined reference to `php_pcre_version'

From: Date: Sun, 02 Nov 2003 18:39:42 +0000
Subject: #26082 [NEW]: Failing beacuse ofundefined reference to `php_pcre_version'
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49849@lists.php.net to get a copy of this message
From:             alietss at yahoo dot com
Operating system: Linux RedHat 9
PHP version:      5CVS-2003-11-02 (dev)
PHP Bug Type:     Compile Failure
Bug description:  Failing beacuse ofundefined reference to `php_pcre_version'

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)


-- 
Edit bug report at http://bugs.php.net/?id=26082&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26082&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26082&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26082&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26082&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26082&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26082&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26082&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26082&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26082&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26082&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26082&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26082&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26082&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26082&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26082&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26082&r=float


Thread (7 messages)

« previous php.bugs (#49849) next »