Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 616818

Summary: www-client/chromium-59.0.3071.29 fails to build with system libxml (error: ‘XML_PARSE_NOXXE’ was not declared in this scope)
Product: Gentoo Linux Reporter: Paweł Hajdan, Jr. (RETIRED) <phajdan.jr>
Component: Current packagesAssignee: Chromium Project <chromium>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2017-04-28 09:35:37 UTC
This is with dev-libs/libxml2-2.9.4-r1 :

FAILED: obj/third_party/libxml/libxml/libxml_utils.o
x86_64-pc-linux-gnu-g++ -MMD -MF obj/third_party/libxml/libxml/libxml_utils.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=
1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DDISABLE_NACL -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSI
NG_DB_LOCAL -DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS
 -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I/usr/include/libxml2 -fno-strict-aliasing --param
=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -m64 -march=x86-64 -pthread -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -g0 -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -Wno-narrowing -fno-rtti -fno-exceptions -O2 -pipe -march=native -fno-delete-null-pointer-checks -c ../../third_party/libxml/chromium/libxml_utils.cc -o obj/third_party/libxml/libxml/libxml_utils.o
../../third_party/libxml/chromium/libxml_utils.cc: In member function ‘bool XmlReader::Load(const string&)’:
../../third_party/libxml/chromium/libxml_utils.cc:28:29: error: ‘XML_PARSE_NOXXE’ was not declared in this scope
                             XML_PARSE_NOXXE;     // no external entities
                             ^~~~~~~~~~~~~~~
../../third_party/libxml/chromium/libxml_utils.cc: In member function ‘bool XmlReader::LoadFile(const string&)’:
../../third_party/libxml/chromium/libxml_utils.cc:39:29: error: ‘XML_PARSE_NOXXE’ was not declared in this scope
                             XML_PARSE_NOXXE;     // no external entities
                             ^~~~~~~~~~~~~~~

I traced this to https://chromium.googlesource.com/chromium/src/+/01618a2e9695f739ea089db2d7b1a3f4ccd5048c which uses an unreleased version of libxml.
Comment 1 Larry the Git Cow gentoo-dev 2017-09-07 12:44:43 UTC
Bug has been referenced in the following commit:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2901239ea2039344c5302d8812db0f5530a3b766

commit 2901239ea2039344c5302d8812db0f5530a3b766
Author:     Pawel Hajdan, Jr <phajdan.jr@gentoo.org>
AuthorDate: 2017-09-07 12:44:30 +0000
Commit:     Pawel Hajdan, Jr <phajdan.jr@gentoo.org>
CommitDate: 2017-09-07 12:44:30 +0000

    www-client/chromium: dev channel bump (62.0.3202.9)
    
    Build with system libxml. Fix build with glibc-2.26.
    
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=616818
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=628782
    
    Package-Manager: Portage-2.3.6, Repoman-2.3.1

 www-client/chromium/Manifest                       |   2 +-
 www-client/chromium/chromium-62.0.3192.0.ebuild    | 644 ---------------------
 ...192.0-r1.ebuild => chromium-62.0.3202.9.ebuild} |  11 +-
 .../chromium/files/chromium-glibc2.26-r1.patch     | 220 +++++++
 4 files changed, 227 insertions(+), 650 deletions(-)
Comment 2 Stephan Hartmann (RETIRED) gentoo-dev 2020-08-24 06:36:49 UTC
System libxml2 seems to work fine for long time. Reopen if it is still an issue.