From nobody Fri Mar 03 09:55:43 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 4PSjzX6Tvrz3vjJK for ; Fri, 3 Mar 2023 09:56:24 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PSjzW72nNz46SJ for ; Fri, 3 Mar 2023 09:56:23 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=gF1BTHRV; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2a00:1450:4864:20::231 as permitted sender) smtp.mailfrom=odhiambo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lj1-x231.google.com with SMTP id y14so1758082ljq.4 for ; Fri, 03 Mar 2023 01:56:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677837382; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=6ePap8XnnxiL7QLU8GXbmG93UhyHpj8mi3R5gEijOCg=; b=gF1BTHRV4547HRM/gZp/BzHZbU+mG6cGCR1btuHuekrhhCLj3k22rd8OyZfMNDpLNl dwCIAcbsqcwsU3h/FjUTTgMW+pMzTNy1FNv//CNzgTAEQj9UzYo43NqMqFyG4Wkc/0gh KbErM1OF8p1iIUXHgAJv/5hd/YQ5QEOY4Xs4cMP0yum82nF+YHlwLf60LCRUD3B81yZ7 1r5vfAl4bM/Hp0LDilcVCBgUpVWAlQczE7oanYMofm6zoS5UqL/veMIKNo0A7/82rC0m E04WXMyqDJNgK3n92HxtN4r+Uhj1Amyska79T+1XA1iJAG0DAxC/qoa2eiDcbd5rqPtc yaRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677837382; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6ePap8XnnxiL7QLU8GXbmG93UhyHpj8mi3R5gEijOCg=; b=MYC/HcxyvS5/NZ9D8TRgfhXPyDV9AfrBJDRBkpZIoKOKualc8U/Im1xMgCDv3ldQw3 Ffiwu8Sougvro1vJDhnHE9R6BfbW8QOm2bRtjboKHd/o2eXZKtg5t9TxZJZmur4dvUPA D3MO5Cf3IVeAoGQM28wGMAKL72v72sf/V9l5bVQ2n7Lv7ObLAeazl5uzFR22/oIt7WXU DwrTWlM4USvoYpzcYQ//mwFWSM1Dkd/1Ndx2EzxDPC5t+UnTw0PvqgpxtRs9PWKIQZGq zMGUsSSAZ96xJ9/vjl4B3ychg/dR3JTg+gm5yAelCoCFYW1qY6BBS7jDwhDe0NCs4mcy hmjA== X-Gm-Message-State: AO0yUKWtNwGhydIzXddufXlH05s/G9n1ls/x9h/xpb7W40a30hzqTs2Q jUWiZQYKBiU407C1Y4UI7RtK+Syup2ytZnSAzKAQJGBMuWO9UPJ/ X-Google-Smtp-Source: AK7set8/TanEZs6UPQPS03pKb39jGxxYxYY2jmsnFtdx90uM3lQdyzckJVKdjUBLX8uLtH3e1521z7X7YkNhGdFeEDM= X-Received: by 2002:a2e:a4b7:0:b0:295:b0a8:952b with SMTP id g23-20020a2ea4b7000000b00295b0a8952bmr370690ljm.1.1677837382038; Fri, 03 Mar 2023 01:56:22 -0800 (PST) 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 From: Odhiambo Washington Date: Fri, 3 Mar 2023 12:55:43 +0300 Message-ID: Subject: ld: error: unable to find library -lstdc++ To: questions Content-Type: multipart/alternative; boundary="00000000000025b81c05f5fbf5ed" X-Spamd-Result: default: False [-3.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.978]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::231:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4PSjzW72nNz46SJ X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --00000000000025b81c05f5fbf5ed Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D`echo xapian_wrap.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/s= h ../libtool --tag=3DCXX --mode=3Dcompile c++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/python3.9 -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=3Dhidden -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=3Dhidden -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=3DCXX --mode=3Dlink c++ -fno-strict-aliasing -= Wall -Wno-unused -Wno-uninitialized -fvisibility=3Dhidden -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--- --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) --00000000000025b81c05f5fbf5ed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
FreeBSD-13.1-RELEASE here.

I am installing Xapian within a virtual environment and I am getting stuc= k

It might help to mention that I am using the scr= ipt at:=C2=A0https://github.com/notanumber/xapian-haystack/blo= b/master/install_xapian.sh

--8<------------= ---cut here---------------start------------->8---
depbase= =3D`echo xapian_wrap.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; /= bin/sh ../libtool =C2=A0--tag=3DCXX =C2=A0 =C2=A0--mode=3Dcompile c++ -DHAV= E_CONFIG_H =C2=A0-I. -I.. =C2=A0-I/usr/local/include/python3.9 =C2=A0 -fno-= strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=3Dhidden = -fvisibility-inlines-hidden -I/opt/mailman/mm/venv/include -g -O2 -MT xapia= n_wrap.lo -MD -MP -MF $depbase.Tpo -c -o xapian_wrap.lo xapian_wrap.cc &= ;& mv -f $depbase.Tpo $depbase.Plo
libtool: compile: =C2=A0c++ -DHAV= E_CONFIG_H -I. -I.. -I/usr/local/include/python3.9 -fno-strict-aliasing -Wa= ll -Wno-unused -Wno-uninitialized -fvisibility=3Dhidden -fvisibility-inline= s-hidden -I/opt/mailman/mm/venv/include -g -O2 -MT xapian_wrap.lo -MD -MP -= MF .deps/xapian_wrap.Tpo -c xapian_wrap.cc =C2=A0-fPIC -DPIC -o .libs/xapia= n_wrap.o
/bin/sh ../libtool =C2=A0--tag=3DCXX =C2=A0 =C2=A0--mode=3Dlink= c++ -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility= =3Dhidden -fvisibility-inlines-hidden -I/opt/mailman/mm/venv/include =C2=A0= -g -O2 -avoid-version -module -shrext ".cpython-39.so" =C2=A0 -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++ =C2=A0-fPIC -DPIC -shared -nostdlib = /usr/lib/crti.o /usr/lib/crtbeginS.o =C2=A0.libs/xapian_wrap.o =C2=A0 -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 =C2=A0-g -O2 =C2=A0 -Wl,-soname -Wl,_xapian.cpython-39.so -o .libs/_xapian.cpython-39.so
ld: error: unable to find library -lst= dc++
c++: error: linker command failed with exit code 1 (use -v to see i= nvocation)
*** Error code 1

Stop.
make[3]: stopped in /opt/mai= lman/mm/venv/packages/xapian-bindings-1.4.21/python3
*** Error code 1
Stop.
make[2]: stopped in /opt/mailman/mm/venv/packages/xapian-bind= ings-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-bindin= gs-1.4.21

--8<---------------cuthere-----------= -----end--------------->8---




--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 = 0004/+254 7 2274 3223
"Oh, the cru= ft.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2= =A0:-)
--00000000000025b81c05f5fbf5ed--