Re: /usr/bin/ld: cannot find -lstdc++ on Red Hat Enterprise Linux release 8.9 (Ootpa)

Mike Burger <[email protected]> Tue, 9 Apr 2024 13:08:58 +0000
Newsgroups gmane.linux.redhat.general
Message-ID <0100018ec2f9db31-2fcf397f-881e-43fd-a7b7-3a788b962293-000000@email.amazonses.com>
--=_4112aa0d0a5de61244f9f96ad6e20078
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"; format=flowed

Google returns a ton of results for the same issue, including options to=20
remediate:

https://www.google.com/search?q=3D%22%2Fusr%2Fbin%2Fld%3A%2520cannot%2520fi=
nd%2520-lstdc%2B%2B%22=20
[1]

On 2024-04-09 00:21, Kaushal Shriyan wrote:

> On Tue, Apr 9, 2024 at 9:37=E2=80=AFAM Kaushal Shriyan=20
> <[email protected]> wrote:
>=20
>> Hi,
>>=20
>> I am compiling the below application to generate livestatus.o file as=20
>> per https://www.thruk.org/documentation/install.html#_livestatus
>>=20
>> #cd /root/checkmk-1.2.8/livestatus
>> #./configure
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking whether build environment is sane... yes
>> checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
>> checking for gawk... gawk
>> checking whether make sets $(MAKE)... yes
>> checking whether make supports nested variables... yes
>> checking for gcc-7... no
>> checking for clang-5.0... no
>> checking for gcc-6... no
>> checking for gcc-5... no
>> checking for clang-3.9... no
>> checking for clang-3.8... no
>> checking for clang-3.7... no
>> checking for clang-3.6... no
>> checking for clang-3.5... no
>> checking for clang-3.4... no
>> checking for gcc-4.9... no
>> checking for gcc-4.8... no
>> checking for gcc... gcc
>> checking whether the C compiler works... yes
>> checking for C compiler default output file name... a.out
>> checking for suffix of executables...
>> checking whether we are cross compiling... no
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether gcc accepts -g... yes
>> checking for gcc option to accept ISO C89... none needed
>> checking whether gcc understands -c and -o together... yes
>> checking whether make supports the include directive... yes (GNU=20
>> style)
>> checking dependency style of gcc... gcc3
>> checking for g++-7... no
>> checking for clang++-5.0... no
>> checking for g++-6... no
>> checking for g++-5... no
>> checking for clang++-3.9... no
>> checking for clang++-3.8... no
>> checking for clang++-3.7... no
>> checking for clang++-3.6... no
>> checking for clang++-3.5... no
>> checking for clang++-3.4... no
>> checking for g++-4.9... no
>> checking for g++-4.8... no
>> checking for g++... g++
>> checking whether we are using the GNU C++ compiler... yes
>> checking whether g++ accepts -g... yes
>> checking dependency style of g++... gcc3
>> checking for ranlib... ranlib
>> checking for ar... ar
>> checking the archiver (ar) interface... ar
>> checking for socket in -lsocket... no
>> checking for connect in -lsocket... no
>> checking for shutdown in -lsocket... no
>> checking for dirent.h that defines DIR... yes
>> checking for library containing opendir... none required
>> checking how to run the C preprocessor... gcc -E
>> checking for grep that handles long lines and -e... /usr/bin/grep
>> checking for egrep... /usr/bin/grep -E
>> checking for ANSI C header files... yes
>> checking for sys/wait.h that is POSIX.1 compatible... yes
>> checking for sys/types.h... yes
>> checking for sys/stat.h... yes
>> checking for stdlib.h... yes
>> checking for string.h... yes
>> checking for memory.h... yes
>> checking for strings.h... yes
>> checking for inttypes.h... yes
>> checking for stdint.h... yes
>> checking for unistd.h... yes
>> checking arpa/inet.h usability... yes
>> checking arpa/inet.h presence... yes
>> checking for arpa/inet.h... yes
>> checking fcntl.h usability... yes
>> checking fcntl.h presence... yes
>> checking for fcntl.h... yes
>> checking limits.h usability... yes
>> checking limits.h presence... yes
>> checking for limits.h... yes
>> checking netdb.h usability... yes
>> checking netdb.h presence... yes
>> checking for netdb.h... yes
>> checking netinet/in.h usability... yes
>> checking netinet/in.h presence... yes
>> checking for netinet/in.h... yes
>> checking for stdint.h... (cached) yes
>> checking for stdlib.h... (cached) yes
>> checking for string.h... (cached) yes
>> checking for strings.h... (cached) yes
>> checking sys/socket.h usability... yes
>> checking sys/socket.h presence... yes
>> checking for sys/socket.h... yes
>> checking sys/time.h usability... yes
>> checking sys/time.h presence... yes
>> checking for sys/time.h... yes
>> checking sys/timeb.h usability... yes
>> checking sys/timeb.h presence... yes
>> checking for sys/timeb.h... yes
>> checking syslog.h usability... yes
>> checking syslog.h presence... yes
>> checking for syslog.h... yes
>> checking for unistd.h... (cached) yes
>> checking for stdbool.h that conforms to C99... yes
>> checking for _Bool... yes
>> checking for an ANSI C-conforming const... yes
>> checking for inline... inline
>> checking for int32_t... yes
>> checking for int64_t... yes
>> checking for size_t... yes
>> checking for ssize_t... yes
>> checking whether time.h and sys/time.h may both be included... yes
>> checking for uint32_t... yes
>> checking for uint64_t... yes
>> checking for stdlib.h... (cached) yes
>> checking for GNU libc compatible malloc... yes
>> checking for stdlib.h... (cached) yes
>> checking for GNU libc compatible realloc... yes
>> checking sys/select.h usability... yes
>> checking sys/select.h presence... yes
>> checking for sys/select.h... yes
>> checking for sys/socket.h... (cached) yes
>> checking types of arguments for select... int,fd_set *,struct timeval=20
>> *
>> checking return type of signal handlers... void
>> checking whether lstat correctly handles trailing slash... yes
>> checking whether stat accepts an empty string... no
>> checking for bzero... yes
>> checking for gettimeofday... yes
>> checking for memmove... yes
>> checking for regcomp... yes
>> checking for select... yes
>> checking for socket... yes
>> checking for strcasecmp... yes
>> checking for strdup... yes
>> checking for strerror... yes
>> checking for strtoul... yes
>> checking that generated files are newer than configure... done
>> configure: creating ./config.status
>> config.status: creating Makefile
>> config.status: creating src/Makefile
>> config.status: creating config.h
>> config.status: config.h is unchanged
>> config.status: executing depfiles commands
>>=20
>> #make
>> g++  -s -fPIC -shared livestatus_so-AndingFilter.o=20
>> livestatus_so-ClientQueue.o livestatus_so-Column.o=20
>> livestatus_so-ColumnsColumn.o livestatus_so-CustomVarsExplicitColumn.o=
=20
>> livestatus_so-ContactsColumn.o livestatus_so-CustomVarsColumn.o=20
>> livestatus_so-CustomVarsFilter.o livestatus_so-DoubleColumn.o=20
>> livestatus_so-DoubleColumnFilter.o livestatus_so-DowntimeOrComment.o=20
>> livestatus_so-DownCommColumn.o livestatus_so-DynamicColumn.o=20
>> livestatus_so-EmptyColumn.o livestatus_so-NullColumn.o=20
>> livestatus_so-Filter.o livestatus_so-GlobalCountersColumn.o=20
>> livestatus_so-HostContactsColumn.o livestatus_so-HostgroupsColumn.o=20
>> livestatus_so-HostlistColumn.o livestatus_so-HostlistColumnFilter.o=20
>> livestatus_so-HostlistStateColumn.o livestatus_so-MetricsColumn.o=20
>> livestatus_so-HostSpecialIntColumn.o=20
>> livestatus_so-ServiceSpecialIntColumn.o livestatus_so-InputBuffer.o=20
>> livestatus_so-IntColumn.o livestatus_so-IntColumnFilter.o=20
>> livestatus_so-ListColumn.o livestatus_so-ListColumnFilter.o=20
>> livestatus_so-OffsetDoubleColumn.o livestatus_so-OffsetIntColumn.o=20
>> livestatus_so-OffsetStringColumn.o=20
>> livestatus_so-OffsetTimeperiodColumn.o livestatus_so-OringFilter.o=20
>> livestatus_so-OutputBuffer.o livestatus_so-OffsetTimeColumn.o=20
>> livestatus_so-TimePointerColumn.o livestatus_so-TimeColumnFilter.o=20
>> livestatus_so-PerfdataAggregator.o livestatus_so-Query.o=20
>> livestatus_so-ServiceContactsColumn.o=20
>> livestatus_so-ServicegroupsColumn.o livestatus_so-ServicelistColumn.o=20
>> livestatus_so-ServicelistColumnFilter.o=20
>> livestatus_so-ServicelistStateColumn.o livestatus_so-store_c.o=20
>> livestatus_so-Store.o livestatus_so-StringColumn.o=20
>> livestatus_so-StringColumnFilter.o livestatus_so-strutil.o=20
>> livestatus_so-Table.o livestatus_so-TableColumns.o=20
>> livestatus_so-StatusSpecialIntColumn.o=20
>> livestatus_so-HostSpecialDoubleColumn.o livestatus_so-TableCommands.o=20
>> livestatus_so-TableContacts.o livestatus_so-TableDownComm.o=20
>> livestatus_so-TableHostgroups.o=20
>> livestatus_so-ServiceSpecialDoubleColumn.o livestatus_so-TableHosts.o=20
>> livestatus_so-TableServicegroups.o livestatus_so-TableServices.o=20
>> livestatus_so-TableStatus.o livestatus_so-LogEntry.o=20
>> livestatus_so-LogCache.o livestatus_so-Logfile.o=20
>> livestatus_so-TableStateHistory.o livestatus_so-TableLog.o=20
>> livestatus_so-TableTimeperiods.o livestatus_so-TableContactgroups.o=20
>> livestatus_so-ContactgroupsMemberColumn.o=20
>> livestatus_so-OffsetStringMacroColumn.o=20
>> livestatus_so-OffsetStringServiceMacroColumn.o=20
>> livestatus_so-OffsetStringHostMacroColumn.o=20
>> livestatus_so-StatsColumn.o livestatus_so-IntAggregator.o=20
>> livestatus_so-CountAggregator.o livestatus_so-DoubleAggregator.o=20
>> livestatus_so-AttributelistColumn.o=20
>> livestatus_so-AttributelistFilter.o livestatus_so-BlobColumn.o=20
>> livestatus_so-HostFileColumn.o livestatus_so-global_counters.o=20
>> livestatus_so-module.o livestatus_so-logger.o=20
>> livestatus_so-waittriggers.o livestatus_so-TimeperiodsCache.o=20
>> livestatus_so-pnp4nagios.o livestatus_so-mk_inventory.o=20
>> livestatus_so-ContactgroupsColumn.o=20
>> livestatus_so-CustomTimeperiodColumn.o=20
>> livestatus_so-HostServiceState.o livestatus_so-opids.o=20
>> livestatus_so-auth.o -o livestatus.o -lpthread -static-libstdc++
>> /usr/bin/ld: cannot find -lstdc++
>> collect2: error: ld returned 1 exit status
>> make[2]: *** [Makefile:2535: livestatus.o] Error 1
>> make[2]: Leaving directory '/root/checkmk-1.2.8/livestatus/src'
>> make[1]: *** [Makefile:383: all-recursive] Error 1
>> make[1]: Leaving directory '/root/checkmk-1.2.8/livestatus'
>> make: *** [Makefile:324: all] Error 2
>>=20
>> # rpm -qa | grep libstdc++
>> libstdc++-devel-8.5.0-20.el8.x86_64
>> libstdc++-8.5.0-20.el8.x86_64
>>=20
>> #cat /etc/redhat-release Red Hat Enterprise Linux release 8.9 (Ootpa)
>> #
>>=20
>> I am not sure what is causing /usr/bin/ld: cannot find -lstdc++ when=20
>> the above library is already present. Am I missing anything?
>>=20
>> Please guide me.
>>=20
>> Best Regards,
>>=20
>> Kaushal
>=20
> Hi,
>=20
> Further to the previous email, I have followed these extra steps.
>=20
> #export LD_LIBRARY_PATH=3D/usr/lib/gcc/x86_64-redhat-linux/8
> #echo $LD_LIBRARY_PATH
> /usr/lib/gcc/x86_64-redhat-linux/8
> #ls -l /usr/lib/gcc/x86_64-redhat-linux/8
> total 5404
> drwxr-xr-x 2 root root    4096 Apr  9 07:26 32
> -rw-r--r-- 1 root root    2960 Jun 15  2023 crtbegin.o
> -rw-r--r-- 1 root root    3200 Jun 15  2023 crtbeginS.o
> -rw-r--r-- 1 root root    3480 Jun 15  2023 crtbeginT.o
> -rw-r--r-- 1 root root    1632 Jun 15  2023 crtend.o
> -rw-r--r-- 1 root root    1632 Jun 15  2023 crtendS.o
> -rw-r--r-- 1 root root    4648 Jun 15  2023 crtfastmath.o
> -rw-r--r-- 1 root root    1656 Jun 15  2023 crtoffloadbegin.o
> -rw-r--r-- 1 root root    1648 Jun 15  2023 crtoffloadend.o
> -rw-r--r-- 1 root root    1872 Jun 15  2023 crtoffloadtable.o
> -rw-r--r-- 1 root root    4160 Jun 15  2023 crtprec32.o
> -rw-r--r-- 1 root root    4168 Jun 15  2023 crtprec64.o
> -rw-r--r-- 1 root root    4160 Jun 15  2023 crtprec80.o
> drwxr-xr-x 3 root root    4096 Apr  3 09:03 include
> -rw-r--r-- 1 root root      38 Jun 15  2023 libasan.so
> -rw-r--r-- 1 root root   18128 Jun 15  2023 libasan_preinit.o
> -rw-r--r-- 1 root root      40 Jun 15  2023 libatomic.so
> -rw-r--r-- 1 root root 3157710 Jun 15  2023 libgcc.a
> -rw-r--r-- 1 root root   59712 Jun 15  2023 libgcc_eh.a
> -rw-r--r-- 1 root root     195 Jun 15  2023 libgcc_s.so
> -rw-r--r-- 1 root root   76994 Jun 15  2023 libgcov.a
> -rw-r--r-- 1 root root  425966 Jun 15  2023 libgomp.a
> lrwxrwxrwx 1 root root      34 Jun 15  2023 libgomp.so ->=20
> ../../../../lib64/libgomp.so.1.0.0
> -rw-r--r-- 1 root root     169 Jun 15  2023 libgomp.spec
> -rw-r--r-- 1 root root     162 Jun 15  2023 libitm.spec
> -rw-r--r-- 1 root root      38 Jun 15  2023 liblsan.so
> -rw-r--r-- 1 root root   12040 Jun 15  2023 liblsan_preinit.o
> -rw-r--r-- 1 root root     320 Jun 15  2023 libsanitizer.spec
> lrwxrwxrwx 1 root root      37 Jun 15  2023 libstdc++.so ->=20
> ../../../../lib64/libstdc++.so.6.0.25
> -rw-r--r-- 1 root root 1646900 Jun 15  2023 libstdc++fs.a
> -rw-r--r-- 1 root root      38 Jun 15  2023 libtsan.so
> -rw-r--r-- 1 root root    3944 Jun 15  2023 libtsan_preinit.o
> -rw-r--r-- 1 root root      39 Jun 15  2023 libubsan.so
> drwxr-xr-x 2 root root    4096 Apr  9 07:25 plugin
> -rw-r--r-- 1 root root      24 Jun 15  2023 rpmver
>=20
> I am still encountering the /usr/bin/ld: cannot find -lstdc++ issue.
>=20
> Please guide me. Thanks in advance.
>=20
> Best Regards,
>=20
> Kaushal
>=20
> To unsubscribe from this group and stop receiving emails from it, send=20
> an email to [email protected].

--=20
  [2]

"It's always suicide-mission this, save-the-planet that. No one ever=20
just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1



Links:
------
[1]=20
https://www.google.com/search?q=3D%22%2Fusr%2Fbin%2Fld%3A%2520cannot%2520fi=
nd%2520-lstdc%2B%2B%22&amp;oq=3D%22%2Fusr%2Fbin%2Fld%3A%2520cannot%2520find=
%2520-lstdc%2B%2B%22&amp;gs_lcrp=3DEgZjaHJvbWUyBggAEEUYOdIBCTEwMDg0ajBqNKgC=
ALACAQ&amp;sourceid=3Dchrome&amp;ie=3DUTF-8
[2] https://poplme.co/hash/lqQkxj0F/1/es

To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].

--=_4112aa0d0a5de61244f9f96ad6e20078
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="UTF-8"

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>
<p id=3D"reply-intro">Google returns a ton of results for the same issue, i=
ncluding options to remediate:<br /><br /><a href=3D"https://www.google.com=
/search?q=3D%22%2Fusr%2Fbin%2Fld%3A%2520cannot%2520find%2520-lstdc%2B%2B%22=
&amp;oq=3D%22%2Fusr%2Fbin%2Fld%3A%2520cannot%2520find%2520-lstdc%2B%2B%22&a=
mp;gs_lcrp=3DEgZjaHJvbWUyBggAEEUYOdIBCTEwMDg0ajBqNKgCALACAQ&amp;sourceid=3D=
chrome&amp;ie=3DUTF-8">https://www.google.com/search?q=3D%22%2Fusr%2Fbin%2F=
ld%3A%2520cannot%2520find%2520-lstdc%2B%2B%22</a></p>
<p><br />On 2024-04-09 00:21, Kaushal Shriyan wrote:</p>
<blockquote type=3D"cite" style=3D"padding: 0 0.4em; border-left: #1010ff 2=
px solid; margin: 0">
<div id=3D"replybody1">
<div dir=3D"ltr">
<div dir=3D"ltr">&nbsp;</div>
<br />
<div class=3D"v1gmail_quote">
<div class=3D"v1gmail_attr" dir=3D"ltr">On Tue, Apr 9, 2024 at 9:37=E2=80=
=AFAM Kaushal Shriyan &lt;<a href=3D"mailto:[email protected]" rel=
=3D"noreferrer">[email protected]</a>&gt; wrote:</div>
<blockquote class=3D"v1gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; bor=
der-left: 1px solid #cccccc; padding-left: 1ex;">
<div dir=3D"ltr">Hi,
<div>&nbsp;</div>
<div>I am compiling the below application to generate livestatus.o file as =
per&nbsp;<a href=3D"https://www.thruk.org/documentation/install.html#_lives=
tatus" target=3D"_blank" rel=3D"noopener noreferrer">https://www.thruk.org/=
documentation/install.html#_livestatus</a></div>
<div>
<div>&nbsp;</div>
<div>#cd&nbsp;/root/checkmk-1.2.8/livestatus</div>
<div>#./configure<br />checking for a BSD-compatible install... /usr/bin/in=
stall -c<br />checking whether build environment is sane... yes<br />checki=
ng for a thread-safe mkdir -p... /usr/bin/mkdir -p<br />checking for gawk..=
. gawk<br />checking whether make sets $(MAKE)... yes<br />checking whether=
 make supports nested variables... yes<br />checking for gcc-7... no<br />c=
