Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121476 - dev-lang/php-5.1.1 does not built with pcre support
Summary: dev-lang/php-5.1.1 does not built with pcre support
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-03 13:52 UTC by Martin Mokrejš
Modified: 2006-02-03 14:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2006-02-03 13:52:12 UTC
I installed phpmyadmin-2.7.0_p2 and running it I got:

Fatal error: Call to undefined function preg_replace() in /var/www/localhost/htdocs/phpmyadmin/libraries/sanitizing.lib.php on line 37

I have freshly installed dev-lang/php-5.1.1 and it seems the reason is the regex library support is not compiled in:

[...]
 *   Enabling ncurses
 *   Disabling oci8
 *   Disabling oci8-instant-client
 *   Enabling openssl
 *   Enabling openssl-dir
 *   Disabling pcntl
 *   Disabling pcre-regex
[...]

I have dev-libs/libpcre installed.


# emerge info
Portage 2.1_pre4-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.16-rc1 i686)
=================================================================
System uname: 2.6.16-rc1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.12.0_pre15
ccache version 2.4 [disabled]
dev-lang/python:     2.3.4-r1, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/spool/PBS /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 FFmpeg X Xaw3d aalib acpi alsa apache2 apm arts ati avi bitmap-fonts bonobo caca cdparanoia cdr cgi crypt cscope cups curl dba dga directfb divx divx4 divx4linux divx5 divx5linux doc dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd ethereal evo f77 faad faad2 fam fame fbcon ffmpeg flash foomaticdb fortran fvwm fvwm2 gb gd gdbm ggi gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml i8x0 icc ifc imagemagick imlib imlib2 innodb ipv6 ithreads java jpeg lcms leim libg++ libwww live lzo mad mcal mesa mikmod mmx mmx2 motif mozilla mp3 mpeg mule mysql ncurses network nls nptl ogg oggvorbis opengl oss pam pda pdflib perl plotutils plugin png ppds pthread pthreads python qt qtx quicktime readline rtc samba scanner sdl slp spell sse sse2 ssl stroke tcltk tcpd tetex theora thread threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis win32 winvidix wmf xml xml2 xmms xosd xv xvid xvmc zeo zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-03 13:54:58 UTC
USE="pcre" emerge =dev-lang/php-5.1.1
Comment 2 Martin Mokrejš 2006-02-03 14:04:45 UTC
But the ebuild does not use "pcre" USE flag! And anyway, phpmyadmin should request that as well, right?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-02-03 14:10:18 UTC
The ebuild of course DOES use pcre flag. 

[ebuild   R   ] dev-lang/php-5.1.1  USE="-adabas -apache apache2 bcmath berkdb -birdstep bzip2 calendar -cdb cgi -cjk cli crypt ctype curl curlwrappers -db2 dba dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob exif fastbuild -fdftk -filepro -firebird flatfile force-cgi-redirect -frontbase ftp gd -gd-external gdbm -gmp -hardenedphp hash -hyperwave-api iconv imap -informix inifile -interbase -iodbc -ipv6 -java-external -kerberos -ldap -libedit -mcve memlimit mhash ming -msql mssql mysql mysqli ncurses nls -oci8 -oci8-instant-client odbc pcntl pcre -pdo pdo-external -pic posix -postgres -qdbm readline -recode reflection -sapdb -sasl session -sharedext sharedmem simplexml -snmp soap sockets -solid -spell spl sqlite ssl -sybase -sybase-ct sysvipc -threads tidy tokenizer truetype vm-goto -vm-switch wddx xml xmlreader xmlrpc xmlwriter -xpm xsl -yaz zip zlib" 0 kB
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-02-03 14:13:32 UTC
(In reply to comment #2)
> But the ebuild does not use "pcre" USE flag! And anyway, phpmyadmin should
> request that as well, right?
> 

The "ebuild" file doesn't list it, but the eclass it inherits does, aka learn to use emerge -pv to determine USE flags.
Comment 5 Martin Mokrejš 2006-02-03 14:15:44 UTC
Per comment #4, thanks, I didn't know that.