Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc 2.17 problem with ARM systems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mansonquasch
n00b
n00b


Joined: 15 Jan 2007
Posts: 43

PostPosted: Sat Apr 20, 2013 3:31 pm    Post subject: glibc 2.17 problem with ARM systems Reply with quote

Hi there,

I am running Gentoo on a Odroid U2, which is basically a Cortex A9 Quad Core Exynos system. I am using the armv7a-hardfloat-linux-gnueabi profile.

Until recently, everything worked nicely, but now I run into problems. It happened, when I decided to install razorqt on the system. The compilation of one of the razorqt messages failed with:

Code:
qdbusxml2cpp: error while loading shared libraries: libQtDBus.so.4: cannot open shared object file: No such file or directory


I wondered what happened, checked /etc/env.d/44qt4, but it contained the right entries. env-update also worked and wrote the '/usr/lib/qt4' snippet to /etc/ld.so.conf.

Code:
ldconfig -p | grep qt
        libqtxdg.so.0 (libc6) => /usr/lib/libqtxdg.so.0
        libqtxdg.so (libc6) => /usr/lib/libqtxdg.so
        libpoppler-qt4.so.4 (libc6) => /usr/lib/libpoppler-qt4.so.4
        libpoppler-qt4.so (libc6) => /usr/lib/libpoppler-qt4.so
        libmythnzmqt.so.0 (libc6) => /usr/lib/libmythnzmqt.so.0
        libmythnzmqt.so (libc6) => /usr/lib/libmythnzmqt.so
        libavahi-qt4.so.1 (libc6) => /usr/lib/libavahi-qt4.so.1
        libavahi-qt4.so (libc6) => /usr/lib/libavahi-qt4.so
        libQt3Support.so.4 (libc6) => /usr/lib/qt4/libQt3Support.so.4
        libQt3Support.so (libc6) => /usr/lib/qt4/libQt3Support.so
        libQtXmlPatterns.so.4 (libc6) => /usr/lib/qt4/libQtXmlPatterns.so.4
        libQtXmlPatterns.so (libc6) => /usr/lib/qt4/libQtXmlPatterns.so
        libQtXml.so.4 (libc6) => /usr/lib/qt4/libQtXml.so.4
        libQtXml.so (libc6) => /usr/lib/qt4/libQtXml.so
        libQtWebKit.so.4 (libc6) => /usr/lib/qt4/libQtWebKit.so.4
        libQtWebKit.so (libc6) => /usr/lib/qt4/libQtWebKit.so
        libQtTest.so.4 (libc6) => /usr/lib/qt4/libQtTest.so.4
        libQtTest.so (libc6) => /usr/lib/qt4/libQtTest.so
        libQtSvg.so.4 (libc6) => /usr/lib/qt4/libQtSvg.so.4
        libQtSvg.so (libc6) => /usr/lib/qt4/libQtSvg.so
        libQtSql.so.4 (libc6) => /usr/lib/qt4/libQtSql.so.4
        libQtSql.so (libc6) => /usr/lib/qt4/libQtSql.so
        libQtScriptTools.so.4 (libc6) => /usr/lib/qt4/libQtScriptTools.so.4
        libQtScriptTools.so (libc6) => /usr/lib/qt4/libQtScriptTools.so
        libQtScript.so.4 (libc6) => /usr/lib/qt4/libQtScript.so.4
        libQtScript.so (libc6) => /usr/lib/qt4/libQtScript.so
        libQtOpenGL.so.4 (libc6) => /usr/lib/qt4/libQtOpenGL.so.4
        libQtOpenGL.so (libc6) => /usr/lib/qt4/libQtOpenGL.so
        libQtNetwork.so.4 (libc6) => /usr/lib/qt4/libQtNetwork.so.4
        libQtNetwork.so (libc6) => /usr/lib/qt4/libQtNetwork.so
        libQtGui.so.4 (libc6) => /usr/lib/qt4/libQtGui.so.4
        libQtGui.so (libc6) => /usr/lib/qt4/libQtGui.so
        libQtDesignerComponents.so.4 (libc6) => /usr/lib/qt4/libQtDesignerComponents.so.4
        libQtDesignerComponents.so (libc6) => /usr/lib/qt4/libQtDesignerComponents.so
        libQtDesigner.so.4 (libc6) => /usr/lib/qt4/libQtDesigner.so.4
        libQtDesigner.so (libc6) => /usr/lib/qt4/libQtDesigner.so
        libQtDBus.so.4 (libc6) => /usr/lib/qt4/libQtDBus.so.4
        libQtDBus.so (libc6) => /usr/lib/qt4/libQtDBus.so
        libQtCore.so.4 (libc6) => /usr/lib/qt4/libQtCore.so.4
        libQtCore.so (libc6) => /usr/lib/qt4/libQtCore.so


