Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19613 - kdelibs-3.1.1a's configure fails with libpcre-4.2
Summary: kdelibs-3.1.1a's configure fails with libpcre-4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 20193 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-04-19 10:26 UTC by Pekka-Matti Nieminen
Modified: 2011-10-30 22:47 UTC (History)
2 users (show)

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


Attachments
The /var/tmp/portage/kdelibs-3.1.1a/work/kdelibs-3.1.1/config.log (config.log,173.64 KB, text/plain)
2003-04-25 00:41 UTC, Pekka-Matti Nieminen
Details
/var/db/pkg/dev-libs/libpcre-4.2/CONTENTS (CONTENTS,7.19 KB, text/plain)
2003-04-25 06:21 UTC, Pekka-Matti Nieminen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pekka-Matti Nieminen 2003-04-19 10:26:51 UTC
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"
Comment 1 chris 2003-04-19 16:47:15 UTC
i have the same problem while emerge kde on a new system 
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-04-20 12:24:55 UTC
checking for pcre-config... /usr/bin/pcre-config
checking for pcreposix... yes

works here on default-1.0 (gcc 2.95)

Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2003-04-23 09:01:02 UTC
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. 
Comment 4 Pekka-Matti Nieminen 2003-04-24 10:30:46 UTC
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. 
Comment 5 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-24 12:55:10 UTC
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
Comment 6 Pekka-Matti Nieminen 2003-04-25 00:41:39 UTC
Created attachment 11099 [details]
The /var/tmp/portage/kdelibs-3.1.1a/work/kdelibs-3.1.1/config.log
Comment 7 Pekka-Matti Nieminen 2003-04-25 00:50:46 UTC
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.  
Comment 8 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-25 02:36:26 UTC
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)
Comment 9 Pekka-Matti Nieminen 2003-04-25 06:21:11 UTC
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
Comment 10 Pekka-Matti Nieminen 2003-04-25 07:14:53 UTC
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. 
 
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2003-04-25 07:43:45 UTC
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. 
Comment 12 Pekka-Matti Nieminen 2003-04-25 10:56:44 UTC
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). 
Comment 13 Bernd Wurst 2003-04-27 13:26:55 UTC
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!
Comment 14 Marius Caldas 2003-04-29 18:07:06 UTC
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.
Comment 15 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-30 09:00:28 UTC
*** Bug 20193 has been marked as a duplicate of this bug. ***
Comment 16 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-30 09:39:04 UTC
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.