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

From: Date: Sun, 02 Nov 2003 20:16:17 +0000
Subject: #26082 [Opn]: Failing beacuse ofundefined reference to `php_pcre_version'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49853@lists.php.net to get a copy of this message
 ID:               26082
 User updated by:  alietss at yahoo dot com
 Reported By:      alietss at yahoo dot com
 Status:           Open
 Bug Type:         Compile Failure
 Operating System: Linux RedHat 9
 PHP Version:      5CVS-2003-11-02 (dev)
 New Comment:

Ok, I cleaned up a little the configure line to fit with php5 configure
arguments, but the error is still there, I'm missing something here or
what, I guess this is a problem related to virtual builds enviroments,
as with rpms, here the configure
%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 \
	--with-jpeg-dir=%{_prefix} \
	--with-openssl \
	--with-png \
	--with-pspell \
	--with-regex=php \
	--with-xml \
	--with-expat-dir=%{_prefix} \
        --with-xmlrpc=shared \
        --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-xsl=shared,%{_prefix} \
	--with-unixODBC=shared \
	--enable-memory-limit \
	--enable-bcmath \
	--enable-shmop \
	--enable-calendar \
	--enable-dbx \
	--enable-dio \
	--enable-mcal \
	--enable-mbstring \


Previous Comments:
------------------------------------------------------------------------

[2003-11-02 14:17:30] alietss at yahoo dot com

Interesting detail, this just happens on a rpm build, in a normal build
compiles ok

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

[2003-11-02 13:39:42] 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)



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


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


Thread (7 messages)

« previous php.bugs (#49853) next »