/usr/bin/ld: cannot find -lstdc++ on Red Hat Enterprise Linux release 8.9 (Ootpa)
Kaushal Shriyan <[email protected]> Tue, 9 Apr 2024 09:37:55 +0530
| Newsgroups | gmane.linux.redhat.general |
|---|---|
| Message-ID | <CAD7Ssm9sLYqj9V8UOrv5aLZjEx9vLpPjgf_wrvj7O7kMT0P6_Q@mail.gmail.com> |
--000000000000c861990615a211b8 Content-Type: text/plain; charset="UTF-8" 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 To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. --000000000000c861990615a211b8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div>I am compiling the below applicatio= n to generate livestatus.o file as per=C2=A0<a href=3D"https://www.thruk.or= g/documentation/install.html#_livestatus">https://www.thruk.org/documentati= on/install.html#_livestatus</a></div><div><div><br></div><div>#cd=C2=A0/roo= t/checkmk-1.2.8/livestatus</div><div>#./configure<br>checking for a BSD-com= patible install... /usr/bin/install -c<br>checking whether build environmen= t 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... no<br>checking for gcc-6... no<br>= checking for gcc-5... no<br>checking for clang-3.9... no<br>checking for cl= ang-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>checking for clang-3.4... no<br>check= ing for gcc-4.9... no<br>checking for gcc-4.8... no<br>checking for gcc... = gcc<br>checking whether the C compiler works... yes<br>checking for C compi= ler default output file name... a.out<br>checking for suffix of executables= ...<br>checking whether we are cross compiling... 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>checking whether gcc understands -c and= -o together... yes<br>checking whether make 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>checking for clang++-3.9... no<br>checki= ng 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>checking for clang++= -3.4... no<br>checking for g++-4.9... no<br>checking for g++-4.8... no<br>c= hecking for g++... g++<br>checking whether we are using the GNU C++ compile= r... yes<br>checking whether g++ accepts -g... yes<br>checking dependency s= tyle 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 sh= utdown in -lsocket... no<br>checking for dirent.h that defines DIR... yes<b= r>checking for library containing opendir... none required<br>checking how = 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<br>checking fo= r sys/stat.h... yes<br>checking for stdlib.h... yes<br>checking for string.= h... yes<br>checking for memory.h... yes<br>checking for strings.h... yes<b= r>checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checkin= g 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 fo= r fcntl.h... yes<br>checking limits.h usability... yes<br>checking limits.h= presence... yes<br>checking for limits.h... yes<br>checking netdb.h usabil= ity... yes<br>checking netdb.h presence... yes<br>checking for netdb.h... y= es<br>checking netinet/in.h usability... yes<br>checking netinet/in.h prese= nce... 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 strin= g.h... (cached) yes<br>checking for strings.h... (cached) yes<br>checking s= ys/socket.h usability... yes<br>checking sys/socket.h presence... yes<br>ch= ecking for sys/socket.h... yes<br>checking sys/time.h usability... yes<br>c= hecking sys/time.h presence... yes<br>checking for sys/time.h... yes<br>che= cking sys/timeb.h usability... yes<br>checking sys/timeb.h presence... yes<= br>checking for sys/timeb.h... yes<br>checking syslog.h usability... yes<br= >checking syslog.h presence... yes<br>checking for syslog.h... yes<br>check= ing for unistd.h... (cached) yes<br>checking for stdbool.h that conforms to= C99... yes<br>checking for _Bool... yes<br>checking for an ANSI C-conformi= ng const... yes<br>checking for inline... inline<br>checking for int32_t...= yes<br>checking for int64_t... yes<br>checking for size_t... yes<br>checki= ng 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 com= patible malloc... yes<br>checking for stdlib.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... (cached) yes<br>checking types of a= rguments for select... int,fd_set *,struct timeval *<br>checking return typ= e of signal handlers... void<br>checking whether lstat correctly handles tr= ailing slash... yes<br>checking whether stat accepts an empty string... no<= br>checking for bzero... yes<br>checking for gettimeofday... yes<br>checkin= g for memmove... yes<br>checking for regcomp... yes<br>checking for select.= .. yes<br>checking for socket... yes<br>checking for strcasecmp... yes<br>c= hecking for strdup... yes<br>checking for strerror... yes<br>checking for s= trtoul... yes<br>checking that generated files are newer than configure... = done<br>configure: creating ./config.status<br>config.status: creating Make= file<br>config.status: creating src/Makefile<br>config.status: creating con= fig.h<br>config.status: config.h is unchanged<br>config.status: executing d= epfiles commands<br></div><div><br></div><div>#make</div><div>g++ =C2=A0-s = -fPIC -shared livestatus_so-AndingFilter.o livestatus_so-ClientQueue.o live= status_so-Column.o livestatus_so-ColumnsColumn.o livestatus_so-CustomVarsEx= plicitColumn.o livestatus_so-ContactsColumn.o livestatus_so-CustomVarsColum= n.o livestatus_so-CustomVarsFilter.o livestatus_so-DoubleColumn.o livestatu= s_so-DoubleColumnFilter.o livestatus_so-DowntimeOrComment.o livestatus_so-D= ownCommColumn.o livestatus_so-DynamicColumn.o livestatus_so-EmptyColumn.o l= ivestatus_so-NullColumn.o livestatus_so-Filter.o livestatus_so-GlobalCounte= rsColumn.o livestatus_so-HostContactsColumn.o livestatus_so-HostgroupsColum= n.o livestatus_so-HostlistColumn.o livestatus_so-HostlistColumnFilter.o liv= estatus_so-HostlistStateColumn.o livestatus_so-MetricsColumn.o livestatus_s= o-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-OffsetSt= ringColumn.o livestatus_so-OffsetTimeperiodColumn.o livestatus_so-OringFilt= er.o livestatus_so-OutputBuffer.o livestatus_so-OffsetTimeColumn.o livestat= us_so-TimePointerColumn.o livestatus_so-TimeColumnFilter.o livestatus_so-Pe= rfdataAggregator.o livestatus_so-Query.o livestatus_so-ServiceContactsColum= n.o livestatus_so-ServicegroupsColumn.o livestatus_so-ServicelistColumn.o l= ivestatus_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 liv= estatus_so-TableContacts.o livestatus_so-TableDownComm.o livestatus_so-Tabl= eHostgroups.o livestatus_so-ServiceSpecialDoubleColumn.o livestatus_so-Tabl= eHosts.o livestatus_so-TableServicegroups.o livestatus_so-TableServices.o l= ivestatus_so-TableStatus.o livestatus_so-LogEntry.o livestatus_so-LogCache.= o livestatus_so-Logfile.o livestatus_so-TableStateHistory.o livestatus_so-T= ableLog.o livestatus_so-TableTimeperiods.o livestatus_so-TableContactgroups= .o livestatus_so-ContactgroupsMemberColumn.o livestatus_so-OffsetStringMacr= oColumn.o livestatus_so-OffsetStringServiceMacroColumn.o livestatus_so-Offs= etStringHostMacroColumn.o livestatus_so-StatsColumn.o livestatus_so-IntAggr= egator.o livestatus_so-CountAggregator.o livestatus_so-DoubleAggregator.o l= ivestatus_so-AttributelistColumn.o livestatus_so-AttributelistFilter.o live= status_so-BlobColumn.o livestatus_so-HostFileColumn.o livestatus_so-global_= counters.o livestatus_so-module.o livestatus_so-logger.o livestatus_so-wait= triggers.o livestatus_so-TimeperiodsCache.o livestatus_so-pnp4nagios.o live= status_so-mk_inventory.o livestatus_so-ContactgroupsColumn.o livestatus_so-= CustomTimeperiodColumn.o livestatus_so-HostServiceState.o livestatus_so-opi= ds.o livestatus_so-auth.o -o livestatus.o -lpthread -static-libstdc++<br><f= ont color=3D"#ff0000">/usr/bin/ld: cannot find -lstdc++</font><br>collect2:= error: ld returned 1 exit status<br>make[2]: *** [Makefile:2535: livestatu= s.o] Error 1<br>make[2]: Leaving directory '/root/checkmk-1.2.8/livesta= tus/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></div><div><br></div><div># rpm -qa |= grep libstdc++<br>libstdc++-devel-8.5.0-20.el8.x86_64<br>libstdc++-8.5.0-2= 0.el8.x86_64<br><br></div><div>#cat /etc/redhat-release<br></div>Red Hat En= terprise Linux release 8.9 (Ootpa)<br>#<div><br></div><div>I am not sure wh= at is causing=C2=A0/usr/bin/ld: cannot find -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 Regards,</div><div><br></div><div>= Kaushal</div><div><br></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 /> --000000000000c861990615a211b8--