Missing library symbolic link preventing compile with C++

Bug #581894 reported by Javier Lopez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.4 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gcc-4.4

Hi,

System: Kubuntu 10.04 (Lucid) 64 bit
Package: gcc-4.4
Package version: 4.4.3-4ubuntu5

Problem: Compiling a C++ program with 32 bit flag (that is, -m32) fails as it cannot be linked with (allegedly) missing library lib32stdc++6. On inspection of /usr/lib32 directory we can see that the library is indeed installed, but the symbolic link libstdc++.so is missing (it should be pointing to existing symbolic link libstdc++.so.6 that in turns points to also existing file libstdc++.so.6.0.13).

Solution: Upon creation of such a link, the linking process succeeded.

Regards.

Revision history for this message
Matthias Klose (doko) wrote :

just install gcc-multilib, the lib32stdc++6 only holds the runtime files.

Changed in gcc-4.4 (Ubuntu):
status: New → Invalid
Revision history for this message
Javier Lopez (javivi72) wrote :

Hi,

Thanks for the reply.

I already had gcc-multilib installed, as I was crosscompiling (-m32 in a 64 bits environment). Pure C was fine, but C++ was lacking the aforementioned symbolic link.

Thanks anyway.

Bye!

Revision history for this message
Matthias Klose (doko) wrote : Re: [Bug 581894] Re: Missing library symbolic link preventing compile with C++

On 16.06.2010 12:44, Javier Lopez wrote:
> Hi,
>
> Thanks for the reply.
>
> I already had gcc-multilib installed, as I was crosscompiling (-m32 in a
> 64 bits environment). Pure C was fine, but C++ was lacking the
> aforementioned symbolic link.

then it's g++-multilib

Revision history for this message
Javier Lopez (javivi72) wrote :

Hi again,

Thanks for taking the time to answer me.

I dind't have that package installed. I deleted the hand-created link and installed g++-multilib. Still the link is missing, and I had to recreated again by hand.

Sorry if I'm targeting the wrong package, but I'm a bit lost regarding package handling. I asked for the proper package in the ubuntu-bugsquad list and was kindly pointed to the one I posted about.

Regards.

Revision history for this message
Matthias Klose (doko) wrote :

On 16.06.2010 14:00, Javier Lopez wrote:
> Hi again,
>
> Thanks for taking the time to answer me.
>
> I dind't have that package installed. I deleted the hand-created link
> and installed g++-multilib. Still the link is missing, and I had to
> recreated again by hand.
>
> Sorry if I'm targeting the wrong package, but I'm a bit lost regarding
> package handling. I asked for the proper package in the ubuntu-bugsquad
> list and was kindly pointed to the one I posted about.

did you try to build/link after removing the symlink and installing the package?

Revision history for this message
Javier Lopez (javivi72) wrote :

Hi,

No, I didn't.

I have just removed (--purge) g++-multilib, deleted the hand-created link, and reinstalled g++-multilib, and the linking succeeded. No need to create any link by hand.

Thank you very much, and I am deeply sorry for having wasted your time.

Regards.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.