Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155965 - dev-libs/libpcre-6.6 has automagic deps for headers generation
Summary: dev-libs/libpcre-6.6 has automagic deps for headers generation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 156652 157252 157254 157722 160348 161496 162322 163583 164403 165487 165797 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-22 11:22 UTC by Balint Dobai-Pataky
Modified: 2008-02-05 23:35 UTC (History)
17 users (show)

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


Attachments
emerge --info (emerge.info,2.90 KB, text/plain)
2006-11-22 11:23 UTC, Balint Dobai-Pataky
Details
/var/tmp/portage/media-video/mkvtoolnix-1.8.0/work/mkvtoolnix-1.8.0/config.log (config.log,29.05 KB, text/plain)
2006-11-23 03:07 UTC, Balint Dobai-Pataky
Details
/usr/include/pcre_stringpiece.h (pcre_stringpiece.h,5.90 KB, text/plain)
2006-11-23 03:24 UTC, Balint Dobai-Pataky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Balint Dobai-Pataky 2006-11-22 11:22:25 UTC
checking for FLAC__stream_decoder_skip_single_frame in -lFLAC... yes
checking for pcre-config... /usr/bin/pcre-config
checking for libpcrecpp... no
configure: error: Could not find the PCRE C++ library

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/media-video/mkvtoolnix-1.8.0/work/mkvtoolnix-1.8.0/config.log

!!! ERROR: media-video/mkvtoolnix-1.8.0 failed.

 # qlist -vI pcre
dev-libs/libpcre-6.6
qlist -vI mkvtoolnix
media-video/mkvtoolnix-1.7.0

and i have pcre use flag on in make.conf
Comment 1 Balint Dobai-Pataky 2006-11-22 11:23:22 UTC
Created attachment 102560 [details]
emerge --info
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-11-22 11:26:54 UTC

*** This bug has been marked as a duplicate of 155553 ***

*** This bug has been marked as a duplicate of 155553 ***
Comment 3 Balint Dobai-Pataky 2006-11-22 11:43:29 UTC
how can that be a duplicate, since i have libpcre and i synced yesterday, #155553 should be fixed now, and that was only a fix of dependency on libpcre?
Comment 4 Alexis Ballier gentoo-dev 2006-11-23 03:01:15 UTC
Maybe you're right, but I can't reproduce it: 

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!!
/var/tmp/portage/media-video/mkvtoolnix-1.8.0/work/mkvtoolnix-1.8.0/config.log
Comment 5 Balint Dobai-Pataky 2006-11-23 03:07:34 UTC
Created attachment 102592 [details]
/var/tmp/portage/media-video/mkvtoolnix-1.8.0/work/mkvtoolnix-1.8.0/config.log

yes, sure, sorry
here it is
Comment 6 Alexis Ballier gentoo-dev 2006-11-23 03:19:21 UTC
In file included from /usr/include/pcrecpp.h:333,
                 from conftest.cpp:33:
/usr/include/pcre_stringpiece.h:50:30: error: bits/type_traits.h: No such file or directory
/usr/include/pcre_stringpiece.h:160: error: '__type_traits' is not a template
/usr/include/pcre_stringpiece.h:160: error: explicit specialization of non-template '__type_traits'


In my /usr/include/pcre_stringpiece.h, around line 50, I have : 

#if 0
#define HAVE_TYPE_TRAITS
#include <type_traits.h>
#elif 0
#define HAVE_TYPE_TRAITS
#include <bits/type_traits.h>
#endif


Can you please attach yours also ?

Comment 7 Balint Dobai-Pataky 2006-11-23 03:24:53 UTC
Created attachment 102593 [details]
/usr/include/pcre_stringpiece.h

sure
Comment 8 Alexis Ballier gentoo-dev 2006-11-23 03:33:29 UTC
Does reemerging libpcre solves this ? It seems that libpcre uses compile time detection to generate its headers, it enables bits type straits if it can find /usr/include/bits/type_traits.h

What are the packages providing it for you ?
Comment 9 Balint Dobai-Pataky 2006-11-23 03:36:50 UTC
i don't have /usr/include/bits/type_traits.h.
i'll reemerge libpcre and mkvtoolnix and report it here as it finishes
Comment 10 Balint Dobai-Pataky 2006-11-23 04:06:45 UTC
i reemerged libpcre
/usr/include/bits/type_traits.h did not appear
mkvtoolnix passed the configure, now it's building.

thanks
Comment 11 Alexis Ballier gentoo-dev 2006-11-23 04:30:31 UTC
From libpcre configure.ac :

