Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

unable to comple awutils #8

@marvik-4

Description

@marvik-4

root@ma-Vostro-1015:/home/ma/AndroidImage/awutils# make
cc -Wall -o awflash awflash.c -lusb
awflash.c: In function ‘fex_xfer’:
awflash.c:140:2: warning: passing argument 1 of ‘usb_bulk_write’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:289:5: note: expected ‘struct usb_dev_handle ’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:142:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat]
awflash.c:147:3: warning: passing argument 1 of ‘usb_bulk_read’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:291:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:149:4: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat]
awflash.c:153:3: warning: passing argument 1 of ‘usb_bulk_write’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:289:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:155:4: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat]
awflash.c:160:2: warning: passing argument 1 of ‘usb_bulk_read’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:291:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c: In function ‘main’:
awflash.c:376:11: warning: assignment from incompatible pointer type [enabled by default]
awflash.c:381:2: warning: passing argument 1 of ‘usb_set_configuration’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:305:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:385:2: warning: passing argument 1 of ‘usb_claim_interface’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:306:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:389:2: warning: passing argument 1 of ‘usb_set_altinterface’ from incompatible pointer type [enabled by default]
/usr/include/usb.h:308:5: note: expected ‘struct usb_dev_handle *’ but argument is of type ‘struct libusb_device_handle *’
awflash.c:394:2: warning: implicit declaration of function ‘aw_get_version’ [-Wimplicit-function-declaration]
awflash.c:415:3: warning: implicit declaration of function ‘fex_write_file’ [-Wimplicit-function-declaration]
awflash.c: At top level:
awflash.c:317:1: warning: ‘aw_fel_get_version’ defined but not used [-Wunused-function]
/tmp/ccsYFvkT.o: In function main': awflash.c:(.text+0xc8c): undefined reference toaw_get_version'
awflash.c:(.text+0xca1): undefined reference to aw_get_version' awflash.c:(.text+0xd2b): undefined reference toaw_get_version'
awflash.c:(.text+0xe5c): undefined reference to fex_write_file' awflash.c:(.text+0xf44): undefined reference tofex_write_file'
collect2: ld returned 1 exit status
make: *
* [awflash] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions