Re: /usr/bin/ld: cannot find -lstdc++ on Red Hat Enterprise Linux release 8.9 (Ootpa)
Kaushal Shriyan <[email protected]> Tue, 9 Apr 2024 09:51:27 +0530
| Newsgroups | gmane.linux.redhat.general |
|---|---|
| Message-ID | <CAD7Ssm-ECn18szEJDH8RpB5oQwHf8xpoGJ1sdhtqpwTo0ZSb7Q@mail.gmail.com> |
--0000000000002373aa0615a242b8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 9, 2024 at 9:37=E2=80=AFAM Kaushal Shriyan <kaushalshriyan@gmai= l.com> wrote: > Hi, > > I am compiling the below application to generate livestatus.o file as per > https://www.thruk.org/documentation/install.html#_livestatus > > #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 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 * > 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 > > #make > g++ -s -fPIC -shared livestatus_so-AndingFilter.o > livestatus_so-ClientQueue.o livestatus_so-Column.o > livestatus_so-ColumnsColumn.o livestatus_so-CustomVarsExplicitColumn.o > livestatus_so-ContactsColumn.o livestatus_so-CustomVarsColumn.o > livestatus_so-CustomVarsFilter.o livestatus_so-DoubleColumn.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 livestatus_so-GlobalCountersColumn.o > livestatus_so-HostContactsColumn.o livestatus_so-HostgroupsColumn.o > livestatus_so-HostlistColumn.o livestatus_so-HostlistColumnFilter.o > livestatus_so-HostlistStateColumn.o livestatus_so-MetricsColumn.o > livestatus_so-HostSpecialIntColumn.o > livestatus_so-ServiceSpecialIntColumn.o livestatus_so-InputBuffer.o > livestatus_so-IntColumn.o livestatus_so-IntColumnFilter.o > livestatus_so-ListColumn.o livestatus_so-ListColumnFilter.o > livestatus_so-OffsetDoubleColumn.o livestatus_so-OffsetIntColumn.o > livestatus_so-OffsetStringColumn.o livestatus_so-OffsetTimeperiodColumn.o > livestatus_so-OringFilter.o livestatus_so-OutputBuffer.o > livestatus_so-OffsetTimeColumn.o livestatus_so-TimePointerColumn.o > livestatus_so-TimeColumnFilter.o livestatus_so-PerfdataAggregator.o > livestatus_so-Query.o livestatus_so-ServiceContactsColumn.o > livestatus_so-ServicegroupsColumn.o livestatus_so-ServicelistColumn.o > livestatus_so-ServicelistColumnFilter.o > livestatus_so-ServicelistStateColumn.o livestatus_so-store_c.o > livestatus_so-Store.o livestatus_so-StringColumn.o > livestatus_so-StringColumnFilter.o livestatus_so-strutil.o > livestatus_so-Table.o livestatus_so-TableColumns.o > livestatus_so-StatusSpecialIntColumn.o > livestatus_so-HostSpecialDoubleColumn.o livestatus_so-TableCommands.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 livestatus_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_so-OffsetStringMacroColumn.o > livestatus_so-OffsetStringServiceMacroColumn.o > livestatus_so-OffsetStringHostMacroColumn.o livestatus_so-StatsColumn.o > livestatus_so-IntAggregator.o livestatus_so-CountAggregator.o > livestatus_so-DoubleAggregator.o livestatus_so-AttributelistColumn.o > livestatus_so-AttributelistFilter.o livestatus_so-BlobColumn.o > livestatus_so-HostFileColumn.o livestatus_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-ContactgroupsColumn.o > livestatus_so-CustomTimeperiodColumn.o livestatus_so-HostServiceState.o > livestatus_so-opids.o 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 > > # rpm -qa | grep libstdc++ > libstdc++-devel-8.5.0-20.el8.x86_64 > libstdc++-8.5.0-20.el8.x86_64 > > #cat /etc/redhat-release > Red Hat Enterprise Linux release 8.9 (Ootpa) > # > > I am not sure what is causing /usr/bin/ld: cannot find -lstdc++ when the > above library is already present. Am I missing anything? > > Please guide me. > > Best Regards, > > Kaushal > > Hi, Further to the previous email, I have followed these extra steps. #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 -> ../../../../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 -> ../../../../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 I am still encountering the /usr/bin/ld: cannot find -lstdc++ issue. Please guide me. Thanks in advance. Best Regards, Kaushal To unsubscribe from this group and stop receiving emails from it, send an e= mail to [email protected]. --0000000000002373aa0615a242b8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Tue, Apr 9, 2024 at 9:37=E2=80=AFA= M Kaushal Shriyan <<a href=3D"mailto:[email protected]">kaushalsh= [email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex"><div dir=3D"ltr">Hi,<div><br></div><div>I am compiling the b= elow application to generate livestatus.o file as per=C2=A0<a href=3D"https= ://www.thruk.org/documentation/install.html#_livestatus" target=3D"_blank">= https://www.thruk.org/documentation/install.html#_livestatus</a></div><div>= <div><br></div><div>#cd=C2=A0/root/checkmk-1.2.8/livestatus</div><div>#./co= nfigure<br>checking for a BSD-compatible install... /usr/bin/install -c<br>= checking whether build environment is sane... yes<br>checking 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>checking for clang-5.0... n= o<br>checking for gcc-6... no<br>checking for gcc-5... no<br>checking for c= lang-3.9... no<br>checking for clang-3.8... no<br>checking for clang-3.7...= no<br>checking for clang-3.6... no<br>checking for clang-3.5... no<br>chec= king for clang-3.4... no<br>checking for gcc-4.9... no<br>checking for gcc-= 4.8... no<br>checking for gcc... gcc<br>checking whether the C compiler wor= ks... yes<br>checking for C compiler default output file name... a.out<br>c= hecking for suffix of executables...<br>checking whether we are cross compi= ling... no<br>checking for suffix of object files... o<br>checking whether = we are using the GNU C compiler... yes<br>checking whether gcc accepts -g..= . yes<br>checking for gcc option to accept ISO C89... none needed<br>checki= ng whether gcc understands -c and -o together... yes<br>checking whether ma= ke supports the include directive... yes (GNU style)<br>checking dependency= style 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>checkin= g for clang++-3.9... no<br>checking for clang++-3.8... no<br>checking for c= lang++-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 for g++-4.9... no<b= r>checking for g++-4.8... no<br>checking for g++... g++<br>checking whether= we are using the GNU C++ compiler... yes<br>checking whether g++ accepts -= g... yes<br>checking dependency style of g++... gcc3<br>checking for ranlib= ... ranlib<br>checking for ar... ar<br>checking the archiver (ar) interface= ... ar<br>checking for socket in -lsocket... no<br>checking for connect in = -lsocket... no<br>checking for shutdown in -lsocket... no<br>checking for d= irent.h that defines DIR... yes<br>checking for library containing opendir.= .. none required<br>checking how to run the C preprocessor... gcc -E<br>che= cking 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<br>checking for sys/stat.h... yes<br>checking for stdlib= .h... yes<br>checking for string.h... yes<br>checking for memory.h... yes<b= r>checking for strings.h... yes<br>checking for inttypes.h... yes<br>checki= ng for stdint.h... yes<br>checking for unistd.h... yes<br>checking arpa/ine= t.h usability... yes<br>checking arpa/inet.h presence... yes<br>checking fo= r arpa/inet.h... yes<br>checking fcntl.h usability... yes<br>checking fcntl= .h presence... yes<br>checking for fcntl.h... yes<br>checking limits.h usab= ility... yes<br>checking limits.h presence... yes<br>checking for limits.h.= .. yes<br>checking netdb.h usability... yes<br>checking netdb.h presence...= yes<br>checking for netdb.h... yes<br>checking netinet/in.h usability... y= es<br>checking netinet/in.h presence... yes<br>checking for netinet/in.h...= yes<br>checking for stdint.h... (cached) yes<br>checking for stdlib.h... (= cached) yes<br>checking for string.h... (cached) yes<br>checking for string= s.h... (cached) yes<br>checking sys/socket.h usability... yes<br>checking s= ys/socket.h presence... yes<br>checking for sys/socket.h... yes<br>checking= sys/time.h usability... yes<br>checking sys/time.h presence... yes<br>chec= king for sys/time.h... yes<br>checking sys/timeb.h usability... yes<br>chec= king sys/timeb.h presence... yes<br>checking for sys/timeb.h... yes<br>chec= king syslog.h usability... yes<br>checking syslog.h presence... yes<br>chec= king for syslog.h... yes<br>checking for unistd.h... (cached) yes<br>checki= ng for stdbool.h that conforms to C99... yes<br>checking for _Bool... yes<b= r>checking 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>che= cking for size_t... yes<br>checking for ssize_t... yes<br>checking whether = time.h and sys/time.h may both be included... yes<br>checking for uint32_t.= .. yes<br>checking for uint64_t... yes<br>checking for stdlib.h... (cached)= yes<br>checking for GNU libc compatible malloc... yes<br>checking for stdl= ib.h... (cached) yes<br>checking for GNU libc compatible realloc... yes<br>= checking sys/select.h usability... yes<br>checking sys/select.h presence...= yes<br>checking for sys/select.h... yes<br>checking for sys/socket.h... (c= ached) yes<br>checking types of arguments for select... int,fd_set *,struct= timeval *<br>checking return type of signal handlers... void<br>checking w= hether lstat correctly handles trailing slash... yes<br>checking whether st= at accepts an empty string... no<br>checking for bzero... yes<br>checking f= or gettimeofday... yes<br>checking for memmove... yes<br>checking for regco= mp... yes<br>checking for select... yes<br>checking for socket... yes<br>ch= ecking for strcasecmp... yes<br>checking for strdup... yes<br>checking for = strerror... yes<br>checking for strtoul... yes<br>checking that generated f= iles are newer than configure... done<br>configure: creating ./config.statu= s<br>config.status: creating Makefile<br>config.status: creating src/Makefi= le<br>config.status: creating config.h<br>config.status: config.h is unchan= ged<br>config.status: executing depfiles commands<br></div><div><br></div><= div>#make</div><div>g++ =C2=A0-s -fPIC -shared livestatus_so-AndingFilter.o= livestatus_so-ClientQueue.o livestatus_so-Column.o livestatus_so-ColumnsCo= lumn.o livestatus_so-CustomVarsExplicitColumn.o livestatus_so-ContactsColum= n.o livestatus_so-CustomVarsColumn.o livestatus_so-CustomVarsFilter.o lives= tatus_so-DoubleColumn.o livestatus_so-DoubleColumnFilter.o livestatus_so-Do= wntimeOrComment.o livestatus_so-DownCommColumn.o livestatus_so-DynamicColum= n.o livestatus_so-EmptyColumn.o livestatus_so-NullColumn.o livestatus_so-Fi= lter.o livestatus_so-GlobalCountersColumn.o livestatus_so-HostContactsColum= n.o livestatus_so-HostgroupsColumn.o livestatus_so-HostlistColumn.o livesta= tus_so-HostlistColumnFilter.o livestatus_so-HostlistStateColumn.o livestatu= s_so-MetricsColumn.o livestatus_so-HostSpecialIntColumn.o livestatus_so-Ser= viceSpecialIntColumn.o livestatus_so-InputBuffer.o livestatus_so-IntColumn.= o livestatus_so-IntColumnFilter.o livestatus_so-ListColumn.o livestatus_so-= ListColumnFilter.o livestatus_so-OffsetDoubleColumn.o livestatus_so-OffsetI= ntColumn.o livestatus_so-OffsetStringColumn.o livestatus_so-OffsetTimeperio= dColumn.o livestatus_so-OringFilter.o livestatus_so-OutputBuffer.o livestat= us_so-OffsetTimeColumn.o livestatus_so-TimePointerColumn.o livestatus_so-Ti= meColumnFilter.o livestatus_so-PerfdataAggregator.o livestatus_so-Query.o l= ivestatus_so-ServiceContactsColumn.o livestatus_so-ServicegroupsColumn.o li= vestatus_so-ServicelistColumn.o livestatus_so-ServicelistColumnFilter.o liv= estatus_so-ServicelistStateColumn.o livestatus_so-store_c.o livestatus_so-S= tore.o livestatus_so-StringColumn.o livestatus_so-StringColumnFilter.o live= status_so-strutil.o livestatus_so-Table.o livestatus_so-TableColumns.o live= status_so-StatusSpecialIntColumn.o livestatus_so-HostSpecialDoubleColumn.o = livestatus_so-TableCommands.o livestatus_so-TableContacts.o livestatus_so-T= ableDownComm.o livestatus_so-TableHostgroups.o livestatus_so-ServiceSpecial= DoubleColumn.o livestatus_so-TableHosts.o livestatus_so-TableServicegroups.= o livestatus_so-TableServices.o livestatus_so-TableStatus.o livestatus_so-L= ogEntry.o livestatus_so-LogCache.o livestatus_so-Logfile.o livestatus_so-Ta= bleStateHistory.o livestatus_so-TableLog.o livestatus_so-TableTimeperiods.o= livestatus_so-TableContactgroups.o livestatus_so-ContactgroupsMemberColumn= .o livestatus_so-OffsetStringMacroColumn.o livestatus_so-OffsetStringServic= eMacroColumn.o livestatus_so-OffsetStringHostMacroColumn.o livestatus_so-St= atsColumn.o livestatus_so-IntAggregator.o livestatus_so-CountAggregator.o l= ivestatus_so-DoubleAggregator.o livestatus_so-AttributelistColumn.o livesta= tus_so-AttributelistFilter.o livestatus_so-BlobColumn.o livestatus_so-HostF= ileColumn.o livestatus_so-global_counters.o livestatus_so-module.o livestat= us_so-logger.o livestatus_so-waittriggers.o livestatus_so-TimeperiodsCache.= o livestatus_so-pnp4nagios.o livestatus_so-mk_inventory.o livestatus_so-Con= tactgroupsColumn.o livestatus_so-CustomTimeperiodColumn.o livestatus_so-Hos= tServiceState.o livestatus_so-opids.o livestatus_so-auth.o -o livestatus.o = -lpthread -static-libstdc++<br><font color=3D"#ff0000">/usr/bin/ld: cannot = find -lstdc++</font><br>collect2: error: ld returned 1 exit status<br>make[= 2]: *** [Makefile:2535: livestatus.o] Error 1<br>make[2]: Leaving directory= '/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/livestatus'<br>make: *** [Makefile:324: all] Error 2<br></div></di= v><div><br></div><div># rpm -qa | grep libstdc++<br>libstdc++-devel-8.5.0-2= 0.el8.x86_64<br>libstdc++-8.5.0-20.el8.x86_64<br><br></div><div>#cat /etc/r= edhat-release<br></div>Red Hat Enterprise Linux release 8.9 (Ootpa)<br>#<di= v><br></div><div>I am not sure what is causing=C2=A0/usr/bin/ld: cannot fin= d -lstdc++ when the above library is already present. Am I missing anything= ?</div><div><br></div><div>Please guide me.</div><div><br></div><div>Best R= egards,</div><div><br></div><div>Kaushal</div><div><br></div></div></blockq= uote><div><br></div><div>Hi,</div><div><br></div><div>Further to=C2=A0the= =C2=A0previous email, I have followed these extra steps.=C2=A0</div><div><b= r></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><br></div>#ls -l /usr/lib/gcc/x86_64-redhat-linux/8<br>total 54= 04<br>drwxr-xr-x 2 root root =C2=A0 =C2=A04096 Apr =C2=A09 07:26 32<br>-rw-= r--r-- 1 root root =C2=A0 =C2=A02960 Jun 15 =C2=A02023 crtbegin.o<br>-rw-r-= -r-- 1 root root =C2=A0 =C2=A03200 Jun 15 =C2=A02023 crtbeginS.o<br>-rw-r--= r-- 1 root root =C2=A0 =C2=A03480 Jun 15 =C2=A02023 crtbeginT.o<br>-rw-r--r= -- 1 root root =C2=A0 =C2=A01632 Jun 15 =C2=A02023 crtend.o<br>-rw-r--r-- 1= root root =C2=A0 =C2=A01632 Jun 15 =C2=A02023 crtendS.o<br>-rw-r--r-- 1 ro= ot root =C2=A0 =C2=A04648 Jun 15 =C2=A02023 crtfastmath.o<br>-rw-r--r-- 1 r= oot root =C2=A0 =C2=A01656 Jun 15 =C2=A02023 crtoffloadbegin.o<br>-rw-r--r-= - 1 root root =C2=A0 =C2=A01648 Jun 15 =C2=A02023 crtoffloadend.o<br>-rw-r-= -r-- 1 root root =C2=A0 =C2=A01872 Jun 15 =C2=A02023 crtoffloadtable.o<br>-= rw-r--r-- 1 root root =C2=A0 =C2=A04160 Jun 15 =C2=A02023 crtprec32.o<br>-r= w-r--r-- 1 root root =C2=A0 =C2=A04168 Jun 15 =C2=A02023 crtprec64.o<br>-rw= -r--r-- 1 root root =C2=A0 =C2=A04160 Jun 15 =C2=A02023 crtprec80.o<br>drwx= r-xr-x 3 root root =C2=A0 =C2=A04096 Apr =C2=A03 09:03 include<br>-rw-r--r-= - 1 root root =C2=A0 =C2=A0 =C2=A038 Jun 15 =C2=A02023 libasan.so<br>-rw-r-= -r-- 1 root root =C2=A0 18128 Jun 15 =C2=A02023 libasan_preinit.o<br>-rw-r-= -r-- 1 root root =C2=A0 =C2=A0 =C2=A040 Jun 15 =C2=A02023 libatomic.so<br>-= rw-r--r-- 1 root root 3157710 Jun 15 =C2=A02023 libgcc.a<br>-rw-r--r-- 1 ro= ot root =C2=A0 59712 Jun 15 =C2=A02023 libgcc_eh.a<br>-rw-r--r-- 1 root roo= t =C2=A0 =C2=A0 195 Jun 15 =C2=A02023 libgcc_s.so<br>-rw-r--r-- 1 root root= =C2=A0 76994 Jun 15 =C2=A02023 libgcov.a<br>-rw-r--r-- 1 root root =C2=A04= 25966 Jun 15 =C2=A02023 libgomp.a<br>lrwxrwxrwx 1 root root =C2=A0 =C2=A0 = =C2=A034 Jun 15 =C2=A02023 libgomp.so -> ../../../../lib64/libgomp.so.1.= 0.0<br>-rw-r--r-- 1 root root =C2=A0 =C2=A0 169 Jun 15 =C2=A02023 libgomp.s= pec<br>-rw-r--r-- 1 root root =C2=A0 =C2=A0 162 Jun 15 =C2=A02023 libitm.sp= ec<br>-rw-r--r-- 1 root root =C2=A0 =C2=A0 =C2=A038 Jun 15 =C2=A02023 libls= an.so<br>-rw-r--r-- 1 root root =C2=A0 12040 Jun 15 =C2=A02023 liblsan_prei= nit.o<br>-rw-r--r-- 1 root root =C2=A0 =C2=A0 320 Jun 15 =C2=A02023 libsani= tizer.spec<br>lrwxrwxrwx 1 root root =C2=A0 =C2=A0 =C2=A037 Jun 15 =C2=A020= 23 libstdc++.so -> ../../../../lib64/libstdc++.so.6.0.25<br>-rw-r--r-- 1= root root 1646900 Jun 15 =C2=A02023 libstdc++fs.a<br>-rw-r--r-- 1 root roo= t =C2=A0 =C2=A0 =C2=A038 Jun 15 =C2=A02023 libtsan.so<br>-rw-r--r-- 1 root = root =C2=A0 =C2=A03944 Jun 15 =C2=A02023 libtsan_preinit.o<br>-rw-r--r-- 1 = root root =C2=A0 =C2=A0 =C2=A039 Jun 15 =C2=A02023 libubsan.so<br>drwxr-xr-= x 2 root root =C2=A0 =C2=A04096 Apr =C2=A09 07:25 plugin<br><div>-rw-r--r--= 1 root root =C2=A0 =C2=A0 =C2=A024 Jun 15 =C2=A02023 rpmver</div><div>=C2= =A0</div><div>I am still encountering the=C2=A0/usr/bin/ld: cannot find -ls= tdc++ issue.=C2=A0</div><div><br></div><div>Please guide me. Thanks in adva= nce.</div><div><br></div><div>Best Regards,</div><div><br></div><div>Kausha= l</div></div></div> <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 /> --0000000000002373aa0615a242b8--