Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233358 - net-proxy/privoxy-3.0.9_beta should _always_ use external pcre
Summary: net-proxy/privoxy-3.0.9_beta should _always_ use external pcre
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-30 08:23 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2008-07-30 19:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-07-30 08:23:07 UTC
Gentoo policy is not to use bundled libraries, so having it depend on an USE flag is a bad idea. Also, with pcre USE flag off, privoxy fails in this way:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `pcre/get.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `pcre/maketables.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `pcre/study.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `pcre/pcre.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `pcre/pcreposix.o' is incompatible with i386:x86-64 output
pcre/maketables.o: In function `__sbtoupper':
/usr/include/_ctype.h:143: undefined reference to `__mb_sb_limit'
/usr/include/_ctype.h:143: undefined reference to `_CurrentRuneLocale'
pcre/maketables.o: In function `__sbtolower':
/usr/include/_ctype.h:157: undefined reference to `__mb_sb_limit'
/usr/include/_ctype.h:157: undefined reference to `_CurrentRuneLocale'
pcre/maketables.o: In function `__isctype':
/usr/include/_ctype.h:129: undefined reference to `_DefaultRuneLocale'
pcre/maketables.o: In function `__sbmaskrune':
/usr/include/_ctype.h:110: undefined reference to `__mb_sb_limit'
/usr/include/_ctype.h:110: undefined reference to `_CurrentRuneLocale'
collect2: ld returned 1 exit status
make: *** [privoxy] Error 1

because there is a prebuilt version in the tarball too.

And also, configure reports:

configure: WARNING: You are using the static PCRE code which is scheduled for removal, for details see:
    https://sourceforge.net/mailarchive/message.php?msg_id=20080511195555.2dc6cfdc%40fabiankeil.de


Solution: drop the pcre USE flag and always enable dynamic pcre with libpcre as an hard dependency.

Thanks,
Diego
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2008-07-30 19:59:03 UTC
Hmm... I think pcre support was optional in 3.0.3.

Fixed in 3.0.9_beta-r1.