From nobody Fri Mar 03 14:54:58 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PSrcC2QC6z3w1H0 for ; Fri, 3 Mar 2023 14:55:07 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [94.130.200.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail.bsd4all.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PSrc94hnyz3GBG for ; Fri, 3 Mar 2023 14:55:05 +0000 (UTC) (envelope-from herbert@gojira.at) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gojira.at header.s=mail202005 header.b=vhLdLsSR; spf=pass (mx1.freebsd.org: domain of herbert@gojira.at designates 94.130.200.20 as permitted sender) smtp.mailfrom=herbert@gojira.at; dmarc=none Date: Fri, 3 Mar 2023 15:54:58 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gojira.at; s=mail202005; t=1677855298; bh=7BvwUkpOfOyFeZDuQxJhr00dUMd5SU0JZvdBT4Ux+h8=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=vhLdLsSR5LOGScsnsQyCrjpAng4VWyixTvRr4kINWQuQiJU6DLaMJG1qsuoydrnto t2WOC6AfSfV22hS8ews3Mb8fKrLUdXKwnx822qRT0Hf4axQ7IdZxybt08Y2ksuPGys zwrtwCJcK76Pcp/l7mK6JanVW+8uRkGADG/87TLhnbKDXzOMoV80PgTUQO0pNQcupz ipm+Xfe6kSYp38oX2rXB4m1RqzLg5cFLkMcLBQo0FIRz6M0uJj55vPCbVIJ1IInaXj Ld5GqMDeCd8X3GATtwRk3B5+63txFAGwcnWmcgbrt8PkzKQ3x/IKkCyjCabBW2PNJ1 yf6XFJDLpqUzw== From: "Herbert J. Skuhra" To: questions@freebsd.org Subject: Re: ld: error: unable to find library -lstdc++ Message-ID: References: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; R_SPF_ALLOW(-0.20)[+ip4:94.130.200.20]; R_DKIM_ALLOW(-0.20)[gojira.at:s=mail202005]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[gojira.at:+]; ARC_NA(0.00)[]; DMARC_NA(0.00)[gojira.at]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:24940, ipnet:94.130.0.0/16, country:DE] X-Rspamd-Queue-Id: 4PSrc94hnyz3GBG X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On Fri, Mar 03, 2023 at 12:55:43PM +0300, Odhiambo Washington wrote: > Hi, > FreeBSD-13.1-RELEASE here. > > I am installing Xapian within a virtual environment and I am getting stuck > > It might help to mention that I am using the script at: > https://github.com/notanumber/xapian-haystack/blob/master/install_xapian.sh > > --8<---------------cut here---------------start------------->8--- > depbase=`echo xapian_wrap.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/sh > ../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I.. > -I/usr/local/include/python3.9 -fno-strict-aliasing -Wall -Wno-unused > -Wno-uninitialized -fvisibility=hidden -fvisibility-inlines-hidden > -I/opt/mailman/mm/venv/include -g -O2 -MT xapian_wrap.lo -MD -MP -MF > $depbase.Tpo -c -o xapian_wrap.lo xapian_wrap.cc && mv -f $depbase.Tpo > $depbase.Plo > libtool: compile: c++ -DHAVE_CONFIG_H -I. -I.. > -I/usr/local/include/python3.9 -fno-strict-aliasing -Wall -Wno-unused > -Wno-uninitialized -fvisibility=hidden -fvisibility-inlines-hidden > -I/opt/mailman/mm/venv/include -g -O2 -MT xapian_wrap.lo -MD -MP -MF > .deps/xapian_wrap.Tpo -c xapian_wrap.cc -fPIC -DPIC -o .libs/xapian_wrap.o > /bin/sh ../libtool --tag=CXX --mode=link c++ -fno-strict-aliasing -Wall > -Wno-unused -Wno-uninitialized -fvisibility=hidden > -fvisibility-inlines-hidden -I/opt/mailman/mm/venv/include -g -O2 > -avoid-version -module -shrext ".cpython-39.so" -o _xapian.la -rpath > /opt/mailman/mm/venv/lib/python3.9/site-packages/xapian xapian_wrap.lo > -L/opt/mailman/mm/venv/lib -lxapian -lstdc++ > libtool: link: c++ -fPIC -DPIC -shared -nostdlib /usr/lib/crti.o > /usr/lib/crtbeginS.o .libs/xapian_wrap.o -Wl,-rpath > -Wl,/opt/mailman/mm/venv/lib -Wl,-rpath -Wl,/opt/mailman/mm/venv/lib > -L/opt/mailman/mm/venv/lib /opt/mailman/mm/venv/lib/libxapian.so -lz -lrt > -lstdc++ -L/usr/lib -lc++ -lm -lc -lgcc -lgcc_s /usr/lib/crtendS.o > /usr/lib/crtn.o -g -O2 -Wl,-soname -Wl,_xapian.cpython-39.so -o .libs/_ > xapian.cpython-39.so > ld: error: unable to find library -lstdc++ > c++: error: linker command failed with exit code 1 (use -v to see > invocation) > *** Error code 1 > > Stop. > make[3]: stopped in > /opt/mailman/mm/venv/packages/xapian-bindings-1.4.21/python3 > *** Error code 1 > > Stop. > make[2]: stopped in > /opt/mailman/mm/venv/packages/xapian-bindings-1.4.21/python3 > *** Error code 1 > > Stop. > make[1]: stopped in /opt/mailman/mm/venv/packages/xapian-bindings-1.4.21 > *** Error code 1 > > Stop. > make: stopped in /opt/mailman/mm/venv/packages/xapian-bindings-1.4.21 > > --8<---------------cuthere----------------end--------------->8--- The port databases/py-xapian does: post-patch: @${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure So you can try to add sed -i.bak -e 's|-lstdc++||g' configure before line 45 of install_xapian.sh. -- Herbert