Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2019 04:23:30 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r501768 - head/devel/gzstream
Message-ID:  <201905160423.x4G4NUv9086502@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Thu May 16 04:23:30 2019
New Revision: 501768
URL: https://svnweb.freebsd.org/changeset/ports/501768

Log:
  devel/gzstream: Link with ${CXX}
  
  libgzstream is a C++ library so should be linked with libc++.  This
  should unbreak consumers like audio/pianod2 after base r345349.
  Also use INSTALL_LIB to install the library and make the build
  respect LDFLAGS.
  
  ld: error: /usr/local/lib/libgzstream.so: undefined reference to std::__1::basic_streambuf<char, std::__1::char_traits<char> >::imbue(std::__1::locale const&)
  ...
  ld: error: /usr/local/lib/libgzstream.so: undefined reference to std::__1::ios_base::init(void*)
  ld: error: /usr/local/lib/libgzstream.so: undefined reference to std::__1::basic_ios<char, std::__1::char_traits<char> >::~basic_ios()
  ld: error: /usr/local/lib/libgzstream.so: undefined reference to typeinfo for std::__1::basic_streambuf<char, std::__1::char_traits<char> >
  ld: error: /usr/local/lib/libgzstream.so: undefined reference to typeinfo for std::__1::basic_ios<char, std::__1::char_traits<char> >
  ld: error: /usr/local/lib/libgzstream.so: undefined reference to vtable for __cxxabiv1::__vmi_class_type_info
  
  http://beefy12.nyi.freebsd.org/data/head-amd64-default/p501607_s347555/logs/errors/pianod2-301.log

Modified:
  head/devel/gzstream/Makefile

Modified: head/devel/gzstream/Makefile
==============================================================================
--- head/devel/gzstream/Makefile	Thu May 16 04:23:24 2019	(r501767)
+++ head/devel/gzstream/Makefile	Thu May 16 04:23:30 2019	(r501768)
@@ -3,7 +3,7 @@
 
 PORTNAME=	gzstream
 DISTVERSION=	1.5
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	http://www.cs.unc.edu/Research/compgeom/gzstream/
 DISTNAME=	${PORTNAME}
@@ -24,11 +24,11 @@ CFLAGS+=	-fPIC -iquote.
 
 post-patch:
 	@${REINPLACE_CMD} -e 's/=/?=/;s/\.a/.so/g;s/CPPFL/CXXFL/g;\
-		s/{AR}/{CC} $${CFLAGS} -lz -shared -Wl,-soname=lib${PORTNAME}.so.0 -o/' ${WRKSRC}/${MAKEFILE}
+		s/{AR}/{CXX} $${LDFLAGS} -lz -shared -Wl,-soname=lib${PORTNAME}.so.0 -o/' ${WRKSRC}/${MAKEFILE}
 	@${REINPLACE_CMD} -e '/gzstream\.h/y/<>/""/' ${WRKSRC}/gzstream.C
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/lib${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.0
+	${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.0
 	${LN} -sf lib${PORTNAME}.so.0 ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so
 	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.h ${STAGEDIR}${PREFIX}/include/
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905160423.x4G4NUv9086502>