[MacPorts] #36100: g++-mp-4.[567] ld: library not found for -lstdc++
MacPorts
noreply at macports.org
Tue Sep 11 06:45:11 PDT 2012
#36100: g++-mp-4.[567] ld: library not found for -lstdc++
------------------------------+---------------------------------------------
Reporter: gnwiii@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: libstdc++ | Port: gcc45, gcc46, gcc47
------------------------------+---------------------------------------------
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
}}}
--
Ticket URL: <https://trac.macports.org/ticket/36100>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list