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

get_usb_string undefined reference to `libiconv_open' #23

Open
zzzeee opened this issue Jul 14, 2021 · 0 comments
Open

get_usb_string undefined reference to `libiconv_open' #23

zzzeee opened this issue Jul 14, 2021 · 0 comments

Comments

@zzzeee
Copy link

zzzeee commented Jul 14, 2021

mac ok

macOS Big Sur 11.4
MacBook Pro (16-inch, 2019)

> go version
go version go1.15.2 darwin/amd64

liunx error

> uname -a
Linux xxx 4.18.0-147.43.1.el8_1.x86_64 #1 SMP Thu Feb 18 08:33:46 EST 2021 x86_64 x86_64 x86_64 GNU/Linux

> cat /etc/redhat-release
Red Hat Enterprise Linux release 8.1 (Ootpa)

> go version
go version go1.15.13 linux/amd64

> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.4.1 20200928 (Red Hat 8.4.1-1) (GCC)

go run or go build error:

# github.com/karalabe/usb
/tmp/go-build517113935/b245/_x003.o: In function `get_usb_string':
../../pkg/mod/github.com/karalabe/usb@v0.0.0-20210518091819-4ea20957c210/hidapi/libusb/hid.c:440: undefined reference to `libiconv_open'
../../pkg/mod/github.com/karalabe/usb@v0.0.0-20210518091819-4ea20957c210/hidapi/libusb/hid.c:452: undefined reference to `libiconv'
../../pkg/mod/github.com/karalabe/usb@v0.0.0-20210518091819-4ea20957c210/hidapi/libusb/hid.c:467: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant