Date: Thu, 21 Nov 2013 09:05:43 GMT From: Boris Samorodov <bsam@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/184138: [patch] graphics/dia: fix build at 10.x (error: /usr/bin/ld: cannot find -lstdc++) Message-ID: <201311210905.rAL95hbM065468@oldred.freebsd.org> Resent-Message-ID: <201311210910.rAL9A0T1020768@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 184138 >Category: ports >Synopsis: [patch] graphics/dia: fix build at 10.x (error: /usr/bin/ld: cannot find -lstdc++) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Nov 21 09:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Boris Samorodov >Release: FreeBSD 10-amd64 >Organization: BSDprint >Environment: FreeBSD srv.bb.tel.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #8 r254955: Tue Aug 27 20:04:38 SAMT 2013 bsam@srv.bb.tel.ru:/usr/obj/usr/src/sys/BB64X amd64 >Description: The port does not build at 10.x and 11.x, error log: ----- /bin/sh ../../libtool --tag=CXX --mode=link c++ -O2 -pipe -fno-strict-aliasing -export-dynamic -module -avoid-version -L/usr/local/lib -o libwmf_filter.la -rpath /usr/local/lib/dia wmf.lo -lEMF -lstdc++ -lpng -lz -lm -lz libtool: link: c++ -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o .libs/wmf.o -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/local/lib/libEMF.so -lstdc++ -lpng -lz -L/usr/lib -lc++ -lm -lc -lgcc -lgcc_s /usr/lib/crtendS.o /usr/lib/crtn.o -Wl,-soname -Wl,libwmf_filter.so -o .libs/libwmf_filter.so /usr/bin/ld: cannot find -lstdc++ c++: error: linker command failed with exit code 1 (use -v to see invocation) ----- Full log is at pkg-fallout@ ML: http://lists.freebsd.org/pipermail/freebsd-pkg-fallout/Week-of-Mon-20131118/057152.html >How-To-Repeat: >Fix: Remove from configure script explicit link with libstdc++. Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 331865) +++ Makefile (working copy) @@ -72,7 +72,7 @@ 's,\(^GTK_LIBS.*\),\1 ${PTHREAD_LIBS}, ; \ s,\(^GTK_CFLAGS = \),\1 ${PTHREAD_CFLAGS} ,' @${REINPLACE_CMD} -e 's|http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl|${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl| ; \ - s|echo aout|echo elf|g ; s|/usr/include/libEMF|${LOCALBASE}/include/libEMF|g' \ - ${WRKSRC}/configure + s|echo aout|echo elf|g ; s|/usr/include/libEMF|${LOCALBASE}/include/libEMF|g ; \ + s|-lstdc++||g' ${WRKSRC}/configure .include <bsd.port.post.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311210905.rAL95hbM065468>