Opened 12 years ago

Closed 12 years ago

#36100 closed defect (fixed)

g++-mp-4.[567] ld: library not found for -lstdc++

Reported by: gnw3 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: libstdc++ Cc:
Port: gcc45, gcc46, gcc47

Description

Using Snow Leopard, just upgraded gcc45

$ port installed gcc45
The following ports are currently installed:
  gcc45 @4.5.4_2+universal (active)
$ ls -l /opt/local/lib/gcc45/libstdc++.*
lrwxr-xr-x  1 root  admin  26 11 Sep 08:15 /opt/local/lib/gcc45/libstdc++.6.dylib -> /usr/lib/libstdc++.6/dylib

Note the .6/dylib where .dylib is wanted. Also, the linker looks for libstdc++.dylib. A workaround is:

$ sudo ln -s /usr/lib/libstdc++.6.dylib libstdc++.dylib

The same problem appears in gcc46 and gcc47:

$ ls -l /opt/local/lib/gcc*/libstdc++.6.dylib
lrwxr-xr-x  1 root  admin  26 11 Sep 08:15 /opt/local/lib/gcc45/libstdc++.6.dylib -> /usr/lib/libstdc++.6/dylib
lrwxr-xr-x  1 root  admin  26 11 Sep 08:34 /opt/local/lib/gcc46/libstdc++.6.dylib -> /usr/lib/libstdc++.6/dylib
lrwxr-xr-x  1 root  admin  26 11 Sep 09:09 /opt/local/lib/gcc47/libstdc++.6.dylib -> /usr/lib/libstdc++.6/dylib

Change History (2)

comment:1 Changed 12 years ago by gnw3

Now I see this has already been addressed:[97664]: gcc4?: Fixed the libstdc++ symlink (see #35770)

comment:2 Changed 12 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.