Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Mar 2023 12:55:43 +0300
From:      Odhiambo Washington <odhiambo@gmail.com>
To:        questions <questions@freebsd.org>
Subject:   ld: error: unable to find library -lstdc++
Message-ID:  <CAAdA2WO8Viy3Yy4GeVJxm9jZ9eqAUqzX9dPTt2v2HT5BLwBNww@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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---




-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)

[-- Attachment #2 --]
<div dir="ltr">Hi,<div>FreeBSD-13.1-RELEASE here.</div><div><br></div><div>I am installing Xapian within a virtual environment and I am getting stuck</div><div><br></div><div>It might help to mention that I am using the script at: <a href="https://github.com/notanumber/xapian-haystack/blob/master/install_xapian.sh">https://github.com/notanumber/xapian-haystack/blob/master/install_xapian.sh</a></div><div><br></div><div>--8&lt;---------------cut here---------------start-------------&gt;8---<br></div><div>depbase=`echo xapian_wrap.lo | sed &#39;s|[^/]*$|.deps/&amp;|;s|\.lo$||&#39;`; /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 &amp;&amp; mv -f $depbase.Tpo $depbase.Plo<br>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<br>/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 &quot;.cpython-39.so&quot;   -o _<a href="http://xapian.la">xapian.la</a>; -rpath /opt/mailman/mm/venv/lib/python3.9/site-packages/xapian xapian_wrap.lo -L/opt/mailman/mm/venv/lib -lxapian -lstdc++<br>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,_<a href="http://xapian.cpython-39.so">xapian.cpython-39.so</a>; -o .libs/_<a href="http://xapian.cpython-39.so">xapian.cpython-39.so</a><br>ld: error: unable to find library -lstdc++<br>c++: error: linker command failed with exit code 1 (use -v to see invocation)<br>*** Error code 1<br><br>Stop.<br>make[3]: stopped in /opt/mailman/mm/venv/packages/xapian-bindings-1.4.21/python3<br>*** Error code 1<br><br>Stop.<br>make[2]: stopped in /opt/mailman/mm/venv/packages/xapian-bindings-1.4.21/python3<br>*** Error code 1<br><br>Stop.<br>make[1]: stopped in /opt/mailman/mm/venv/packages/xapian-bindings-1.4.21<br>*** Error code 1<br><br>Stop.<br>make: stopped in /opt/mailman/mm/venv/packages/xapian-bindings-1.4.21</div><div><br></div><div>--8&lt;---------------cuthere----------------end---------------&gt;8---<br></div><div><br></div><div><br></div><div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>&quot;<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">&quot;, </span><span style="font-size:12.8px">egrep -v &#39;^$|^.*#&#39; </span><span style="background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:&quot;Lucida Console&quot;,Consolas,&quot;Courier New&quot;,monospace;font-size:13.6px">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div></div></div></div></div></div>
help

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