Bug 186276

Summary: /usr/bin/ld: cannot find -lstdc++ (FreeBSD 10-RELEASE) in math/gmp graphics/tiff audio/flac
Product: Ports & Packages Reporter: Marcin Gryszkalis <mg>
Component: Individual Port(s)Assignee: Thomas Zander <riggs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Marcin Gryszkalis 2014-01-30 14:30:00 UTC
Cannot build these 3 libraries because of mentioned error.
Seems to be the same as ports/184963

How-To-Repeat:     portmaster audio/flac

--- libFLAC++.la ---
/bin/sh /usr/local/bin/libtool  --tag=CXX    --mode=link c++   -O2 -pipe -O2 -pipe -g -DLIBICONV_PLUG -fno-strict-aliasing -DLIBICONV_PLUG -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef  -fvisibility=hidden  -version-info 9:0:3 -L/usr/lib -o libFLAC++.la -rpath /usr/local/lib metadata.lo stream_decoder.lo  stream_encoder.lo ../libFLAC/libFLAC.la -lm
libtool: link: c++  -fPIC -DPIC -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o  .libs/metadata.o .libs/stream_decoder.o .libs/stream_encoder.o   -Wl,-rpath -Wl,/usr/ports/audio/flac/work/flac-1.3.0/src/libFLAC/.libs -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/lib ../libFLAC/.libs/libFLAC.so -L/usr/local/lib /usr/local/lib/libogg.so -lstdc++ -lm -lc -lgcc_s /usr/lib/crtendS.o /usr/lib/crtn.o  -O2 -O2   -Wl,-soname -Wl,libFLAC++.so.9 -o .libs/libFLAC++.so.9
/usr/bin/ld: cannot find -lstdc++
c++: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-01-30 14:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2014-02-03 11:16:05 UTC
Responsible Changed
From-To: ale->freebsd-ports-bugs

Return to the pool.
Comment 3 Thomas Zander freebsd_committer freebsd_triage 2014-02-09 07:14:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->riggs

I'll take it.
Comment 4 Thomas Zander freebsd_committer freebsd_triage 2014-02-09 07:59:04 UTC
State Changed
From-To: open->feedback

These ports build on my test system with an up-to-date ports tree. Can 
you confirm? Thanks!
Comment 5 Thomas Zander freebsd_committer freebsd_triage 2014-02-12 19:28:33 UTC
State Changed
From-To: feedback->closed

Issue was caused by old libtool installation which was built on FreeBSD 
9.x. Rebuilding libtool fixed the problem. Now it correctly links to 
libc++ instread trying to link to libstdc++.