Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 626466 - x11-libs/pango-1.40.6 undefined reference to `FcWeightToOpenType'
Summary: x11-libs/pango-1.40.6 undefined reference to `FcWeightToOpenType'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on: 627988
Blocks:
  Show dependency tree
 
Reported: 2017-07-28 16:31 UTC by Jason Zaman
Modified: 2018-04-16 20:59 UTC (History)
2 users (show)

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 Jason Zaman gentoo-dev 2017-07-28 16:31:21 UTC
pango cannot find the symbols: FcWeightToOpenType FcWeightFromOpenType

floppym found the version dep needs to be upgraded:
https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcweighttoopentype.html


found when chromium failed to link:
[26379/26379] python "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- x86_64-pc-linux-gnu-g++ -pie -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed -m64 -pthread -Wl,-O1 -Wl,--gc-sections -Wl,-rpath-link=. -Wl,--disable-new-dtags -Wl,--export-dynamic -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o "./chrome" -Wl,--start-group @"./chrome.rsp"  -Wl,--end-group  -ldl -lrt -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lX11 -lX11-xcb -lxcb -lXcomposite -lXcursor -lXdamage -lXext -lXfixes -lXi -lXrender -lXtst -lgmodule-2.0 -lgthread-2.0 -licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lcups -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lz -lpthread -lm -lcrypt -lexpat -lfontconfig -ldbus-1 -lgio-2.0 -latomic -lresolv -lharfbuzz-icu -lharfbuzz -lfreetype -ldrm -lpng16 -ljpeg -lXss -lre2 -lXrandr -lpci -lavcodec -lavformat -lavutil -lasound -latk-1.0 -lminizip -lsnappy -lFLAC -lgtk-3 -lgdk-3 -lcairo-gobject -lgdk_pixbuf-2.0 -lwebp -lwebpdemux -lxslt -lxml2 -llzma 
FAILED: chrome 
python "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- x86_64-pc-linux-gnu-g++ -pie -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed -m64 -pthread -Wl,-O1 -Wl,--gc-sections -Wl,-rpath-link=. -Wl,--disable-new-dtags -Wl,--export-dynamic -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o "./chrome" -Wl,--start-group @"./chrome.rsp"  -Wl,--end-group  -ldl -lrt -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lX11 -lX11-xcb -lxcb -lXcomposite -lXcursor -lXdamage -lXext -lXfixes -lXi -lXrender -lXtst -lgmodule-2.0 -lgthread-2.0 -licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lcups -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lz -lpthread -lm -lcrypt -lexpat -lfontconfig -ldbus-1 -lgio-2.0 -latomic -lresolv -lharfbuzz-icu -lharfbuzz -lfreetype -ldrm -lpng16 -ljpeg -lXss -lre2 -lXrandr -lpci -lavcodec -lavformat -lavutil -lasound -latk-1.0 -lminizip -lsnappy -lFLAC -lgtk-3 -lgdk-3 -lcairo-gobject -lgdk_pixbuf-2.0 -lwebp -lwebpdemux -lxslt -lxml2 -llzma 
/usr/lib64/libpangoft2-1.0.so.0: undefined reference to `FcWeightToOpenType'
/usr/lib64/libpangoft2-1.0.so.0: undefined reference to `FcWeightFromOpenType'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Comment 1 Mike Gilbert gentoo-dev 2017-07-28 16:42:23 UTC
It looks like there is a configure check FcWeightToOpenType, but this doesn't seem to be working properly on Jason's system.
Comment 2 Mart Raudsepp gentoo-dev 2017-07-28 19:07:46 UTC
He must have downgraded fontconfig?
I'm not sure stabilization should be blocked by this, but it would be nice to see a newer fontconfig in stable.
Comment 3 Mike Gilbert gentoo-dev 2017-07-28 19:38:29 UTC
After review in #gentoo-dev, this seems to be an isolated issue.
Comment 4 Mart Raudsepp gentoo-dev 2017-07-29 02:26:51 UTC
Jason, can you confirm you downgraded fontconfig?
PS: This check and optional usage of the new symbols has existed in pango since 1.36.7, in stable since before gentoo git conversion.


Either way, please keep the bug open for adjusting the fontconfig dep once we can in a future version or revision bump, to ensure that this part from https://bugzilla.gnome.org/show_bug.cgi?id=733764 is functioning for everyone.
Comment 5 Jason Zaman gentoo-dev 2017-07-29 02:37:33 UTC
oooh, okay yeah i went through emerge logs, i used to have =media-libs/fontconfig-2.12.1-r1 because i was playing with the coloured emoji before. that version was deleted in the tree so i got downgraded back to 2.11.1-r2. okay that would explain why pango went crazy. I was looking at pango before and somehow missed the fontconfig stuff. this is RESOLVED for me then. leaving open for future fix then. Thanks!
Comment 6 Larry the Git Cow gentoo-dev 2018-04-02 09:47:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c39c3f69b234cdb8eaa60dd781bbf2a51b02658

commit 1c39c3f69b234cdb8eaa60dd781bbf2a51b02658
Author:     Gilles Dartiguelongue <eva@gentoo.org>
AuthorDate: 2018-04-02 09:16:05 +0000
Commit:     Gilles Dartiguelongue <eva@gentoo.org>
CommitDate: 2018-04-02 09:46:44 +0000

    x11-libs/pango: raise dependency on fontconfig
    
    Fix breakage due to downgrading fontconfig to an older version than 2.11.91
    
    Closes: https://bugs.gentoo.org/626466
    Package-Manager: Portage-2.3.27, Repoman-2.3.9
    RepoMan-Options: --force

 x11-libs/pango/{pango-1.40.12.ebuild => pango-1.40.12-r1.ebuild} | 4 ++--
 x11-libs/pango/{pango-1.40.14.ebuild => pango-1.40.14-r1.ebuild} | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
Comment 7 Luke-Jr 2018-04-15 07:00:49 UTC
Why isn't the usual sub-slot dependency stuff sufficient here? It's rather annoying to have such a false dependency considering all these versions of fontconfig are broken (see bug 649296)...
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2018-04-16 20:59:37 UTC
subslot would not be sufficient here, package manager would have to check the whole soversion to make sure nothing gets broken on downgrades. This is caused by automagic detection of fontconfig symbol that only appeared in a newer release. Hence it is not a false dependency, rather a workaround for implementing a much more complex dependency system in package manager.