hi after update from old version 1.17.3 to latest 1.17.5, at the end of installation it gives error message below. why i am getting this? is port not installing another dependency? or something is wrong? at the end , go lang seems instlaled without problem. Installed Go for freebsd/amd64 in /usr/ports/lang/go/work/go Installed commands in /usr/ports/lang/go/work/go/bin The binaries expect /usr/ports/lang/go/work/go to be copied or moved to /usr/loc al/go ===> Staging for go-1.17.5,1 ===> Generating temporary packing list ====> Compressing man pages (compress-man) ===> Installing for go-1.17.5,1 ===> Checking if go is already installed ===> Registering installation for go-1.17.5,1 (go-1.17.5,1) /usr/ports/lang/go/work/stage//usr/local/go/src/debug/elf/testdata /gcc-386-freebsd-exec - required shared library libc.so.6 not found Installing go-1.17.5,1...
+cc'ed dmgk@ (previous maintainer) Thanks for reporting this. It appears that go is installed and working properly despite the message. I can confirm that this message appears in the current version, as well as (at least) a couple of older versions of the port that I have tested. In fact, a quick search yields https://forums.freebsd.org/threads/lang-go-and-libc-so-6.43766/ which suggests that it has been happening since 2013. I currently don't have a clue since libc.so.6 should be long gone, and I haven't had the time to look into it. Will probably dig into it further when I got the time.
Thank you for response. i will be happy if you have time to look and find any problem exist if it is not installed with this library it says. thank you.
The following files are linked to libc.so.6. ${WRKSRC}/go/src/debug/dwarf/testdata/line-clang-dwarf5.elf ${WRKSRC}/go/src/debug/dwarf/testdata/line-clang.elf ${WRKSRC}/go/src/debug/dwarf/testdata/line-gcc-dwarf5.elf ${WRKSRC}/go/src/debug/dwarf/testdata/line-gcc.elf ${WRKSRC}/go/src/debug/dwarf/testdata/ranges.elf ${WRKSRC}/go/src/debug/dwarf/testdata/split.elf ${WRKSRC}/go/src/debug/dwarf/testdata/typedef.elf ${WRKSRC}/go/src/debug/elf/testdata/gcc-386-freebsd-exec ${WRKSRC}/go/src/debug/elf/testdata/gcc-amd64-linux-exec In particular, gcc-386-freebsd-exec is a FreeBSD-branded ELF binary. During the installation operation, pkg scans all the files and lists the linked shared libraries when it finds the ELF files. The list can be viewed at pkg info -B. However, when it scans, it can't find libc.so.6, so we get that message. gcc-386-freebsd-exec seems to be a sample for comparison, as far as I can tell from looking through the surrounding files. (${WRKSRC}/go/src/debug/elf/file_test.go) This message seems to be one that can be ignored without any problem. ...I think that's what it is :)
(In reply to Tatsuki Makino from comment #3) i hope you are right about it:) but why nobody is sure about the message is important or not? if there is no need to check that library which seems no use anymore. are you %100 sure about the message can be ignored? and are there any tests we can be sure by using tests that port is working without problem.
(In reply to Tatsuki Makino from comment #3) This is correct, all these warnings can be safely ignored. These *.elf, *.so and other binaries are test data which we keep to maintain Go installation intact (e.g. you can cd to /usr/local/go/src and run the test suite there with ./run.bash).