hecking for clang-5.0... no<br />checking for gcc-6... no<br />checking for=
 gcc-5... no<br />checking for clang-3.9... no<br />checking for clang-3.8.=
.. no<br />checking for clang-3.7... no<br />checking for clang-3.6... no<b=
r />checking for clang-3.5... no<br />checking for clang-3.4... no<br />che=
cking for gcc-4.9... no<br />checking for gcc-4.8... no<br />checking for g=
cc... gcc<br />checking whether the C compiler works... yes<br />checking f=
or C compiler default output file name... a.out<br />checking for suffix of=
 executables...<br />checking whether we are cross compiling... no<br />che=
cking for suffix of object files... o<br />checking whether we are using th=
e GNU C compiler... yes<br />checking whether gcc accepts -g... yes<br />ch=
ecking for gcc option to accept ISO C89... none needed<br />checking whethe=
r gcc understands -c and -o together... yes<br />checking whether make supp=
orts the include directive... yes (GNU style)<br />checking dependency styl=
e of gcc... gcc3<br />checking for g++-7... no<br />checking for clang++-5.=
0... no<br />checking for g++-6... no<br />checking for g++-5... no<br />ch=
ecking for clang++-3.9... no<br />checking for clang++-3.8... no<br />check=
ing for clang++-3.7... no<br />checking for clang++-3.6... no<br />checking=
 for clang++-3.5... no<br />checking for clang++-3.4... no<br />checking fo=
