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

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

Open
perryrivera opened this issue Mar 24, 2020 · 1 comment

Comments

@perryrivera
Copy link

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:
#144

Branch: 42254b1

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

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

Any ideas??

@Korolev-Oleg
Copy link

Same issue here.

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

2 participants