Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 418033 - dev-libs/libpcre-8.30[bzip2,-zlib] fails to build in pcregrep.c
Summary: dev-libs/libpcre-8.30[bzip2,-zlib] fails to build in pcregrep.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://bugs.exim.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-28 19:36 UTC by GES
Modified: 2012-05-29 19:34 UTC (History)
0 users

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


Attachments
emerge --info =dev-libs/libpcre-8.30-r2 (emerge_--info_=dev-libs_libpcre-8.30-r2,15.74 KB, text/plain)
2012-05-28 19:36 UTC, GES
Details
/var/log/portage/dev-libs:libpcre-8.30-r2:20120528-192604.log (dev-libs:libpcre-8.30-r2:20120528-192604.log,16.63 KB, text/plain)
2012-05-28 19:39 UTC, GES
Details
/var/tmp/portage/dev-libs/libpcre-8.30-r2/temp/environment (environment,92.59 KB, text/plain)
2012-05-28 19:42 UTC, GES
Details
libpcre-8.30-libbz2-typo.patch (libpcre-8.30-libbz2-typo.patch,590 bytes, patch)
2012-05-29 12:26 UTC, Richard Grenville
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description GES 2012-05-28 19:36:56 UTC
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"
Comment 1 GES 2012-05-28 19:39:28 UTC
Created attachment 313421 [details]
/var/log/portage/dev-libs:libpcre-8.30-r2:20120528-192604.log
Comment 2 GES 2012-05-28 19:42:01 UTC
Created attachment 313423 [details]
/var/tmp/portage/dev-libs/libpcre-8.30-r2/temp/environment
Comment 3 GES 2012-05-29 09:13:38 UTC
With zlib use flag well emerged.
Comment 4 Richard Grenville 2012-05-29 12:26:07 UTC
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.
Comment 5 GES 2012-05-29 13:20:32 UTC
(In reply to comment #4)
> libpcre-8.30-libbz2-typo.patch
I applied your patch without zlib use flag and ebuild well emerged.
thx
Comment 6 SpanKY gentoo-dev 2012-05-29 16:14:18 UTC
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