r g++-4.9... no<br />checking for g++-4.8... no<br />checking for g++... g+=
+<br />checking whether we are using the GNU C++ compiler... yes<br />check=
ing whether g++ accepts -g... yes<br />checking dependency style of g++... =
gcc3<br />checking for ranlib... ranlib<br />checking for ar... ar<br />che=
cking the archiver (ar) interface... ar<br />checking for socket in -lsocke=
t... no<br />checking for connect in -lsocket... no<br />checking for shutd=
own in -lsocket... no<br />checking for dirent.h that defines DIR... yes<br=
 />checking for library containing opendir... none required<br />checking h=
ow to run the C preprocessor... gcc -E<br />checking for grep that handles =
long lines and -e... /usr/bin/grep<br />checking for egrep... /usr/bin/grep=
 -E<br />checking for ANSI C header files... yes<br />checking for sys/wait=
.h that is POSIX.1 compatible... yes<br />checking for sys/types.h... yes<b=
r />checking for sys/stat.h... yes<br />checking for stdlib.h... yes<br />c=
hecking for string.h... yes<br />checking for memory.h... yes<br />checking=
 for strings.h... yes<br />checking for inttypes.h... yes<br />checking for=
 stdint.h... yes<br />checking for unistd.h... yes<br />checking arpa/inet.=
