Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22 #486

Closed
cfc4n opened this issue Feb 22, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@cfc4n
Copy link
Member

cfc4n commented Feb 22, 2024

Describe the bug
compile warning: /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22

To Reproduce

run command make

CC=clang go build -tags linux -ldflags "-w -s -X 'ecapture/cli/cmd.GitVersion=linux_aarch64:0.7.3-20240128-1a2abb8:[CORE]'" -o bin/ecapture . && echo "Please ignore the above cgo libpcap warnings."
# ecapture
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
/tmp/go-link-1558541666/000004.o: in function `_cgo_9c8efe9babca_C2func_getaddrinfo':
cgo_unix_cgo.cgo2.c:(.text+0x30): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
/usr/local/lib/libpcap.a(nametoaddr.o): in function `pcap_nametoaddr':
nametoaddr.c:(.text+0x8): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /usr/local/lib/libpcap.a(nametoaddr.o): in function `pcap_nametonetaddr':
nametoaddr.c:(.text+0xb8): warning: Using 'getnetbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /usr/local/lib/libpcap.a(nametoaddr.o): in function `pcap_nametoproto':
nametoaddr.c:(.text+0x388): warning: Using 'getprotobyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
Please ignore the above cgo libpcap warnings.

Expected behavior

Screenshots

Linux Server/Android (please complete the following information):

  • Env: [run make env to get the environment variables]
  • OS: [e.g. Ubuntu 22.04 Server ]
  • Arch: [arm64]
  • Kernel Version: [5.15.0-91-generic]
  • Version: [ f50b9de ]
  • Golang 1.21
  • GNU ld (GNU Binutils for Ubuntu) 2.38

Additional context
Add any other context about the problem here.

@cfc4n cfc4n added the bug Something isn't working label Feb 22, 2024
cfc4n added a commit that referenced this issue Feb 22, 2024
Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
cfc4n added a commit that referenced this issue Feb 23, 2024
Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n
Copy link
Member Author

cfc4n commented Feb 23, 2024

fixed: #487

@cfc4n cfc4n closed this as completed Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant