bugAVR Downloader/UploaDEr - Bugs: bug #43338, avrdude 6.1 does not compile

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #43338: avrdude 6.1 does not compile

Submitter:  Karsten <kama>
Submitted:  Wed 01 Oct 2014 08:33:36 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  kama
Open/Closed:  Closed Release:  None
Programmer hardware:  Device type: 

Sat 15 Aug 2015 11:35:47 AM UTC, comment #3: 

Libusb 0.1 API support is not included in libusb-1.x.

I hate to bump an old and closed 'bug', but I just had the same error when trying to compile avrdude 6.1 on a new Mac, and I thought I may be able to help others who are experiencing the same issue.

You can obtain source code for 0.1 compatibility from...

http://sourceforge.net/projects/libusb/files/libusb-compat-0.1/

Mike Rice <swfltek>
Wed 01 Oct 2014 09:22:57 AM UTC, comment #2: 

O.K. I really have to install

ii  libusb-dev                             2:0.1.12-20+nmu1                   amd64        userspace USB programming library development files


The libusb-1.0-0-dev does not work!

Thank you!

Karsten <kama>
Wed 01 Oct 2014 08:47:54 AM UTC, comment #1: 

As you already noticed, this is an exact duplicate of
bug #41854, which has already been fixed since.

In the assumption that you are actually trying to compile
with USB support, the required files have not been found:


...
DON'T HAVE libelf
DON'T HAVE libusb
...


and:


...
configure:5258: checking for usb_get_string_simple in -lusb
configure:5283: gcc -o conftest -g -O2   conftest.c -lusb  -lncurses -ltermcap  >&5
/usr/bin/ld: cannot find -lusb
collect2: error: ld returned 1 exit status
...


Please refer to your operating system's documentation on
how to install libusb 0.1 API support, which is required by
AVRDUDE in order to work with USB.

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 01 Oct 2014 08:33:36 AM UTC, original submission:  

Please refer also to https://savannah.nongnu.org/bugs/?41854

I am trying to compile avrdude 6.1 on Debian wheezy (V 7.5 AMD64).
Here the libusb is installed.

ii  libgusb2                               0.1.3-5                            amd64        GLib wrapper around libusb1
ii  libusb-0.1-4:amd64                     2:0.1.12-20+nmu1                   amd64        userspace USB programming library
ii  libusb-0.1-4:i386                      2:0.1.12-20+nmu1                   i386         userspace USB programming library
ii  libusb-1.0-0:amd64                     2:1.0.11-1                         amd64        userspace USB programming library
ii  libusb-1.0-0-dev                       2:1.0.11-1                         amd64        userspace USB programming library development files
rc  libusbip0                              0.1.7-3                            amd64        USB device sharing system over IP network (shared library)
ii  libusbmuxd1                            1.0.7-2                            amd64        USB multiplexor daemon for iPhone and iPod Touch devices - library


But when i try to compile i get this known error

$ make
make  all-recursive
make[1]: Entering directory `/srv/test/avrdude-6.1'
Making all in .
make[2]: Entering directory `/srv/test/avrdude-6.1'
gcc -DHAVE_CONFIG_H -I.  -DCONFIG_DIR="/usr/local/etc"  -Wall -Wno-pointer-sign -g -O2 -MT libavrdude_a-dfu.o -MD -MP -MF .deps/libavrdude_a-dfu.Tpo -c -o libavrdude_a-dfu.o `test -f 'dfu.c' || echo './'`dfu.c
dfu.c:39:5: error: conflicting types for ‘dfu_open’
In file included from dfu.c:22:0:
dfu.h:117:25: note: previous declaration of ‘dfu_open’ was here
dfu.c:45:5: error: conflicting types for ‘dfu_init’
In file included from dfu.c:22:0:
dfu.h:118:12: note: previous declaration of ‘dfu_init’ was here
make[2]: * [libavrdude_a-dfu.o] Fehler 1
make[2]: Leaving directory `/srv/test/avrdude-6.1'
make[1]: * [all-recursive] Fehler 1
make[1]: Leaving directory `/srv/test/avrdude-6.1'
make: * [all] Fehler 2


I attach the output of configure (configure.log) and the config.log

What is going wrong?

Karsten <kama>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #32202:  config.log added by kama (91KiB - text/x-log)
file #32203:  configure.log added by kama (6KiB - text/x-log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by swfltek (Posted a comment)
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by kama (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-01 joerg_wunsch StatusNone Duplicate
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2014-10-01 kama Attached File- Added config.log, #32202
        Attached File- Added configure.log, #32203

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code