h usability... yes<br />checking arpa/inet.h presence... yes<br />checking =
for arpa/inet.h... yes<br />checking fcntl.h usability... yes<br />checking=
 fcntl.h presence... yes<br />checking for fcntl.h... yes<br />checking lim=
its.h usability... yes<br />checking limits.h presence... yes<br />checking=
 for limits.h... yes<br />checking netdb.h usability... yes<br />checking n=
etdb.h presence... yes<br />checking for netdb.h... yes<br />checking netin=
et/in.h usability... yes<br />checking netinet/in.h presence... yes<br />ch=
ecking for netinet/in.h... yes<br />checking for stdint.h... (cached) yes<b=
r />checking for stdlib.h... (cached) yes<br />checking for string.h... (ca=
ched) yes<br />checking for strings.h... (cached) yes<br />checking sys/soc=
ket.h usability... yes<br />checking sys/socket.h presence... yes<br />chec=
king for sys/socket.h... yes<br />checking sys/time.h usability... yes<br /=
>checking sys/time.h presence... yes<br />checking for sys/time.h... yes<br=
 />checking sys/timeb.h usability... yes<br />checking sys/timeb.h presence=
... yes<br />checking for sys/timeb.h... yes<br />checking syslog.h usabili=
ty... yes<br />checking syslog.h presence... yes<br />checking for syslog.h=
... yes<br />checking for unistd.h... (cached) yes<br />checking for stdboo=
l.h that conforms to C99... yes<br />checking for _Bool... yes<br />checkin=
g for an ANSI C-conforming const... yes<br />checking for inline... inline<=
br />checking for int32_t... yes<br />checking for int64_t... yes<br />chec=
king for size_t... yes<br />checking for ssize_t... yes<br />checking wheth=
er time.h and sys/time.h may both be included... yes<br />checking for uint=
32_t... yes<br />checking for uint64_t... yes<br />checking for stdlib.h...=
 (cached) yes<br />checking for GNU libc compatible malloc... yes<br />chec=
