bugAVR Downloader/UploaDEr - Bugs: bug #31384, SVN fails to build on OS X with...

 
 

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

bug #31384: SVN fails to build on OS X with both libusb-0.1 and libusb-1.0

Submitted by:  None
Submitted on:  Wed 20 Oct 2010 02:07:13 PM UTC  
Votes:  1  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Nils Springob <springob>Originator Name: Philip
Originator Email: -unavailable-Open/Closed: Closed
Release: NoneProgrammer hardware: 
Device type: 

Tue 16 Aug 2011 02:44:12 PM UTC, comment #2:

Philip wrote me an email that the SVN version (r950) is
working for him.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Fri 22 Oct 2010 04:49:16 PM UTC, comment #1:

Could you please sent me the output of your ./configure call and the generated ac_cfg.h ?

Nils Springob <springob>
Project MemberIn charge of this item.
Wed 20 Oct 2010 02:07:13 PM UTC, original submission:

Tested with revision 947 (as at 21 October 2010).

Attempts to build fail with:

...
gcc -Wall -g -O2 -o avrdude avrdude-main.o avrdude-term.o ./libavrdude.a -lusb -framework CoreFoundation -framework IOKit -lm -lreadline -lncurses -ltermcap
Undefined symbols:
"_libusb_get_device_list", referenced from:
_usbOpenDevice in libavrdude.a(libavrdude_a-usbasp.o)
"_libusb_control_transfer", referenced from:
_usbasp_transmit in libavrdude.a(libavrdude_a-usbasp.o)
"_libusb_close", referenced from:
_usbOpenDevice in libavrdude.a(libavrdude_a-usbasp.o)
_usbasp_close in libavrdude.a(libavrdude_a-usbasp.o)
"_libusb_get_device_descriptor", referenced from:
_usbOpenDevice in libavrdude.a(libavrdude_a-usbasp.o)
"_libusb_init", referenced from:
_usbOpenDevice in libavrdude.a(libavrdude_a-usbasp.o)
_usbasp_open in libavrdude.a(libavrdude_a-usbasp.o)
"_libusb_get_string_descriptor_ascii", referenced from:
_usbOpenDevice in libavrdude.a(libavrdude_a-usbasp.o)
_usbOpenDevice in libavrdude.a(libavrdude_a-usbasp.o)
"_libusb_open", referenced from:
_usbOpenDevice in libavrdude.a(libavrdude_a-usbasp.o)
ld: symbol(s) not found
...

This is on a Mac OS X 10.5 Intel system that has the following libraries:

/usr/local/lib/libusb-0.1.4.4.4.dylib
/usr/local/lib/libusb-0.1.4.4.5.dylib
/usr/local/lib/libusb-0.1.4.dylib
/usr/local/lib/libusb-1.0.0.dylib
/usr/local/lib/libusb-1.0.dylib
/usr/local/lib/libusb.dylib

Replacing "-lusb" with "-lusb-1.0" results in another different set of "Undefined symbols" errors.

Revision 940 compiles successfully, revision 941 introduces the failure.

Two different workarounds made the compile successful:

* Include both "-lusb" and "-lusb-1.0" in the compiler call.

* Modify usbasp.c to only define "USE_LIBUSB_1_0" if HAVE_LIBUSB is not defined. This forces use of libusb-0.1 even if libusb1.0 is installed. e.g. :

#if !defined(HAVE_LIBUSB)
#ifdef HAVE_LIBUSB_1_0
# define USE_LIBUSB_1_0
#endif
#endif

I haven't tested either of these modifications on any other system.

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Updated the item)
  • -unavailable- added by davelyons (Voted in favor of this item)
  • -unavailable- added by springob (Updated the item)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 16 Aug 2011 02:44:12 PM UTCjoerg_wunschStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Tue 16 Aug 2011 10:40:02 AM UTCjoerg_wunschStatusNone=>Need Info
    Wed 17 Nov 2010 08:28:07 AM UTCdavelyonsCarbon-Copy-=>Added davelyons
    Fri 22 Oct 2010 04:20:55 PM UTCspringobAssigned toNone=>springob

    Back to the top


    Powered by Savane 3.1-cleanup1