Emerging kde fails on configure checking for libpcre. I have libpcre-4.2 installed and I am trying to emerge kdelibs. Removing libpcre and installing it again did not help it. The problem solved by downgrading the libpcre. Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge -u libpcre 3. emerge -u kdelibs Actual Results: Configure failed with output: "checking for pcre-config ... /usr/bin/pcre-config checking for pcreposix... no configure: error: You're missing libpcre. Download libpcre from http://www.pcre.org or find a binary package for your platform. Alternatively, you can specify --disable-pcre, but some web pages - using regular expressions in Javascript code - will not work correctly, the regexp support being quite limited if libpcre isn't present. !!! ERROR: kde-base/kdelibs-3.1.1a failed. !!! Function kde_src_compile, Line 118, Exitcode 1 !!! died running ./configure, kde_src_compile:configure" Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://gentoo.linux.no http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/shar e/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="oss apm crypt libg++ libwww mikmod motif pdflib spell gdbm berkdb slang readline tcpd esd imlib gtk -gnome -ldap -matrox -pcmcia x86 3dnow aalib acpi alsa apmm arts avi cdr cdrypt cups dga directfb dvd encode gif -gnome gpm java jpeg kde -ldap -matrox maildir mmx motiff mozilla mpeg ncurses nls oggvorbis opengl pam -pcmcia pdf perl pic png python qt quicktime readlinee samba sdl ssl svga threads tiff truetype usb X xml2 xmms xv zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe" CXXFLAGS="-march=athlon-tbird -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
i have the same problem while emerge kde on a new system
checking for pcre-config... /usr/bin/pcre-config checking for pcreposix... yes works here on default-1.0 (gcc 2.95)
Can you verify the existance of /usr/include/pcreposix.h and /usr/lib/libpcreposix.so.0.0.0? I fear that something may be different in the libpcre 4.2 stuff.
root@vmware root # find /usr/lib -name "libpcre*" /usr/lib/libpcre.a /usr/lib/libpcreposix.a /usr/lib/libpcre.so.0 /usr/lib/libpcre.la /usr/lib/libpcre.so /usr/lib/libpcreposix.la /usr/lib/libpcreposix.so /usr/lib/libpcreposix.so.0 /usr/lib/libpcreposix.so.0.0.0 /usr/lib/libpcre.so.0.0.1 root@vmware root # find /usr/include -name "pcre*" /usr/include/pcreposix.h /usr/include/pcre.h root@vmware root # ls -la /usr/lib/libpcreposix.so.0.0.0 -rwxr-xr-x 1 root root 10126 Apr 24 16:11 /usr/lib/libpcreposix.so.0.0.0 root@vmware root # ls -la /usr/include/pcreposix.h -rw-r--r-- 1 root root 2341 Apr 24 16:11 /usr/include/pcreposix.h root@vmware root # Though with libpcre-3.9-r2 installed I didn't have any problem in compiling kdelibs-3.1.1a.
Could you attach /var/tmp/portage/kdelibs-3.1.1a/work/kdelibs-3.1.1a/config.log That way we can see why it doesn't see libpcre
Created attachment 11099 [details] The /var/tmp/portage/kdelibs-3.1.1a/work/kdelibs-3.1.1/config.log
Hmm.. Those find's outputs (in comments #4) are not 100% with the original situation. There I had upgraded libpcre into 4.2 from 3.9-r2. (btw in this case the kdelibs-3.1.1a detects the libpcre correctly) Now I unemerged, re-emerged the libpcre (emerge -C libpcre && emerge libpcre), so I have a pure libpcre-4.2. And there exists only: root@vmware root # find /usr/lib -name "libpcre*" /usr/lib/libpcre.a /usr/lib/libpcre.so.0 /usr/lib/libpcre.la /usr/lib/libpcre.so /usr/lib/libpcre.so.0.0.1 root@vmware root # find /usr/include -name "pcre*" /usr/include/pcreposix.h /usr/include/pcre.h Running "emerge kdelibs" and the "cannot find libpcre" -error that I reported appears. ..attached the config.log above and sorry for caused confusion.
Thanks for the log. It turns out that you are missing libpcreposix.so* That lib should be in the libpcre package, so please remerge libpcre, and make sure that the libpcreposix is provided. (e.g. by checking /var/db/pkg/dev-libs/libpcre-4.2/CONTENTS). If kdelibs still fails then, please attach another config.log (Normally the error message is at the end of this log)
Created attachment 11117 [details] /var/db/pkg/dev-libs/libpcre-4.2/CONTENTS emerge -C libpcre emerge libpcre These above steps don't provide full libpcre but: root@vmware root # find /usr/lib -name "libpcre*" /usr/lib/libpcre.a /usr/lib/libpcre.so.0 /usr/lib/libpcre.la /usr/lib/libpcre.so /usr/lib/libpcre.so.0.0.1 emerge kdelibs And I get the same error "cannot find libpcre". Attached the /var/db/pkg/dev-libs/libpcre-4.2/CONTENTS
Now I have something... root@vmware root # emerge -C libpcre [output snipped] root@vmware root # emerge libpcre [output snipped] root@vmware root # find /usr/lib -name "libpcre*" /usr/lib/libpcre.a /usr/lib/libpcre.so.0 /usr/lib/libpcre.la /usr/lib/libpcre.so /usr/lib/libpcre.so.0.0.1 root@vmware root # emerge libpcre [output snipped] root@vmware root # find /usr/lib -name "libpcre*" /usr/lib/libpcre.a /usr/lib/libpcreposix.a /usr/lib/libpcre.so.0 /usr/lib/libpcre.la /usr/lib/libpcre.so /usr/lib/libpcreposix.la /usr/lib/libpcreposix.so /usr/lib/libpcreposix.so.0 /usr/lib/libpcreposix.so.0.0.0 /usr/lib/libpcre.so.0.0.1 So by emerging libpcre twice, will those missing libpcreposix -files be created.
As a note, when testing this bug I upgraded from libpcre 3.9 to 4.2 like you did, and it provided libpcreposix for me on the first emerge. not sure why it took two steps for you.
Well when I reported this bug I didn't have any version of libpcre installed. I needed kdelibs to be installed so I installed 3.9-r2 which worked out. After emerging kdelibs I upgraded libpcre into 4.2 (which has just done before Comment #4. So the libpcreposix -files are there at the time and I am trying to explain this at Comment #7).
I have a similar problem installing an completely new system: emerge kde fails on kdelibs and complains about missing libpcre. I did not make any effort to look what versions and what libraries I have, but simply emerged libpcre manually ("emerge libpcre"). That's all for me, it works. So it seems to me like a simple missing dependency. I did not have any older libpcre installed before!
Doing an "emerge kde" from a newly installed system ( 1.4RC4 Live CD ) also failed on one of my systems (Dual Pentium II 450's). It looks like the dependency information on libpcre is missing from portage. Running an "emerge libpcre" and aftewards an "emerge kde" seemed to fix the problem.
*** Bug 20193 has been marked as a duplicate of this bug. ***
The problem is/was with libtool in libpcre. I applied the standard elibtoolize patch and now libpcre-4.2 seems to install cleanly without any libpcre being installed prior.