king for stdlib.h... (cached) yes<br />checking for GNU libc compatible rea=
lloc... yes<br />checking sys/select.h usability... yes<br />checking sys/s=
elect.h presence... yes<br />checking for sys/select.h... yes<br />checking=
 for sys/socket.h... (cached) yes<br />checking types of arguments for sele=
ct... int,fd_set *,struct timeval *<br />checking return type of signal han=
dlers... void<br />checking whether lstat correctly handles trailing slash.=
.. yes<br />checking whether stat accepts an empty string... no<br />checki=
ng for bzero... yes<br />checking for gettimeofday... yes<br />checking for=
 memmove... yes<br />checking for regcomp... yes<br />checking for select..=
. yes<br />checking for socket... yes<br />checking for strcasecmp... yes<b=
r />checking for strdup... yes<br />checking for strerror... yes<br />check=
ing for strtoul... yes<br />checking that generated files are newer than co=
nfigure... done<br />configure: creating ./config.status<br />config.status=
: creating Makefile<br />config.status: creating src/Makefile<br />config.s=
tatus: creating config.h<br />config.status: config.h is unchanged<br />con=
fig.status: executing depfiles commands</div>
<div>&nbsp;</div>
<div>#make</div>
<div>g++ &nbsp;-s -fPIC -shared livestatus_so-AndingFilter.o livestatus_so-=
ClientQueue.o livestatus_so-Column.o livestatus_so-ColumnsColumn.o livestat=
us_so-CustomVarsExplicitColumn.o livestatus_so-ContactsColumn.o livestatus_=
so-CustomVarsColumn.o livestatus_so-CustomVarsFilter.o livestatus_so-Double=
Column.o livestatus_so-DoubleColumnFilter.o livestatus_so-DowntimeOrComment=
.o livestatus_so-DownCommColumn.o livestatus_so-DynamicColumn.o livestatus_=
so-EmptyColumn.o livestatus_so-NullColumn.o livestatus_so-Filter.o livestat=
us_so-GlobalCountersColumn.o livestatus_so-HostContactsColumn.o livestatus_=
so-HostgroupsColumn.o livestatus_so-HostlistColumn.o livestatus_so-Hostlist=
ColumnFilter.o livestatus_so-HostlistStateColumn.o livestatus_so-MetricsCol=
umn.o livestatus_so-HostSpecialIntColumn.o livestatus_so-ServiceSpecialIntC=
olumn.o livestatus_so-InputBuffer.o livestatus_so-IntColumn.o livestatus_so=
-IntColumnFilter.o livestatus_so-ListColumn.o livestatus_so-ListColumnFilte=
r.o livestatus_so-OffsetDoubleColumn.o livestatus_so-OffsetIntColumn.o live=
status_so-OffsetStringColumn.o livestatus_so-OffsetTimeperiodColumn.o lives=
tatus_so-OringFilter.o livestatus_so-OutputBuffer.o livestatus_so-OffsetTim=
eColumn.o livestatus_so-TimePointerColumn.o livestatus_so-TimeColumnFilter.=
o livestatus_so-PerfdataAggregator.o livestatus_so-Query.o livestatus_so-Se=
rviceContactsColumn.o livestatus_so-ServicegroupsColumn.o livestatus_so-Ser=
vicelistColumn.o livestatus_so-ServicelistColumnFilter.o livestatus_so-Serv=
icelistStateColumn.o livestatus_so-store_c.o livestatus_so-Store.o livestat=
us_so-StringColumn.o livestatus_so-StringColumnFilter.o livestatus_so-strut=
il.o livestatus_so-Table.o livestatus_so-TableColumns.o livestatus_so-Statu=
sSpecialIntColumn.o livestatus_so-HostSpecialDoubleColumn.o livestatus_so-T=
ableCommands.o livestatus_so-TableContacts.o livestatus_so-TableDownComm.o =
livestatus_so-TableHostgroups.o livestatus_so-ServiceSpecialDoubleColumn.o =
livestatus_so-TableHosts.o livestatus_so-TableServicegroups.o livestatus_so=
-TableServices.o livestatus_so-TableStatus.o livestatus_so-LogEntry.o lives=
tatus_so-LogCache.o livestatus_so-Logfile.o livestatus_so-TableStateHistory=
.o livestatus_so-TableLog.o livestatus_so-TableTimeperiods.o livestatus_so-=
TableContactgroups.o livestatus_so-ContactgroupsMemberColumn.o livestatus_s=
o-OffsetStringMacroColumn.o livestatus_so-OffsetStringServiceMacroColumn.o =
livestatus_so-OffsetStringHostMacroColumn.o livestatus_so-StatsColumn.o liv=
estatus_so-IntAggregator.o livestatus_so-CountAggregator.o livestatus_so-Do=
ubleAggregator.o livestatus_so-AttributelistColumn.o livestatus_so-Attribut=
elistFilter.o livestatus_so-BlobColumn.o livestatus_so-HostFileColumn.o liv=
estatus_so-global_counters.o livestatus_so-module.o livestatus_so-logger.o =
livestatus_so-waittriggers.o livestatus_so-TimeperiodsCache.o livestatus_so=
-pnp4nagios.o livestatus_so-mk_inventory.o livestatus_so-ContactgroupsColum=
n.o livestatus_so-CustomTimeperiodColumn.o livestatus_so-HostServiceState.o=
 livestatus_so-opids.o livestatus_so-auth.o -o livestatus.o -lpthread -stat=
