go-mtpfs icon indicating copy to clipboard operation
go-mtpfs copied to clipboard

Cannot build on Fedora 31: go get error message: libusb_set_debug is deprecated

Open perryrivera opened this issue 4 years ago • 1 comments

Followed the directions here: https://github.com/hanwen/go-mtpfs/wiki/Fedora-install

While invoking this command: $ go get github.com/hanwen/go-mtpfs

Error message:

# github.com/hanwen/usb
cgo-gcc-prolog: In function ‘_cgo_afe072e410cc_Cfunc_libusb_set_debug’:
cgo-gcc-prolog:662:2: warning: ‘libusb_set_debug’ is deprecated: Use libusb_set_option instead [-Wdeprecated-declarations]
In file included from src/github.com/hanwen/usb/usb.go:8:
/usr/include/libusb-1.0/libusb.h:1300:18: note: declared here
 1300 | void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level);
      |                  ^~~~~~~~~~~~~~~~

Cross-referenced: https://github.com/hanwen/go-mtpfs/issues/144

Branch: https://github.com/hanwen/go-mtpfs/commit/42254b1935eb89625d0c8b61bb8128db2cd3c22f

appears to be in order. Code snippet looks like this:

                for range asFolder.Children() {
                        errno = syscall.ENOTEMPTY
                        return
                }

Any ideas??

perryrivera avatar Mar 24 '20 06:03 perryrivera

Same issue here.

Korolev-Oleg avatar Jan 30 '21 20:01 Korolev-Oleg