php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25538 'undefined reference' with RPM build
Submitted: 2003-09-15 04:09 UTC Modified: 2003-09-17 01:30 UTC
From: carlo dot beccaria at sys-net dot it Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5CVS-2003-09-15 (dev) OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: carlo dot beccaria at sys-net dot it
New email:
PHP Version: OS:

 

 [2003-09-15 04:09 UTC] carlo dot beccaria at sys-net dot it
Description:
------------
under redhat8.0 (upgraded to rawhide)

 './configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png'  '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--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-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs' '--enable-libgcc'

Expected result:
----------------
compile

Actual result:
--------------
ext/pcre/php_pcre.o(.text+0x16a): In function `zm_info_pcre':
/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:92: undefined reference to `php_pcre_version'
ext/pcre/php_pcre.o(.text+0x55d): In function `pcre_get_compiled_regex':
/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:275: undefined reference to `php_pcre_maketables'
ext/pcre/php_pcre.o(.text+0x587):/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:279: undefined reference to `php_pcre_compile'
ext/pcre/php_pcre.o(.text+0x627):/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:294: undefined reference to `php_pcre_study'
ext/pcre/php_pcre.o(.text+0x902): In function `php_pcre_match':
/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:418: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x986):/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:435: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x9b7):/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:437: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0x9d8):/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:438: undefined reference to `php_pcre_fullinfo'
ext/pcre/php_pcre.o(.text+0xa85):/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:463: undefined reference to `php_pcre_exec'
ext/pcre/php_pcre.o(.text+0xb1b):/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:480: undefined reference to `php_pcre_get_substring_list'
ext/pcre/php_pcre.o(.text+0x1b3e): In function `php_pcre_replace':
/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:825: undefined reference to `php_pcre_info'
ext/pcre/php_pcre.o(.text+0x1bd2):/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:838: undefined reference to `php_pcre_exec'
ext/pcre/php_pcre.o(.text+0x2be4): In function `zif_preg_split':
/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:1222: undefined reference to `php_pcre_info'
ext/pcre/php_pcre.o(.text+0x2c7b):/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:1233: undefined reference to `php_pcre_exec'
ext/pcre/php_pcre.o(.text+0x358b): In function `zif_preg_grep':
/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:1453: undefined reference to `php_pcre_info'
ext/pcre/php_pcre.o(.text+0x366d):/home/becks/rpm-build/BUILD/php-200309150530/ext/pcre/php_pcre.c:1466: undefined reference to `php_pcre_exec'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-15 04:42 UTC] carlo dot beccaria at sys-net dot it
without '--enable-libgcc' build correctly
 [2003-09-17 01:28 UTC] sniper@php.net
--enable-versioning might be a problem and using --with-regex=system should NEVER be used (unless you really know what you're doing..)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 10:01:33 2025 UTC