ic-libstdc++<br /><span style=3D"color: #ff0000;">/usr/bin/ld: cannot find =
-lstdc++</span><br />collect2: error: ld returned 1 exit status<br />make[2=
]: *** [Makefile:2535: livestatus.o] Error 1<br />make[2]: Leaving director=
y '/root/checkmk-1.2.8/livestatus/src'<br />make[1]: *** [Makefile:383: all=
-recursive] Error 1<br />make[1]: Leaving directory '/root/checkmk-1.2.8/li=
vestatus'<br />make: *** [Makefile:324: all] Error 2</div>
</div>
<div>&nbsp;</div>
<div># rpm -qa | grep libstdc++<br />libstdc++-devel-8.5.0-20.el8.x86_64<br=
 />libstdc++-8.5.0-20.el8.x86_64<br /><br /></div>
<div>#cat /etc/redhat-release</div>
Red Hat Enterprise Linux release 8.9 (Ootpa)<br />#
<div>&nbsp;</div>
<div>I am not sure what is causing&nbsp;/usr/bin/ld: cannot find -lstdc++ w=
hen the above library is already present. Am I missing anything?</div>
<div>&nbsp;</div>
<div>Please guide me.</div>
<div>&nbsp;</div>
<div>Best Regards,</div>
<div>&nbsp;</div>
<div>Kaushal</div>
<div>&nbsp;</div>
</div>
</blockquote>
<div>&nbsp;</div>
<div>Hi,</div>
<div>&nbsp;</div>
<div>Further to&nbsp;the&nbsp;previous email, I have followed these extra s=
teps.&nbsp;</div>
<div>&nbsp;</div>
<div>#export LD_LIBRARY_PATH=3D/usr/lib/gcc/x86_64-redhat-linux/8</div>
<div>#echo $LD_LIBRARY_PATH</div>
<div>/usr/lib/gcc/x86_64-redhat-linux/8</div>
<div>&nbsp;</div>
#ls -l /usr/lib/gcc/x86_64-redhat-linux/8<br />total 5404<br />drwxr-xr-x 2=
 root root &nbsp; &nbsp;4096 Apr &nbsp;9 07:26 32<br />-rw-r--r-- 1 root ro=
ot &nbsp; &nbsp;2960 Jun 15 &nbsp;2023 crtbegin.o<br />-rw-r--r-- 1 root ro=
ot &nbsp; &nbsp;3200 Jun 15 &nbsp;2023 crtbeginS.o<br />-rw-r--r-- 1 root r=
oot &nbsp; &nbsp;3480 Jun 15 &nbsp;2023 crtbeginT.o<br />-rw-r--r-- 1 root =
root &nbsp; &nbsp;1632 Jun 15 &nbsp;2023 crtend.o<br />-rw-r--r-- 1 root ro=
ot &nbsp; &nbsp;1632 Jun 15 &nbsp;2023 crtendS.o<br />-rw-r--r-- 1 root roo=
t &nbsp; &nbsp;4648 Jun 15 &nbsp;2023 crtfastmath.o<br />-rw-r--r-- 1 root =
root &nbsp; &nbsp;1656 Jun 15 &nbsp;2023 crtoffloadbegin.o<br />-rw-r--r-- =
1 root root &nbsp; &nbsp;1648 Jun 15 &nbsp;2023 crtoffloadend.o<br />-rw-r-=
-r-- 1 root root &nbsp; &nbsp;1872 Jun 15 &nbsp;2023 crtoffloadtable.o<br /=
>-rw-r--r-- 1 root root &nbsp; &nbsp;4160 Jun 15 &nbsp;2023 crtprec32.o<br =
/>-rw-r--r-- 1 root root &nbsp; &nbsp;4168 Jun 15 &nbsp;2023 crtprec64.o<br=
 />-rw-r--r-- 1 root root &nbsp; &nbsp;4160 Jun 15 &nbsp;2023 crtprec80.o<b=
