When building ufraw with gcc46 I get the following link error: gcc46 -I/usr/local/include -D_THREAD_SAFE -D_REENTRANT -I/usr/local/include -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include/glib-2.0 -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/include -I/usr/local/include/ -I/usr/local/include/glib-2.0 -I/usr/local/include -D_STAND_ALONE_ -O2 -pipe -fno-strict-aliasing -fopenmp -L/usr/local/lib -pthread -o nikon-curve nikon_curve-nikon_curve.o -L/usr/local/lib -lexiv2 -pthread -L/usr/local/lib -lgthread-2.0 -lglib-2.0 -L/usr/local/lib -llcms -L/usr/local/lib/ -L/usr/local/lib -llensfun -lglib-2.0 -L/usr/local/lib -lpng -lz -lm -ltiff -ljpeg -lbz2 -lz -lm -lintl /usr/local/lib/libexiv2.so: undefined reference to `std::__detail::_List_node_base::swap(std::__detail::_List_node_base&, std::__detail::_List_node_base&)@GLIBCXX_3.4.15' /usr/local/lib/libexiv2.so: undefined reference to `std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*, std::__detail::_List_node_base*)@GLIBCXX_3.4.15' /usr/local/lib/libexiv2.so: undefined reference to `std::__detail::_List_node_base::_M_unhook()@GLIBCXX_3.4.15' /usr/local/lib/libexiv2.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15' /usr/local/lib/libexiv2.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11' Fix: When creating the nikon-curve app, the Makefile calls gcc46 which does not automatically include the libstdc++.so library causing the undefined symbols. By calling g++46 instead, libstdc++.so is included in the link resolving the symbols. Patch attached with submission follows: How-To-Repeat: With gcc46 installed and the CC, CXX, CPP variables pointing to gcc46 cd /usr/ports/graphics/ufraw make install
Responsible Changed From-To: freebsd-ports-bugs->miwi I'll take it.
State Changed From-To: open->closed Committed. Thanks!
miwi 2012-01-27 17:45:36 UTC FreeBSD ports repository Added files: graphics/ufraw/files patch-Makefile Log: - Fix build with gcc4.6 PR: 164141 Submitted by: Heath Nielson <heathn@gmail.com> Revision Changes Path 1.3 +34 -0 ports/graphics/ufraw/files/patch-Makefile (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"