Bug 1894 - dfu-programmer is used to flash DFU Based devices.
: dfu-programmer is used to flash DFU Based devices.
Status: RESOLVED FIXED
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Package Requests
: Marathon
: All Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-07 05:57 MSD by Zombie Ryushu
Modified: 2013-05-20 19:33 MSD (History)
1 user (show)

See Also:
RPM Package: dfu-programmer
ISO-related:
Bad POT generating:
Upstream:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zombie Ryushu 2013-04-07 05:57:25 MSD
dfu-programmer is a Device Firmware Update based USB programmer for Atmel chips with a USB bootloader. I'm trying to compile it, but it requires libusb 0.1 Compatibility. (this is different than dfu-util)
Comment 1 Zombie Ryushu 2013-04-07 05:58:07 MSD
Got a build issue that has to do with x86_32 vs x86_64 

ake[2]: Entering directory `/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src'
gcc -Wall -g -O2 -I/usr/include/libusb-1.0   -o dfu-programmer main.o arguments.o atmel.o commands.o dfu.o intel_hex.o util.o  -L/usr/lib
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s
main.o: In function `main':
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/main.c:58: undefined reference to `libusb_init'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/main.c:110: undefined reference to `libusb_release_interface'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/main.c:128: undefined reference to `libusb_close'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/main.c:138: undefined reference to `libusb_exit'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/main.c:79: undefined reference to `libusb_set_debug'
dfu.o: In function `dfu_transfer_out':
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:850: undefined reference to `libusb_control_transfer'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:850: undefined reference to `libusb_control_transfer'
dfu.o: In function `dfu_transfer_in':
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:877: undefined reference to `libusb_control_transfer'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:877: undefined reference to `libusb_control_transfer'
dfu.o: In function `dfu_transfer_out':
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:850: undefined reference to `libusb_control_transfer'
dfu.o:/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:877: more undefined references to `libusb_control_transfer' follow
dfu.o: In function `dfu_device_init':
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:392: undefined reference to `libusb_get_device_list'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:398: undefined reference to `libusb_get_device_descriptor'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:409: undefined reference to `libusb_get_bus_number'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:410: undefined reference to `libusb_get_device_address'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:413: undefined reference to `libusb_get_device_address'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:413: undefined reference to `libusb_get_bus_number'
dfu.o: In function `dfu_find_interface':
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:691: undefined reference to `libusb_get_config_descriptor'
dfu.o: In function `dfu_device_init':
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:423: undefined reference to `libusb_open'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:425: undefined reference to `libusb_set_configuration'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:453: undefined reference to `libusb_close'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:459: undefined reference to `libusb_free_device_list'
dfu.o: In function `dfu_find_interface':
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:730: undefined reference to `libusb_free_config_descriptor'
dfu.o: In function `dfu_device_init':
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:427: undefined reference to `libusb_claim_interface'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:444: undefined reference to `libusb_release_interface'
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:434: undefined reference to `libusb_free_device_list'
dfu.o: In function `dfu_make_idle':
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:828: undefined reference to `libusb_reset_device'
dfu.o: In function `dfu_device_init':
/home/masterz/testing/BUILD/dfu-programmer-0.6.1/src/dfu.c:439: undefined reference to `libusb_free_device_list'
Comment 2 Denis Silakov 2013-04-15 16:37:27 MSD
Does it really require libusb 0.1 compat? The symbols in question seem to come from modern libusb-1.0 and I've successfully built dfu-programmer with libusb-1.0 for both Marathon and Desktop Fresh - it should become available in mirrors during the day.

Though I have no way to check if it really works, so any feedback would be welcome.
Comment 3 Denis Silakov 2013-05-20 19:33:47 MSD
The package has been available for more than a month and there was no claiming up to now. Closing the bug.