r />drwxr-xr-x 3 root root &nbsp; &nbsp;4096 Apr &nbsp;3 09:03 include<br /=
>-rw-r--r-- 1 root root &nbsp; &nbsp; &nbsp;38 Jun 15 &nbsp;2023 libasan.so=
<br />-rw-r--r-- 1 root root &nbsp; 18128 Jun 15 &nbsp;2023 libasan_preinit=
.o<br />-rw-r--r-- 1 root root &nbsp; &nbsp; &nbsp;40 Jun 15 &nbsp;2023 lib=
atomic.so<br />-rw-r--r-- 1 root root 3157710 Jun 15 &nbsp;2023 libgcc.a<br=
 />-rw-r--r-- 1 root root &nbsp; 59712 Jun 15 &nbsp;2023 libgcc_eh.a<br />-=
rw-r--r-- 1 root root &nbsp; &nbsp; 195 Jun 15 &nbsp;2023 libgcc_s.so<br />=
-rw-r--r-- 1 root root &nbsp; 76994 Jun 15 &nbsp;2023 libgcov.a<br />-rw-r-=
-r-- 1 root root &nbsp;425966 Jun 15 &nbsp;2023 libgomp.a<br />lrwxrwxrwx 1=
 root root &nbsp; &nbsp; &nbsp;34 Jun 15 &nbsp;2023 libgomp.so -&gt; ../../=
../../lib64/libgomp.so.1.0.0<br />-rw-r--r-- 1 root root &nbsp; &nbsp; 169 =
Jun 15 &nbsp;2023 libgomp.spec<br />-rw-r--r-- 1 root root &nbsp; &nbsp; 16=
2 Jun 15 &nbsp;2023 libitm.spec<br />-rw-r--r-- 1 root root &nbsp; &nbsp; &=
nbsp;38 Jun 15 &nbsp;2023 liblsan.so<br />-rw-r--r-- 1 root root &nbsp; 120=
40 Jun 15 &nbsp;2023 liblsan_preinit.o<br />-rw-r--r-- 1 root root &nbsp; &=
nbsp; 320 Jun 15 &nbsp;2023 libsanitizer.spec<br />lrwxrwxrwx 1 root root &=
nbsp; &nbsp; &nbsp;37 Jun 15 &nbsp;2023 libstdc++.so -&gt; ../../../../lib6=
4/libstdc++.so.6.0.25<br />-rw-r--r-- 1 root root 1646900 Jun 15 &nbsp;2023=
 libstdc++fs.a<br />-rw-r--r-- 1 root root &nbsp; &nbsp; &nbsp;38 Jun 15 &n=
bsp;2023 libtsan.so<br />-rw-r--r-- 1 root root &nbsp; &nbsp;3944 Jun 15 &n=
bsp;2023 libtsan_preinit.o<br />-rw-r--r-- 1 root root &nbsp; &nbsp; &nbsp;=
39 Jun 15 &nbsp;2023 libubsan.so<br />drwxr-xr-x 2 root root &nbsp; &nbsp;4=
096 Apr &nbsp;9 07:25 plugin<br />
<div>-rw-r--r-- 1 root root &nbsp; &nbsp; &nbsp;24 Jun 15 &nbsp;2023 rpmver=
</div>
<div>&nbsp;</div>
<div>I am still encountering the&nbsp;/usr/bin/ld: cannot find -lstdc++ iss=
ue.&nbsp;</div>
<div>&nbsp;</div>
<div>Please guide me. Thanks in advance.</div>
<div>&nbsp;</div>
<div>Best Regards,</div>
<div>&nbsp;</div>
<div>Kaushal</div>
</div>
</div>
<p><br /></p>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]" rel=3D"norefe=
rrer">[email protected]</a>.</div>
</blockquote>
<p><br /></p>
<div id=3D"signature">
<div class=3D"pre" style=3D"margin: 0; padding: 0; font-family: monospace">=
<span class=3D"sig">--&nbsp;<br /><a href=3D"https://poplme.co/hash/lqQkxj0=
F/1/es"><img id=3D"email-sig-image" src=3D"https://firebasestorage.googleap=
is.com/v0/b/poplco.appspot.com/o/signatures%2FYDJ6YD99-signature.png?alt=3D=
media" width=3D"411" height=3D"273" /></a><br /><br />"It's always suicide-=
mission this, save-the-planet that. No one ever just stops by to say 'hi' a=
nymore." --Colonel Jack O'Neill, SG1</span></div>
<p><br /></p>
</div>
</body></html>

<p></p>

To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">redhat-list+u=
[email protected]</a>.<br />

--=_4112aa0d0a5de61244f9f96ad6e20078--