Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327025 - dev-lang/php-5.3.2: pcre not found
Summary: dev-lang/php-5.3.2: pcre not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 18:46 UTC by Harald van Dijk (RETIRED)
Modified: 2010-07-05 23:22 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 Harald van Dijk (RETIRED) gentoo-dev 2010-07-05 18:46:47 UTC
[...]
checking whether libxml build works... yes
checking for OpenSSL support... yes
checking for Kerberos support... no
checking for DSA_get_default_method in -lssl... no
checking for pkg-config... /usr/bin/pkg-config
checking for PCRE headers location... /usr/include
checking for PCRE library location... configure: error: Could not find libpcre.(a|so) in /usr

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/php-5.3.2/work/php-5.3.2/config.log
 * ERROR: dev-lang/php-5.3.2 failed:
 *   econf failed
 * 
 * Call stack:
 *              ebuild.sh, line   48:  Called src_compile
 *            environment, line 5201:  Called eblit-run 'src_compile' 'v1'
 *            environment, line 2045:  Called eblit-php-src_compile
 *   src_compile-v1.eblit, line   17:  Called php_sapi_build 'cli'
 *   src_compile-v1.eblit, line   52:  Called econf '--prefix=/usr/lib64/php5' '--mandir=/usr/lib64/php5/man' '--infodir=/usr/lib64/php5/info' '--libdir=/usr/lib64/php5/lib' '--without-pear' '--enable-maintainer-zts' '--disable-bcmath' '--with-bz2' '--disable-calendar' '--without-curl' '--without-curlwrappers' '--without-enchant' '--enable-exif' '--disable-ftp' '--with-gettext' '--without-gmp' '--disable-intl' '--without-kerberos' '--enable-mbstring' '--with-mcrypt' '--without-mssql' '--with-onig=/usr' '--with-openssl' '--with-openssl-dir=/usr' '--disable-pcntl' '--with-pgsql' '--with-pspell' '--without-recode' '--disable-shmop' '--without-snmp' '--disable-soap' '--disable-sockets' '--without-sqlite3' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--with-tidy' '--disable-wddx' '--disable-xmlreader' '--disable-xmlwriter' '--without-xmlrpc' '--without-xsl' '--disable-zip' '--with-zlib' '--disable-debug' '--enable-dba' '--without-cdb' '--with-db4' '--disable-flatfile' '--with-gdbm' '--disable-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--enable-gd-jis-conv' '--with-gd=/usr' '--without-interbase' '--without-interbase' '--with-ldap' '--without-ldap-sasl' '--without-mysqli' '--without-oci8' '--without-pdo-dblib' '--without-pdo-mysql' '--with-pdo-pgsql' '--with-pdo-sqlite=/usr' '--without-pdo-odbc' '--with-readline' '--without-libedit' '--without-mm' '--with-sqlite=/usr' '--enable-sqlite-utf8' '--with-pic' '--with-pcre-regex=/usr' '--with-pcre-dir=/usr' '--with-config-file-path=/etc/php/cli-php5' '--with-config-file-scan-dir=/etc/php/cli-php5/ext-active' '--enable-cli' '--disable-cgi' '--disable-embed' '--without-apxs2'


From config.log:
configure:23155: checking for pkg-config
configure:23173: found /usr/bin/pkg-config
configure:23186: result: /usr/bin/pkg-config
configure:23861: checking for PCRE headers location
configure:23870: result: /usr/include
configure:23873: checking for PCRE library location
configure:23880: error: Could not find libpcre.(a|so) in /usr

Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.5.0, glibc-2.11.2-r0, 2.6.34-gentoo-r1-libre x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-libre-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-2.0.1
Timestamp of tree: Mon, 05 Jul 2010 16:00:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1, 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -ggdb -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -ggdb -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--noconfmem --oneshot --verbose --with-bdeps=y"
FEATURES="assume-digests autopatch fixpackages news notitles preserve-libs protect-owned sandbox sfperms sign splitdebug strict test test-fail-continue unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org/"
LANG="en_GB.UTF-8"
LDFLAGS="-Xlinker -O1 -Xlinker --as-needed"
LINGUAS="*"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/etc/portage/layman/java-overlay /etc/portage/layman/sunrise /etc/portage/crossdev /etc/portage/overlay /var/cvs/gentoo-x86"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi ads aio alsa amd64 apache2 aspell berkdb bindist bzip2 cairo cdda cdparanoia cdr cjk cli consolekit cracklib crypt cups custom-cflags custom-cpuopts custom-optimization cvs dbus deblob demo dri dts dvd dvdr emboss encode exif fam fbcondecor ffmpeg firefox flac fts3 gcj gd-external gdbm gif git gnome gnome-keyring gnutls gstreamer gtk iconv inotify ipv6 ithreads java java5 java6 javascript jit jpeg kvm latex lcms ldap libnotify lightning lto lua mad mbox mikmod mmx mmxext mng mozdevelop mozdom mp3 mp4 mpeg mudflap multilib ncurses nfs nls nocxx normalize nptl nptlonly nsplugin ntfs ogg opengl openmp optimized-qmake oss pam pango pcre pdf pdo perl pic png postgres ppds pppd preview-latex pulseaudio qt3support qt4 quicktime radio rdp readline reflection samba samba4 sdl secure-delete session smbclient spell spl sql sqlite sse sse2 ssl startup-notification subversion svg swat symlink sysfs system-sqlite tcl tcpd theora threads tidy tiff timidity tk tokenizer toolkit-scroll-bars truetype udev unicode usb v4l v4l2 vhosts videos vim-syntax vorbis wifi x264 xattr xcb xcomposite xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="*" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

The problem is that --with-pcre-dir=/usr makes php look for libpcre in /usr and in /usr/$LIBDIR, where LIBDIR defaults to "lib". My libpcre.so is in /usr/lib64, and I have no lib -> lib64 symlink. php supports a --with-libdir option. I'm currently building php with --with-libdir=$(get_libdir) which should fix this, and I'll let you know the results.
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2010-07-05 20:14:05 UTC
Yes, --with-libdir=$(get_libdir) fixes this. It lets me run into the next bug, which I'll report separately :) (That one's a locale problem; I tried LC_ALL=C to verify that this bug can be fixed.)
Comment 2 Matti Bickel (RETIRED) gentoo-dev 2010-07-05 22:58:29 UTC
I'm currently testing this in the php-overlay and will migrate it promptly if that turns out successful. Thanks for catching this!
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2010-07-05 23:22:48 UTC
All good, in CVS.