So, everything is in the right place. I started wondering and straced the command:

Code:
strace qdbusxml2cpp
execve("/usr/bin/qdbusxml2cpp", ["qdbusxml2cpp"], [/* 35 vars */]) = 0
brk(0)                                  = 0x20000
uname({sys="Linux", node="odroid", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400ea000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=95625, ...}) = 0
mmap2(NULL, 95625, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40138000
close(3)                                = 0
open("/lib/tls/v7l/neon/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v7l/neon/vfp", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/lib/tls/v7l/neon/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v7l/neon", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/lib/tls/v7l/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v7l/vfp", 0xbe9779a0)  = -1 ENOENT (No such file or directory)
open("/lib/tls/v7l/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v7l", 0xbe9779a0)      = -1 ENOENT (No such file or directory)
open("/lib/tls/neon/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/neon/vfp", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/lib/tls/neon/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/neon", 0xbe9779a0)     = -1 ENOENT (No such file or directory)
open("/lib/tls/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/vfp", 0xbe9779a0)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0xbe9779a0)          = -1 ENOENT (No such file or directory)
open("/lib/v7l/neon/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/v7l/neon/vfp", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/lib/v7l/neon/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/v7l/neon", 0xbe9779a0)     = -1 ENOENT (No such file or directory)
open("/lib/v7l/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/v7l/vfp", 0xbe9779a0)      = -1 ENOENT (No such file or directory)
open("/lib/v7l/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/v7l", 0xbe9779a0)          = -1 ENOENT (No such file or directory)
open("/lib/neon/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/neon/vfp", 0xbe9779a0)     = -1 ENOENT (No such file or directory)
open("/lib/neon/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/neon", 0xbe9779a0)         = -1 ENOENT (No such file or directory)
open("/lib/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib/vfp", 0xbe9779a0)          = -1 ENOENT (No such file or directory)
open("/lib/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/tls/v7l/neon/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/v7l/neon/vfp", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/v7l/neon/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/v7l/neon", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/v7l/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/v7l/vfp", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/v7l/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/v7l", 0xbe9779a0)  = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/neon/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/neon/vfp", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/neon/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/neon", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/vfp", 0xbe9779a0)  = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", 0xbe9779a0)      = -1 ENOENT (No such file or directory)
open("/usr/lib/v7l/neon/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/v7l/neon/vfp", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/v7l/neon/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/v7l/neon", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/v7l/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/v7l/vfp", 0xbe9779a0)  = -1 ENOENT (No such file or directory)
open("/usr/lib/v7l/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/v7l", 0xbe9779a0)      = -1 ENOENT (No such file or directory)
open("/usr/lib/neon/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/neon/vfp", 0xbe9779a0) = -1 ENOENT (No such file or directory)
open("/usr/lib/neon/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/neon", 0xbe9779a0)     = -1 ENOENT (No such file or directory)
open("/usr/lib/vfp/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vfp", 0xbe9779a0)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libQtDBus.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=61440, ...}) = 0
writev(2, [{"qdbusxml2cpp", 12}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libQtDBus.so.4", 14}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10qdbusxml2cpp: error while loading shared libraries: libQtDBus.so.4: cannot open shared object file: No such file or directory
) = 126
exit_group(127)                         = ?
+++ exited with 127 +++


Seems like the command is searching in really weird places for the libraries and does not respect the ld.so.cache file at all. I started googling and found this:

Forum Post
Bug 454200
Bug 15006#c26
Possible Backport

What does it mean? Do I have to wait for the patch to be backported until I can start emerging anything again?

Thanks,

m.
Back to top
View user's profile Send private message
mansonquasch
n00b
n00b


Joined: 15 Jan 2007
Posts: 43

PostPosted: Wed Apr 24, 2013 5:37 am    Post subject: Reply with quote

I have tried to apply the above mentioned patch to glibc 2.17. Even though the patch applies flawlessly, the source doesn't compile...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum