Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gparted 0.25, undefined reference to `Glib::ustring::ustring
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
davidshen84
Apprentice
Apprentice


Joined: 09 Aug 2008
Posts: 263

PostPosted: Mon Feb 29, 2016 11:36 am    Post subject: gparted 0.25, undefined reference to `Glib::ustring::ustring Reply with quote

Hi,

My system is Gentoo 64 bit. GCC version is gcc (Gentoo 5.3.0 p1.0, pie-0.6.5) 5.3.0. I got this error while emerging sys-block/gparted-0.25.0

Code:
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/libgtkmm-2.4.so: undefined reference to `Glib::ustring::ustring(std::string const&)'


My system has gparted 0.24.0 emerged, and it got "segment faults" when I try to launch it.

I think it is because I upgraded my GCC recently. I have followed https://wiki.gentoo.org/wiki/Upgrading_GCC to upgrade my system. But I still got this problem. It seems it is the only package I got trouble with after I upgrade my GCC.

I also tried to re-emerge packages that provide libgtkmm, but it did not help.


Please help.

Thanks,
David
_________________
David Shen
Back to top
View user's profile Send private message
davidshen84
Apprentice
Apprentice


Joined: 09 Aug 2008
Posts: 263

PostPosted: Mon Feb 29, 2016 11:45 am    Post subject: Reply with quote

If I try to run my already emerged gparted-0.24.0, I found this message in my journal file:

Code:
gpartedbin[24755]: segfault at 0 ip 00007fd682ec5b6a sp 00007ffe13f1cf60 error 6 in libstdc++.so.6.0.21[7fd682da6000+173000]


I found this file at /usr/lib64/gcc/x86_64-pc-linux-gnu/5.3.0/32/libstdc++.so.6.0.21, but "qfile" reports that it does not belong to any file.

Any idea?
_________________
David Shen
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Mon Feb 29, 2016 3:18 pm    Post subject: Reply with quote

gparted-0.25.0 emerges and runs here; same gcc --version; perhaps the following info will help:

equery belongs libstdc++.so.6.0.21
* Searching for libstdc++.so.6.0.21 ...
sys-devel/gcc-5.3.0 (/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/32/libstdc++.so.6.0.21)
sys-devel/gcc-5.3.0 (/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/libstdc++.so.6.0.21)

ls -l /usr/lib64/gcc/x86_64-pc-linux-gnu/5.3.0/32/libstdc*
-rw-r--r-- 1 root root 4325296 Dec 22 12:25 /usr/lib64/gcc/x86_64-pc-linux-gnu/5.3.0/32/libstdc++.a
-rw-r--r-- 1 root root 638618 Dec 22 12:25 /usr/lib64/gcc/x86_64-pc-linux-gnu/5.3.0/32/libstdc++fs.a
-rwxr-xr-x 1 root root 923 Dec 22 12:25 /usr/lib64/gcc/x86_64-pc-linux-gnu/5.3.0/32/libstdc++fs.la
lrwxrwxrwx 1 root root 19 Dec 22 12:25 /usr/lib64/gcc/x86_64-pc-linux-gnu/5.3.0/32/libstdc++.so -> libstdc++.so.6.0.21
lrwxrwxrwx 1 root root 19 Dec 22 12:25 /usr/lib64/gcc/x86_64-pc-linux-gnu/5.3.0/32/libstdc++.so.6 -> libstdc++.so.6.0.21
-rwxr-xr-x 1 root root 1524732 Dec 22 12:25 /usr/lib64/gcc/x86_64-pc-linux-gnu/5.3.0/32/libstdc++.so.6.0.21

equery belongs libgtkmm-2.4.so.1.1.0
* Searching for libgtkmm-2.4.so.1.1.0 ...
dev-cpp/gtkmm-2.24.4-r3 (/usr/lib64/libgtkmm-2.4.so.1.1.0)
dev-cpp/gtkmm-2.24.4-r3 (/usr/lib32/libgtkmm-2.4.so.1.1.0)

ls -l /usr/lib32/libgtkmm*
lrwxrwxrwx 1 root root 21 Feb 23 11:00 /usr/lib32/libgtkmm-2.4.so -> libgtkmm-2.4.so.1.1.0
lrwxrwxrwx 1 root root 21 Feb 23 11:00 /usr/lib32/libgtkmm-2.4.so.1 -> libgtkmm-2.4.so.1.1.0
-rwxr-xr-x 1 root root 3345880 Feb 23 11:00 /usr/lib32/libgtkmm-2.4.so.1.1.0
fx8150 ~ # ls -l /usr/lib64/libgtkmm*
lrwxrwxrwx 1 root root 21 Feb 23 11:00 /usr/lib64/libgtkmm-2.4.so -> libgtkmm-2.4.so.1.1.0
lrwxrwxrwx 1 root root 21 Feb 23 11:00 /usr/lib64/libgtkmm-2.4.so.1 -> libgtkmm-2.4.so.1.1.0
-rwxr-xr-x 1 root root 4372784 Feb 23 11:00 /usr/lib64/libgtkmm-2.4.so.1.1.0
_________________
Defund the FCC.
Back to top
View user's profile Send private message
davidshen84
Apprentice
Apprentice


Joined: 09 Aug 2008
Posts: 263

PostPosted: Sat Mar 05, 2016 6:00 am    Post subject: Reply with quote

Thanks a lot, I found out the problem

ls -l /usr/lib32/libgtkmm*

Gives me file not found...Because I don't have abi_x86_32 enabled on my system...

Why gparted started to require 32bit library on a 64 bit system? Do you guys think it is a but?


Thanks,
David
_________________
David Shen
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Sat Mar 05, 2016 5:39 pm    Post subject: Reply with quote

I've got gparted-0.25.0 installed

and

equery belongs libgtkmm-2.4.so.1.1.0
* Searching for libgtkmm-2.4.so.1.1.0 ...
dev-cpp/gtkmm-2.24.4-r3 (/usr/lib64/libgtkmm-2.4.so.1.1.0)

ls /usr/lib32/libgtkmm-2.4.so.1.1.0
ls: cannot access '/usr/lib32/libgtkmm-2.4.so.1.1.0': No such file or directory

did you try to rebuild parted first? as gparted calls libparted ..
Back to top
View user's profile Send private message
davidshen84
Apprentice
Apprentice


Joined: 09 Aug 2008
Posts: 263

PostPosted: Sat Mar 12, 2016 3:37 am    Post subject: Reply with quote

derk wrote:
I've got gparted-0.25.0 installed

and

equery belongs libgtkmm-2.4.so.1.1.0
* Searching for libgtkmm-2.4.so.1.1.0 ...
dev-cpp/gtkmm-2.24.4-r3 (/usr/lib64/libgtkmm-2.4.so.1.1.0)

ls /usr/lib32/libgtkmm-2.4.so.1.1.0
ls: cannot access '/usr/lib32/libgtkmm-2.4.so.1.1.0': No such file or directory

did you try to rebuild parted first? as gparted calls libparted ..


Looks like you are facing the same issue as I did. Try:

emerge -1 =dev-cpp/gtkmm-2.24.4-r3

I think gparted-0.25.0 specifically require the 2.xx version of gtkmm library. And for some reason this library is broken after I upgraded to gcc 5.

Hop it helps~
_________________
David Shen
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Sat Mar 12, 2016 11:07 am    Post subject: Reply with quote

gcc-5.3.0 upgrade basically requires a rebuild of most libraries as ABI calls change slightly as C++ calls now default to C++11 .. as per 'eselect news read 34'

the 32 bit library is not needed unless you are using 32 bit abi based programs .. my gparted works fine w/o it .. :)
Back to top
View user's profile Send private message
davidshen84
Apprentice
Apprentice


Joined: 09 Aug 2008
Posts: 263

PostPosted: Sat Mar 12, 2016 11:42 am    Post subject: Reply with quote

Yes, I noticed a lot packages in my system require abi 32...have not figured out why. Thanks for the hint.
_________________
David Shen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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