Created attachment 313419 [details] emerge --info =dev-libs/libpcre-8.30-r2 # emerge @world -DuNatv These are the packages that would be merged, in reverse order: Calculating dependencies... done! [nomerge ] kde-base/kde-meta-4.8.3 USE="nls -accessibility (-aqua) -sdk -semantic-desktop" [nomerge ] kde-base/kdebase-meta-4.8.3 USE="wallpapers (-aqua)" [nomerge ] kde-base/ksysguard-4.8.3 USE="handbook (-aqua) -debug -lm_sensors -test" [nomerge ] kde-base/kdelibs-4.8.3 USE="acl alsa bzip2 fam handbook mmx nls opengl policykit spell sse sse2 ssl udev udisks upower -3dnow (-altivec) (-aqua) -debug -doc -jpeg2k -kerberos -lzma -openexr -semantic-desktop -test (-upnp) -zeroconf" [ebuild U ] dev-libs/libpcre-8.30-r2 [8.12] USE="bzip2 cxx jit%* readline%* recursion-limit (unicode) -pcre16% -static-libs -zlib" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] ... pcregrep.c: In function ‘grep_or_recurse’: pcregrep.c:1696:5: error: ‘pathlen’ undeclared (first use in this function) pcregrep.c:1696:5: note: each undeclared identifier is reported only once for each function it appears in CC pcre_jit_test.o x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -pipe -c pcre_jit_test.c make[1]: *** [pcregrep.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/dev-libs/libpcre-8.30-r2/work/pcre-8.30' make: *** [all] Error 2 * ERROR: dev-libs/libpcre-8.30-r2 failed (compile phase): * emake failed # emerge -pqv =dev-libs/libpcre-8.30-r2 [ebuild U ] dev-libs/libpcre-8.30-r2 [8.12] USE="bzip2 cxx jit%* readline%* recursion-limit (unicode) -pcre16% -static-libs -zlib"
Created attachment 313421 [details] /var/log/portage/dev-libs:libpcre-8.30-r2:20120528-192604.log
Created attachment 313423 [details] /var/tmp/portage/dev-libs/libpcre-8.30-r2/temp/environment
With zlib use flag well emerged.
Created attachment 313519 [details, diff] libpcre-8.30-libbz2-typo.patch Sometimes, a typo kills people, and this happens to be one case... In pcregrep.c, "SUPPORT_LIBBZ2" is incorrectly spelled as "SUPPORT_LIBZ2" twice, thus causing the issue. It only occurs when "bzip2 -zlib", I suppose. It's a problem from upstream, should it be reported there? Well, I don't yet know whether it has already been reported.
(In reply to comment #4) > libpcre-8.30-libbz2-typo.patch I applied your patch without zlib use flag and ebuild well emerged. thx
should be all set now in the tree; thanks for the report! Commit message: Add fix by Richard Grenville to fix building when USE="bzip2 -zlib" http://sources.gentoo.org/dev-libs/libpcre/files/libpcre-8.30-bzip2-typo.patch?rev=1.1 http://sources.gentoo.org/dev-libs/libpcre/libpcre-8.30-r2.ebuild?r1=1.7&r2=1.8