Bug 1027123 - Chromium: missing symbols
Summary: Chromium: missing symbols
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: re2
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Denis Arnaud
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-06 08:31 UTC by Nils Philippsen
Modified: 2013-11-26 04:10 UTC (History)
2 users (show)

Fixed In Version: re2-20131024-1.fc18
Clone Of:
Environment:
Last Closed: 2013-11-24 03:40:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to include symbols necessary for chromium (345 bytes, patch)
2013-11-06 08:31 UTC, Nils Philippsen
no flags Details | Diff

Description Nils Philippsen 2013-11-06 08:31:56 UTC
Created attachment 820247 [details]
patch to include symbols necessary for chromium

Description of problem:
The re2 library doesn't export the _ZNK3re211FilteredRE210AllMatches* symbols which are used by Spot's chromium packages:

http://repos.fedorapeople.org/repos/spot/chromium-stable/

Version-Release number of selected component (if applicable):
re2-20130115-3.fc20.x86_64

How reproducible:
Reproducible.

Steps to Reproduce:
1. Install chromium from Spot's repo (currently no F-20 version available, but the F-19 build will suffice).
2. Run it.

Actual results:
nils@gibraltar:~> chromium-browser
/usr/lib64/chromium-browser/chromium-browser: symbol lookup error: /usr/lib64/chromium-browser/chromium-browser: undefined symbol: _ZNK3re211FilteredRE210AllMatchesERKNS_11StringPieceERKSt6vectorIiSaIiEEPS6_

Expected results:
Runs.

Additional info:
Spot's repo contains a patched version of the re2 package exporting this symbol (patch attached). Additionally, it adds "-pthread" to the CXXFLAGS (instead of just to LDFLAGS) and runs only the shared library tests (omitting tests on the static and debugging versions of the library). Here's the diff in the spec file:

diff --git a/re2.spec b/re2.spec
index 6a99621..6dc4649 100644
--- a/re2.spec
+++ b/re2.spec
@@ -8,6 +8,8 @@ Group:          System Environment/Libraries
 License:        BSD
 URL:            http://code.google.com/p/%{name}/
 Source0:        http://re2.googlecode.com/files/%{name}-%{version}.tgz
+# Chromium needs the FilteredRE2 symbols to be global
+Patch0:                re2-global-FilteredRE2-symbols.patch
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 %description
@@ -36,13 +38,14 @@ you will need to install %{name}-devel.
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1 -b .global-fix
 
 %build
 # The -pthread flag issue has been submitted upstream:
 # http://groups.google.com/forum/?fromgroups=#!topic/re2-dev/bkUDtO5l6Lo
 # The RPM macro for the linker flags does not exist on EPEL
 %{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro}
-CXXFLAGS="${CXXFLAGS:-%optflags}"
+CXXFLAGS="${CXXFLAGS:-%optflags} -pthread"
 LDFLAGS="${LDFLAGS:-%__global_ldflags} -pthread"
 make %{?_smp_mflags} CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" includedir=%{_includedir} libdir=%{_libdir}
 
@@ -54,7 +57,7 @@ make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT includedir=%{_included
 find $RPM_BUILD_ROOT -name 'lib%{name}.a' -exec rm -f {} \;
 
 %check
-make %{?_smp_mflags} test
+make %{?_smp_mflags} shared-test
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -73,8 +76,8 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
-* Sun Aug 04 2013 Fedora Release Engineering <rel-eng.org> - 20130115-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+* Sun Jun  2 2013 Tom Callaway <spot> - 20130115-3
+- fix FilteredRE2 symbols to be global in the shared library
 
 * Sun Feb 17 2013 Denis Arnaud <denis.arnaud_fedora> 20130115-2
 - Took into account the feedback from review request (#868578).

Comment 1 Fedora Update System 2013-11-13 17:25:46 UTC
re2-20131024-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/re2-20131024-1.fc19

Comment 2 Fedora Update System 2013-11-13 17:25:59 UTC
re2-20131024-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/re2-20131024-1.fc20

Comment 3 Fedora Update System 2013-11-13 17:26:11 UTC
re2-20131024-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/re2-20131024-1.fc18

Comment 4 Fedora Update System 2013-11-14 19:15:12 UTC
Package re2-20131024-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing re2-20131024-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-21310/re2-20131024-1.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-11-24 03:40:50 UTC
re2-20131024-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2013-11-26 04:06:53 UTC
re2-20131024-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2013-11-26 04:10:42 UTC
re2-20131024-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.