AC_CHECK_HEADERS(bits/type_traits.h, [pcre_have_bits_type_traits="1"],
                                     [pcre_have_bits_type_traits="0"])
AC_CHECK_HEADERS(type_traits.h, [pcre_have_type_traits="1"],
                                [pcre_have_type_traits="0"])


from libpcre  pcre_stringpiece.h.in :

#if @pcre_have_type_traits@
#define HAVE_TYPE_TRAITS
#include <type_traits.h>
#elif @pcre_have_bits_type_traits@
#define HAVE_TYPE_TRAITS
#include <bits/type_traits.h>
#endif



the files in /usr/include/bits are provided by glibc on my system, and libpcre uses compile time detection for this, what may cause errors such as this one if at a later time those headers are removed.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-11-29 13:33:36 UTC
*** Bug 156652 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-12-05 12:10:50 UTC
*** Bug 157252 has been marked as a duplicate of this bug. ***
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-12-05 12:32:43 UTC
*** Bug 157254 has been marked as a duplicate of this bug. ***
Comment 15 Bruno Laturner Lemes 2006-12-08 11:23:00 UTC
I had the same problem.

It was fixed after _manually_ reemerging libpcre.
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2006-12-10 05:11:19 UTC
*** Bug 157722 has been marked as a duplicate of this bug. ***
Comment 17 Francisco José Cañizares Santofimia 2006-12-20 06:00:28 UTC
(In reply to comment #15)
> I had the same problem.
> 
> It was fixed after _manually_ reemerging libpcre.
> 

Same here.
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2007-01-06 08:45:43 UTC
*** Bug 160348 has been marked as a duplicate of this bug. ***
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2007-01-11 10:29:48 UTC
*** Bug 161496 has been marked as a duplicate of this bug. ***
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2007-01-16 07:43:03 UTC
*** Bug 162322 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2007-01-24 13:05:24 UTC
*** Bug 163583 has been marked as a duplicate of this bug. ***
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2007-01-29 18:24:05 UTC
*** Bug 164403 has been marked as a duplicate of this bug. ***
Comment 23 Jakub Moc (RETIRED) gentoo-dev 2007-02-05 21:48:04 UTC
*** Bug 165487 has been marked as a duplicate of this bug. ***
Comment 24 Jakub Moc (RETIRED) gentoo-dev 2007-02-07 19:22:02 UTC
*** Bug 165797 has been marked as a duplicate of this bug. ***
Comment 25 Mikael Magnusson 2007-08-20 12:23:29 UTC
this seems to happen when libpcre is emerged with gcc 3.4(.2) and you try to emerge mkvtoolnix with gcc 4.(1.2), or so. Remerging libpcre with gcc 4 or emerging mvktoolnix with gcc 3(.4) probably works, trying the former now.
The only bits/type_traits.h files on my system are
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.6/include/g++-v3/bits/type_traits.h
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/g++/type_traits.h
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3/bits/type_traits.h
/usr/include/sigc++-2.0/sigc++/type_traits.h
and i have those three gccs and 4.1.2 installed.
Comment 26 Thomas Capricelli 2007-09-01 13:44:18 UTC
I had the problem with mkvtoolnix and i can confirm the latest comment. Unmerging libpcre helped.

It got re-emerged by the dependencies and mkvtoolnix could finally be configured.
Comment 27 Jakub Moc (RETIRED) gentoo-dev 2007-11-17 20:46:14 UTC
flameeyes, anant - ideas?
Comment 28 Anant Narayanan (RETIRED) gentoo-dev 2007-11-18 07:17:49 UTC
libpcre-7.3-r1 is in the process of stabilization (bug #195416).  All versions of libpcre < 7.3-r1 suffer from multiple memory corruption (bug #198198).

This means we will be masking all versions lower than 7.3-r1 is the coming weeks, and all users will be forced to build 7.3-r1, auto-magically solving the issue.
Comment 29 Christian Faulhammer (RETIRED) gentoo-dev 2008-02-05 23:35:29 UTC
(In reply to comment #28)
> libpcre-7.3-r1 is in the process of stabilization (bug #195416).  All versions
> of libpcre < 7.3-r1 suffer from multiple memory corruption (bug #198198).
> This means we will be masking all versions lower than 7.3-r1 is the coming
> weeks, and all users will be forced to build 7.3-r1, auto-magically solving the
> issue.

 The mask never happened, but libpcre 7.4 is stable by now.  I cleaned up the old ebuilds, so marking this as fixed.